5.9. Managing the compute storage

In Acronis Cyber Infrastructure, the compute storage comprises volumes provisioned to virtual machines. The provisioned storage space can exceed available physical space. Rules for storing volumes can be set via storage policies. Storage policies also allow you to set different performance levels and redundancy modes for VM volumes.

The next subsections describe how to manage volumes and create storage policies for them.

5.9.1. Managing compute volumes

A volume in Acronis Cyber Infrastructure is a virtual disk drive that can be attached to a VM. The integrity of data in volumes is protected by the redundancy mode specified in the storage policy.

Note

Additional virtual disks attached to VMs need to be initialized inside the guest OS by standard means before they can be used.

5.9.1.1. Creating, editing, and removing volumes

To create a volume, do the following:

  1. On the Compute > Storage > Volumes tab, click Create volume.

    ../_images/compute_volumes1_ac.png
  2. In the Create volume window, specify a volume name and size in gigabytes, select a storage policy, and then click Create.

To edit a volume, select it, and then click the pencil icon next to a parameter you need to change. Note the following restrictions:

  • You cannot shrink volumes.
  • To extend volumes that are in use, stop the VM first.
  • You cannot change the volume redundancy type.

To remove a volume, click its ellipsis button, and then click Delete. To remove multiple volumes at once, select them, and then click Delete. To remove a volume that is in use, detach it first.

Note

A volume is removed along with all of its snapshots.

5.9.1.2. Cloning volumes

You can clone volumes that are not attached to VMs or attached to stopped VMs. To clone a volume, do the following:

  1. On the Compute > Storage > Volumes tab, click a volume.

  2. In the volume panel that opens, click Clone.

    ../_images/compute_volumes2_ac.png
  3. In the Clone volume window that opens, specify a volume name, size, and storage policy. Click Clone.

    ../_images/compute_volumes3_ac.png

5.9.1.3. Attaching and detaching volumes

To add a writable virtual disk drive to a VM, attach a volume to it. To do this:

  1. On the Compute > Storage > Volumes tab, click the ellipsis button next to an unused volume, and then click Attach.

  2. In the Attach volume window, select the VM from the drop-down list, and then click Done.

    ../_images/compute_volumes4_ac.png

To detach a volume, do the following:

  1. Click the ellipsis button next to the volume that is in use.

  2. If the VM is not running, click Detach.

  3. If the VM is running, you can only click Force detach to immediately detach the volume.

    Warning

    There is a risk of data loss.

5.9.1.4. Creating images from volumes

To create multiple VMs with the same boot volume, you can create an image from an existing boot volume and deploy VMs from it. Make sure to install cloud-init in the volume before creating the image.

Do the following:

  1. Power off the VM that the original volume is attached to.

  2. Switch to the Compute > Storage > Volumes tab, click volume’s ellipsis button, and then click Create image.

    ../_images/compute_volumes5_ac.png
  3. In the Create image window, enter an image name, and then click Create.

    ../_images/compute_volumes6_ac.png

The new image will appear on the Images tab.

5.9.1.5. Managing volume snapshots

You can save the current state of a VM file system or user data by creating a snapshot of a volume. A snapshot of a boot volume may be useful, for example, before updating VM software. If anything goes wrong, you will be able to revert the VM to a working state at any time. A snapshot of a data volume can be used for backing up user data and testing purposes.

To create a snapshot of a volume, do the following:

  1. On the Compute > Storage > Volumes tab, click a volume.

  2. In the volume panel that opens, switch to Snapshots, and then click Create snapshot.

    ../_images/compute_volumes7_ac.png

    Note

    To create a consistent snapshot of a running VM’s volume, make sure the guest tools are installed in the VM. The QEMU guest agent included in the guest tools image automatically quiesces the filesystem during snapshotting. For instructions on installing the guest tools, refer to Installing guest tools.

Once the snapshot is created, you can see and manage it on the Snapshots tab on the volume right pane.

../_images/compute_volumes8_ac.png

You can do the following:

  • Create a new volume from the snapshot.

  • Create a template from the snapshot.

  • Discard all changes that have been made to the volume since the snapshot was taken. This action is available only for VMs with the “Shut down” and “Shelved offloaded” statuses.

    Warning

    As each volume has only one snapshot branch, all snapshots created after the snapshot you are reverting to will be deleted. If you want to save a subsequent snapshot before reverting, create a volume or an image from it first.

  • Change the snapshot name and description.

  • Reset the snapshot stuck in an “Error” state or transitional state to the “Available” state.

  • Remove the snapshot.

To perform these actions, click the ellipsis button next to a snapshot, and then click the corresponding action.

5.9.2. Managing storage policies

A storage policy is a group of parameters that define how to store VM volumes: a tier, a failure domain, and a redundancy mode. For more information, refer to Understanding storage tiers, Understanding failure domains, and Understanding data redundancy. A storage policy can also be used to limit the bandwidth or IOPS of the volume. These limits help customize the allocation of cluster resources between the virtual machines. It is also needed to provide predictable performance levels for virtual machine disks.

When you deploy the compute cluster, a default storage policy is created that enforces the best replication scheme allowed by the number of nodes in the storage cluster. The default policy cannot be deleted or renamed. By default, it is applied to uploaded images and base volumes created from these images.

Note

A base volume is created from a source image when you deploy a VM. It is not used directly by a VM, but all volumes that a VM actually uses (which are listed on the Volumes tab) are in fact deltas (differences) from the base volume. It is important to keep base volumes available, as VM volumes depend on them. For that, you need the default storage policy to enforce multiple replicas.

If the storage cluster does not have enough nodes to enable multiple replicas (not recommended), you can adjust the default storage policy once you add more nodes to the storage cluster. It will be applied to the images and base volumes that were created with the default policy.

To apply custom redundancy schemes to VM volumes, you can create, edit, or clone storage policies for them.

5.9.2.1. Creating and editing storage policies

To create a storage policy, do the following:

  1. On the Compute > Storage > Storage policies tab, click Create storage policy.

  2. In the Create storage policy window, specify a name and select the following:

    ../_images/compute_policies1_ac.png
    1. In Tier, a tier to store volumes on.
    2. In Failure domain, a placement policy for data pieces or replicas.
    3. Under Redundancy, a redundancy mode.
    4. Optionally, enable IOPS limit or Bandwidth limit to set the corresponding limits on the volume.
  3. Click Create.

To edit a policy, select it from the list, and then click Edit on its right pane. Keep in mind, that changes to the storage policy will affect the redundancy and performance of all the volumes covered by it.

5.9.2.2. Cloning storage policies

To clone a storage policy, do the following:

  1. On the Storage policies tab, select a policy to clone from the list.
  2. Click Clone on the policy right pane.
  3. Optionally, modify the existing parameters or just leave them as they are.

5.9.2.3. Deleting storage policies

To remove a storage policy, do the following:

  1. On the Storage policies tab, select a policy from the list.
  2. Click Delete on the policy right pane.

Note

A policy cannot be removed if it governs existing volumes. If you still want to delete the storage policy, first remove these volumes or choose another policy for them.