1. Home
  2. DIY VPS
  3. How do I add another disk to my server in the Do-it-yourself service?

How do I add another disk to my server in the Do-it-yourself service?

Den här artikeln finns även på svSvenska

There are many reasons as to why one would like to add an additional disk to a server, e.g. if you need more disk space temporarily one solution can be to add another disk instead of increasing the size of an existing one (since you cannot decrease the size of a disk). Another reason could be if you simply want to organise storage on your server with separate disks for separate parts of the file system. This guide will show you how to add a new disk to your server.

  1. Begin by logging on to the DIY control panel.
  2. After logging in, click Virtual Servers under Appliances in the menu to the left.
    Klicka på Virtual Servers i menyn
  3. Click on the name of the server you wish to add the disk to (under Label).
    Välj rätt server
  4. After accessing the settings page for the server, hover your mouse cursor over Storage in the top menu and click Disks in the menu that folds down.
    Välj Storage och sedan disks
  5. Then click Create Disk towards the lower right.
    Lägg till ny disk via Create Disk
  6. Now make choices to customise the new disk.
    Val för den nya disken
    The various options indicates:

    Label: A friendly name for the disk, so you can recognise it in the list of disks attached to the server (which is good of you want to erase the disk later on). In this case, we will call the disk my_temporary_disk.

    Data Store: Choose the storage cluster for the disk. Use the one mentioningSSD for maximum performance.

    Size: Select the disk size for the disk. In this example we’ve chosen 10 GB, but if you require more space than that, it should be no problem.

    Hot attach: Click this if you want the disk to be added without the server restarting. We are using this in our example, but it may not be available for some operating systems.

    Swap disk: Select this if it is a swap drive you want to add. We do not wish to add an additional swap disk in our example.

    Require format disk: Flip this switch if you want the control panel to format the disk for you. A few options down, you can choose file system. If your required file system isn’t available, you will have to format the disk yourself after it has been added to the server.

    Mounted: Select this if you want the disk to be automatically mounted within your OS. This option is only available if you selected that the disk should be formated for you (above).

    Mount point: Here you select the mount point in the file system, i.e. where on the server the disk should be mounted. In our example, we choose /data, but you are free to mount it wherever you want. This option is only available if you’ve selected that the disk shall be mounted (above).

    File system: Here you select the file system for the disk. In our example we’ve selected ext4.

    Once you’re done with the settings, click Add Disk toward the lower right.
  7. The disk will now be added to your server and will be available as soon as the control panel is finished.

Using the settings from our example, the disk was formated, mounted at our selected location, and was even added to fstab on the server – making the mount survive reboots.

Was this article helpful?

Related Articles