VK Cloud logo
Updated atMarch 27, 2024   03:20 PM

Disks

The data storage system on the VK Cloud platform is organized using network drives. The configuration of the main disk is set at the stage of creating a virtual machine, additional disks can be created, later connect to the necessary VMs. For created disks, the resizing and changing disk type operations are available. Disks can be shared between projects and virtual machines, disconnect from VM, make bootable and not bootable. Disks that are no longer in use can be deleted.

Creating a disk

Creating HDD and SSD drives is available by default in all configurations. To create LL NVME discs contact technical support and request access to high-performance configurations and disks. Learn more about disk types — to the article Cloud Servers overview.

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM for which you want to create a disk.
      3. On the VM page, go to the Disks tab.
  3. Above the list of disks, click Create disk.

  4. Specify the disk parameters:

    • Disk Name: required field. If necessary, click Add description and enter the text in the field that appears.

    • Source: select the appropriate option for the parameter:

      • Empty disk: fill in the parameters Disk Type and Availability zone.
      • Disk snapshot: in the List of snapshots field, select the snapshot from which you want to create a disk.
      • Disk image: fill in the parameters Disk Type, Availability zone and Disk image.
      • Disk: in the Cloning disk field, select the desired disk.
    • Size: specify the disk size in gigabytes.

    • Boot disk: enable the option if you need to make the disk bootable.

    • Connect disk to instance: if you need to connect a disk to a VM immediately after creation, enable this option and select the VM you need in the field Choose instance.

  5. Click the Create disk button.

Increasing the disk size with rebooting

Restrictions related to changing the VM disk size on the VK Cloud platform:

  • The disk size cannot be reduced.
  • If disks with the High IOPS SSD and Low Latency NVME type have snapshots, you cannot increase the size of these disks.
  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM whose disk size you want to increase.
      3. On the VM page, go to the Disks tab.
  3. Use one of the methods to open the disk resizing window.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click the Change disk size.
    • On the disk page:

      1. Click on the name of the disk whose size you want to change.
      2. On the disk page, go to the tab General information.
      3. Above the table with the disk parameters, click the Change disk size button.
  4. In the window that opens, specify Disk size.

  5. Click the button Save.

  6. Reboot the VM.

Increasing the disk size without rebooting

  1. Increase the disk size in your VK Cloud account or using Openstack CLI, but do not reboot it.

  2. Increase the disk size in the VM's OS:

    1. Open Disk Management with administrator permissions (diskmgmt.msc).
    2. Choose Extend Volume in right-click menu of the volume that you want to extend.
    3. Increase the disk size.

Cloning disk

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM whose disk size you want to increase.
      3. On the VM page, go to the Disks tab.
  3. Use one of the methods to open the disk cloning window.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click the Clone disk.
    • On the disk page:

      1. Click on the name of the disk whose size you want to change.
      2. On the disk page, go to the tab General information.
      3. Above the table with the disk parameters, click the More and choose Clone disk option.
  4. On the page that opens, specify the parameters of the new disk.

  5. Click the Create disk button.

Changing the disk type

Creating HDD and SSD drives is available by default in all configurations. To use LL NVME discs contact technical support and request access to high-performance configurations and disks. Learn more about disk types — to the article Cloud Servers overview.

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM whose disk type you want to change.
      3. On the VM page, go to the Disks tab.
  3. Use one of the methods to open the disk type change window.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click Change disk type.
    • On the disk page:

      1. Click on the name of the disk whose type you want to change.
      2. On the disk page, go to the General Information tab.
      3. Above the table with the disk parameters, click Change disk type.
  4. In the window that opens, select Disk Type and click Confirm.

Changing the bootable attribute

Make the disk bootable to use it as the VM's primary (root) disk. The boot disk can also be used as an additional VM disk to boot the operating system.

To exclude the possibility of accidental booting from the disk, make it non-bootable.

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the VM name.
      3. On the VM page, go to the Disks tab.
  3. Change the “bootable” attribute in one of the ways.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click the Make bootable (Make it non-bootable).
    • On the disk page:

      1. Click on the disk name.
      2. On the disk page, go to the General Information tab.
      3. Above the table with the disk parameters, click More and select Make bootable (Make it non-bootable).
  4. In the window that opens, click Confirm.

Connecting a disk to a VM

  1. Go to personal account VK Cloud.

  2. Go to Cloud ComputingDisks.

  3. Find a disk in the list that is not connected to the VM: the icon to the left of the disk name is blue, when you hover over it, the inscription appears Не подключен к инстансу.

  4. Use one of the methods to open the virtual machine selection window to attach the disk.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click the Connect to instance.
    • On the disk page:

      1. Click on the name of the disk that you want to connect to the VM.
      2. On the disk page, go to the General Information tab.
      3. Above the list of disks, click More and select Connect to instance.
  5. In the window that opens, specify the virtual machine in the field Choose instance.

  6. Click the Connect disk.

Disconnecting a disk from a VM

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM from which you want to disconnect the disk.
      3. On the VM page, go to the Disks tab.
  3. Disconnect the disk from the VM in one of the ways.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click Disconnect from instance.
    • On the disk page:

      1. Click on the name of the disk that you want to disconnect from the VM.
      2. On the disk page, go to the General Information tab.
      3. Above the list of disks, click More and select Disconnect from instance.
  4. In the window that opens, check the name of the disk and click Confirm.

Replacing the root disk

Before replacing the main disk stop the VM.

  1. Go to personal account VK Cloud.

  2. Disconnect from VM the disk that will be used to replace the main one.

  3. Clone the target disk if necessary.

  4. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM whose main disk you want to replace.
      3. On the VM page, go to the Disks tab.
  5. Use one of the methods to open the disk replacement window.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click Replace root disk.
    • On the disk page:

      1. Click on the name of the disk you want to replace.
      2. On the disk page, go to the General Information tab.
      3. Above the list of disks, click More and select Replace root disk.
  6. In the window that opens, select New root disk and click Replace.

Transfer disks between projects

  1. Make sure that OpenStack client is installed and authenticate to it (to both projects).

  2. Log in to the project you want to move the disk from.

  3. Disconnect from VM the disk to be moved.

  4. View the list of disks:

    openstack volume list --long
  5. Make sure that the disk is disconnected from the VM (Status: available).

  6. Copy the disk ID.

  7. Create a request to move the disk:

    openstack volume transfer request create <disk ID>
  8. Copy the auth_key and id values.

  9. Review the list of disks and make sure that the status of the disk being moved has changed to awaiting-transfer:

    openstack volume list
  10. Log in to the project you want to move the disk to.

  11. Move the disk:

    openstack volume transfer request accept --auth-key <auth_key> <id>
  12. Make sure that the disk appears in the project:

    openstack volume show <disk ID>

Additional commands for working with disk transfer requests

  • View the list of transfer requests:

    openstack volume transfer request list
  • Delete a transfer request:

    openstack volume transfer request delete <request ID>

Deleting a disk

Before deleting disconnect the disk from the VM.

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM whose disk you want to delete.
      3. On the VM page, go to the Disks tab.
  3. Delete the disk in one of the ways.

    • Using group operations — for multiple disks:

      1. Select the disks you want to delete with the checkboxes.
      2. Above the list of disks, click the Delete disk button.
    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click Delete disk.
    • On the disk page:

      1. Click on the name of the disk you want to delete.
      2. On the disk page, go to the General Information tab.
      3. To the right above the table with the disk parameters, click on the trash icon.
  4. In the window that opens, check the disk name and click Confirm.

Disk snapshots

A disk snapshot is a file that stores a copy of a disk taken at a certain point in time. The snapshot can be used to create a new VM or a new disk.

Creating a snapshot

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the name of the VM that you plan to create a disk snapshot for.
      3. On the VM page, go to the Disks tab.
  3. Use one of the methods to open the disk snapshot creation window.

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click Create snapshot.
    • On the disk page:

      1. Click on the name of the disk for which you want to create a snapshot.
      2. On the disk page, go to the Snapshots tab.
      3. Above the list of snapshots, click Create snapshot.
  4. In the window that opens, specify the parameters:

    • Name snapshot.
    • Source disk.
  5. Click Create snapshot.

Using snapshots

  1. Go to personal account VK Cloud.

  2. Open the page with the desired list of disks.

    • All disks: go to Cloud ComputingDisks.

    • Disks of a specific virtual machine:

      1. Go to Cloud ComputingVirtual machines.
      2. In the list of virtual machines, click on the VM name.
      3. On the VM page, go to the Disks tab.
  3. Open the page with the list of snapshots using one of the following methods:

    • Via the disk context menu:

      1. Expand the disk context menu.
      2. Click List of snapshots.
    • On the disk page:

      1. Click on the name of the disk whose snapshots you want to view.
      2. On the disk page, go to the Snapshots tab or on the General Information tab, click the More button and select List of snapshots.
  4. Expand the context menu of the snapshot and select the desired option:

    • Create VM instance — to go to the virtual machine creation page.

    • Create disk — to go to the disk creation page.

    • Delete disk snapshot — to delete a snapshot.