To create an additional disk (volume) and attach it to a server:
- Open a project and click the Volumes tab.
- Click Create volume.
- In the new window, set the following parameters:
- Volume type
- Click Create.
The new disk will appear at the top of the list.
Three tabs are available in the expanded volume block:
- Size. Change the amount of disk space available with resources available (allocated)
- Control. Detach, attach, or delete the disk. Transfer volumes between projects
- Snapshots. Scheduled snapshots and an archive of previously made copies
The drop down menu offers the same disk actions:
- rename volume
- detach/attach volume
- expand volume size
- make snapshot
- transfer to other project
- delete volume
Changing Disk Space
Increasing Disk Space
Please note: To avoid losing any data, we recommend creating a snapshot of your disk under the Snapshots tab before modifying partitions or the file system.
To increase disk space:
- Increase the quota for the desired volume type in the project control panel.
- Open the project and disable the virtual machine whose disk you wish to modify.
- Open the Volumes tab and expand the block of the appropriate volume.
- Enter a new value in the Volume size field under the Size tab.
- Click Save.
- Enable the virtual machine.
If the operating system was installed from a pre-configured image in the control panel, no additional steps are required.
If the volume does not automatically reflect these changes, it will have to be done manually.
To manually extent disk space in Linux:
Print out a list of all file system partitions using the command:
If the partition containing the last sector cannot be increased (if it is a swap partition, for example), then you may create a new partition or transfer data to a new volume.
Run the following command, replacing X with the number of the last file system partition:
Change the display units to sectors (if cylinders is selected):
Pull up partition information and take note of the sector where the partition begins:
Delete the partition label:
Create a new primary partition:
n p 1
- Fdisk will ask for the starting sector of the partition.
- Enter the value from above.
- Fdisk will ask for the final sector.
Enter the maximum possible value.
Write your changes to the volume with the command:
- Fdisk will complete the operation.
After rebooting, expand the file system to the extended partition:
Check the partition size:
In Windows, after adding additional disk space, open Disk Management. Right click the volume you wish to extend, and click Extend Volume.
Decreasing Disk Space
To shrink a volume, we recommend creating a new disk with the appropriate amount of disk space and transferring your data.
Transferring Volumes between Projects
Volumes can be transferred between different projects in one region in two steps:
- Prepare the volume for transfer.
- Receive the volume in the new project.
To prepare a volume for transfer:
- In the expanded volume block, open the Control tab.
- Detach the volume from its current virtual machine by clicking Detach.
- In the Transfer volume to anothe project section, click Transfer volume.
The Transfer volume to another project section will contain the Volume ID and Key until the transfer is completed.
To receive a volume in a new project:
- Ensure you have enough diskspace available in the VPC control panel.
- Open the project you wish to transfer your volume to and open the Volume tab.
- From the drop down menu, click Transfer volume from another project.
- If the Volume ID and Key fields do not fill in automatically, those volumes can be taken from the Control block of the volume to be transferred.
- Click Transfer.
Connecting Volumes from the Server Block
Additional volumes can be added from the server block:
- Open a project and expand the block of the desired server.
- Open the Volumes tab.
- Choose the volume from the dropdown menu in the bottom-left corner.
- Click Attach volume.
Once the volume is attached, it will appear in the volume list.
To detach a volume, click Detach to the right of the volume name.
Prior to deleting a volume, it must first be detached from a virtual server. There are two ways to do this:
- under Volumes in the project menu
- under the Volumes tab in the virtual server menu
Afterwards, volumes can be deleted on the project page under Volumes:
- Choose Delete volume from the volume drop down menu.
- Click Delete under the Control tab in the expanded block.
Automatically Deleting Volumes
When deleting a virtual server, you can choose to delete volumes from the server, which will create a task to delete all of the volumes attached to the machine.