Volumes#

Volumes are created with the virtual server but it is also possible to create an additional volume and select the server that requires additional volume.

It is possible at any time:

  • to expand volume space (but not to reduce);

  • to change the volume’s name;

  • to view the creation date and UUID of the volume;

  • to connect or disconnect the volume to or from a virtual server;

  • to set up automatic backups.

Create an additional volume#

  1. In the Control Panel go to the “Cloud” / “Volumes” section.

  2. Click the “Create” button.

  3. Select the server that will be connected to the volume. Available volumes types and the quotas will be offered depending on the selected server and its location.

  4. Specify the required volume size entering number of GiB or using the slider. The minimum size of an additional volume is 16 GiB.

  5. Choose the appropriate type:

Type

IOPS

MB/sec

SSD Lite

1 000

100

SSD Start

2 500

200

SSD Smart

5 000

300

SSD Pro

10 000

500

SSD Ultra

25 000

750

  1. To save your data enable automatic backup, the service is not enabled by default. Volume backups will be created automatically according to the specified schedule.

  2. Specify a volume name. It is acceptable to use letters of the Latin alphabet, numbers and symbols (within reasonable limits).

  3. Click the “Create volume” button.

Quality of Service (QoS) for 3HCloud Volumes#

The Openstack documentation is the basis for the creation of volume performance rules by types: https://docs.openstack.org/cinder/ussuri/admin/blockstorage-capacity-based-qos.html.

Connecting an additional volume to the Linux operating system#

  1. Open the list of all disks connected to the server with the lsblk command:

NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda       8:0    0   89G  0 disk
├─sda1    8:1    0   88G  0 part /
└─sda2    8:14   0    1G  0 part
sdb       8:16   0   27G  0 disk

In the example, sdb is an additional volume.

  1. If the disk is empty run the parted utility to create the file system and partitions of the additional volume:

parted /dev/sdb
  1. Create a GPT partition table:

(parted) mklabel gpt
  1. Check the created partition table:

(parted) print
  1. To exit parted type quit.

  2. Format the disk partition with the mkfs command (use the ext4 partition format):

mkfs.ext4 /dev/sdb
  1. Create a disk mount directory and mount the partitions into it:

mkdir -p /mnt
mount /dev/sdb /mnt
  1. You can use the lsblk command to verify that the disk is mounted.

  2. You can also auto-mount disks and partitions in Linux using fstab.

fstab is a text file containing a list of storage devices and mount options. The various drives that need to be automatically attached at boot time of the operating system are listed in order in the fstab file. This file also contains information about devices that are not automatically attached, but when the device is mounted with the standard mount command, could be attached with the specified parameters.

  1. Firstly, you need to find out the UUID of the additional disk by running the blkid command.

/dev/sdb: UUID="665937cb-466d-4710-8c90-2305b24603e0" TYPE="ext4"

You need to copy the fragment, namely: UUID= 665937cb-466d-4710-8c90-2305b24603e0.

  1. Next, in the fstab text file using the nano editor, enter the required UUID:

sudo nano /etc/fstab
UUID=665937cb-466d-4710-8c90-2305b24603e0 /mnt ext4 relatime 0 0
  • UUID - UUID of the additional disk;

  • /mnt - the place where the volume is planned to be automatically mounted;

  • Relatime - enabling update the time of the last access to the file only if the previous access time was earlier than the current time of file modification;

  • The first “zero” - indicates whether this partition should be backed up by the dump program, if not indicate 0;

  • The second “zero” - checking the section for errors, in order not to do it indicate 0.

  1. Save the fstab file and reboot the server to check if the additional disk is automatically mounted.

Connecting an additional volume to the Windows 2019 operating system#

  1. Open Start - Control Panel.

  2. In the Control Panel go to System and Security - Administrative Tools and open Computer Management.

  3. In Computer Management select the Storage - Disk Management section.

  4. Locate the additional disk in Offline mode. Right-click on the disk and select Online.

  5. Right-click on the secondary disk and select Initialize Disk. In the window that appears specify the disk organization method MBR (Master Boot Record) or GPT (GUID Partition Table) and click OK.

  6. Next, you need to right-click on the new disk and select New Simple Volume. A welcome window will appear, click Next>.

  7. In the next window select the partition size in megabytes and click Next.

  8. Next, you can assign a letter to the disk, path and click Next.

  9. The last step is to select the file system, partition size and disk label. Click Next.

  10. Check the settings again and complete the settings with the Finish button.

  11. After formatting the disk is ready to use.

Resizing the system volume#

  1. In the Control Panel go to the “Cloud” / “Virtual servers” section.

  2. Select the required server and click “More”.

  3. In the opened page on the Information tab in the Data section click on “Edit configuration” and select “System volume size”.

  4. Specify the required volume size and click “Save”. The volume size cannot be reduced. The maximum size of a system volume cannot exceed 2,000 GiB.

  5. For increasing the size of the system volume turned off and then turned on the server.

Resizing an additional volume#

  1. In the Control Panel go to the “Cloud” / “Volumes” section.

  2. Select the repuired disk and click “More”.

  3. In the Volume Size section, click Edit.

  4. Specify the required volume size and click “Save”. The volume size cannot be reduced. The maximum size of an additional voume cannot exceed 16,000 GiB.

  5. To increase the size of an additional volume turned off and then turned on the server.

Delete volume#

The system volume can only be deleted together with the server which it is connected to.

Additional volume can be removed with the server or disconnected from the server and removed separately.

Attention

If you remove the volume the data cannot be recovered. We recommend you make a copy of the data before removing the volume.