Volumes (storage space)

Volume creation

STEP 1

From the main menu (left side of the screen), expand Project -> Volumes and then click Volumes. In the central part of the screen, click Create Volume. A wizard will appear:

pic1

In it we successively specify the name of the volume, the source (here the chosen Linux Ubuntu)

pic2

… followed by size and type.

Disk space resources are offered by Atman in 4 variants:

  • Standard (2,000 IOPS),

  • Fast (8,000 IOPS)

  • Ultra (15,000 IOPS),

  • Rapid (25,000 IOPS).

differing in performance (IOPS - see contract, order). Depending on the space ordered and made available, the User specifies the desired space type here.

pic3

STEP 2

When the Create Volume button is clicked, the newly created volume will appear in the list of volumes.

pic4

Volume deletion

On the Project -> Volumes -> Volumes screen to the right of the volume, select the DELETE VOLUME action. You can only delete a volume that is not assigned to a machine.

pic5

Volume editing

On the Project -> Volumes -> Volumes screen to the right of the volume, select the EDIT VOLUME action. It is possible to change the name and also to specify the bootable flag for the volume.

pic6

Change of type

You can change the volume type (standard <-> fast) by selecting the CHANGE VOLUME TYPE action on the Project -> Volumes -> Volumes screen to the right of the volume. The change may take a significant amount of time depending on the size of the volume and the type of data.

The volume type can be changed if the volume is additional and not connected to the instance.

The volume type cannot be changed for:

  • the main volume of the instance

  • a secondary volume, but connected to a running instance of the

Set the Migration Policy type change wizard to ON DEMAND

pic7

pic8

pic9

Correctly unmounting a volume in Windows

The volume should be unmounted as follows:

STEP 1

We log into the Windows instance. Then on the system, we go to Control Panel -> System and Security -> Administrative Tools -> Computer Management -> Storage -> Disk Management.

STEP 2

In the box next to the partition, right-click and select Offline.

pic10

STEP 3

We go to the cloud panel - panel.cloud.atman.pl. In the Compute -> Instances tab, we find our instance and select DETACH VOLUME from the side drop-down list.

pic11

A window will open in which we select the volume we wish to unmount and then click DETACH VOLUME.

pic11

In this way, we can unmount the volume from the instance without any problems.

If you do not unmount a volume from within the operating system, the ability to unmount a volume from an instance may hang.

Changing the size of the system volume

If the system disk is resized, it is necessary to delete the instance (without deleting the volume), then resize the volume and create a new instance using the same volume.

STEP 1. SNAPSHOT CREATION

If the instance was created with the Delete on Terminate option checked, the system volume will be deleted together with the instance. To avoid this, create a snapshot of the volume first.

Display the list of volumes (by selecting Compute -> Volumes from the menu), click on the arrow in the drop-down menu next to the selected volume and click on Create Snapshot.

pic12

STEP 2. REMOVAL OF INSTANCES

We display the list of instances (by selecting Compute -> Instances from the menu), click on the arrow in the drop-down menu next to the selected instance and click on Delete Instance.

STEP 3. VOLUME RESIZING

With the volume selected, click on the arrow in the drop-down menu next to the selected volume and click on the Extend Volume item. Enter the new volume size and confirm by clicking on the Extend Volume button.

pic13

STEP 4. RE-CREATE THE INSTANCE

With the volume selected, click on the arrow in the drop-down menu next to the selected volume and click on Launch as Instance. In the window that appears, specify the new virtual machine parameters.

STEP 5. RESIZE PARTITION

Depending on the operating system selected, it may be necessary to change partition sizes.

Resize the system volume without deleting the instance

It is possible to resize the system volume without deleting the instance. However, this is a more complicated procedure and is only possible from the Openstack CLI and the corresponding version of the Cinder CLI (3.42).

STEP 1. READING THE CORRESPONDING VOLUME ID

Extracting the corresponding volume id is possible by executing the following command.

openstack volume list

STEP 2. VOLUME EXPANSION

To extend a volume (in our example we will extend it to 100GB) you need to call a command from the Cinder API. This only works for a specific version of the Cinder API - in the example below we will force a call to that version. Remember to replace with the corresponding ID read in step one.

OS_VOLUME_API_VERSION=3.42; cinder extend <volume-id> 100

STEP 3. RESTART THE INSTANCE

In order for the instance to correctly recognise the change made, it must be restarted. To do this, freeze and restart it from the Openstack CLI.

openstack server stop <server-name> openstack server start <server-name>

STEP 4. VERIFY AND ACTIVATE THE NEW SIZE INSIDE THE INSTANCE

To use the new disk space, use the appropriate tools from your operating system to extend the file system on the partition.partition.

Changing the size of the additional volume

If the secondary drive is resized, it is necessary to unplug the volume from the instance, then resize the volume and plug the volume back in.

STEP 1. DETACH THE VOLUME FROM THE INSTANCE

First, we log into the instance operating system and unmount the volume on the system. For Linux we use the umount command, instructions for Windows can be found above. This is particularly important for Windows instances - that system will not allow you to unmount a volume that has disk operations running on it. If you try to unmount the volume, it will lock itself in the Detaching state, unlocking such a volume requires contacting our support.

We display the list of volumes, click on the arrow in the drop-down menu next to the selected volume and click on the Extend Volume item. Enter the new volume size and confirm by clicking Manage Attachments

pic14

In the window that appears, click on the Detach Volume button.

pic15

STEP 2. CHANGE VOLUME SIZE

With the volume selected, click on the arrow in the drop-down menu next to the selected volume and click on the Extend Volume item. Enter the new volume size and confirm by clicking on the Extend Volume button.

pic16

STEP 3. RECONNECT VOLUME

With the volume selected, click on the arrow in the drop-down menu next to the selected volume and click on Edit Attachments. In the window that appears, indicate the instance to which the volume is to be attached.