Skip to main content
In this article, you will learn how to manage Compute volumes: Network SSD disks and shared filesystems. Boot disks are added to virtual machines (VMs) immediately. To use secondary (additional) disks and shared filesystems on VMs after you create the volumes, you need to attach and mount them to the VMs. You can detach these volumes later, if necessary. A VM and its volumes must be located in the same project. For more details about projects and resource hierarchy in Nebius AI Cloud, see How resources, identities and access are managed in Nebius AI Cloud.

Prerequisites

If you use the web console, you don’t need to complete any prerequisites.

How to create a disk

  1. In the sidebar, go to  Storage → Disks.
  2. Click Create disk.
  3. On the creation page, specify a disk name.
  4. In Disk source type, select one of the supported sources for the disk:
    • Blank disk: Create a regular, blank disk. Suitable for any boot or additional disk.
    • Public image: Create a boot disk from one of public images that Nebius AI Cloud provides. An image represents an operating system for the disk.
    • Custom image: Create a boot disk based on your custom image that includes custom software.
    • Custom image family: Create a boot disk based on your custom image family. When you create custom images, you can add them to an arbitrary custom family. If an image family contains several images, the latest one is used.
    • Snapshot: Create a boot or additional disk based on a disk snapshot.
  5. In Storage configuration, select the disk type.
  6. (Optional) Enable data encryption if you’re creating a Network SSD Non-replicated or Network SSD IO M3 disk. Encryption is enabled by default for Network SSD disks.
  7. Set the disk size and block size.
  8. (Optional) Enable Deletion protection to prevent this disk from being accidentally deleted.
  9. Click Create disk.
For more information about how to start using secondary disks, see Attaching and mounting Compute volumes to VMs.

How to create a shared filesystem

  1. In the sidebar, go to  Storage → Shared filesystems.
  2. Click Create filesystem.
  3. On the creation page, specify a filesystem name.
  4. Set the filesystem size and block size.
  5. (Optional) Enable Deletion protection to prevent this filesystem from being accidentally deleted.
  6. Click Create filesystem.
For more information about how to start using the created shared filesystem, see Attaching and mounting Compute volumes to VMs.

Volume parameters

Disks and shared filesystems share almost all of their parameters, except for boot disk image which can only be set for disks. CLI parameter names are shown in parentheses. Terraform uses the corresponding snake_case attributes, and SDKs use the corresponding parameter names for each language, such as camelCase in JavaScript, as shown in the examples.

Metadata

Name (name): A Nebius AI Cloud resource name. It must be unique inside your tenant. Required at creation, cannot be changed after it.

Type, encryption and size

  • Type (type): The volume type. See available types of disks and shared filesystems. Required at creation, and cannot be changed later.
  • Enable data encryption (disk-encryption-type): Whether a volume should support data encryption. Encryption allows you to store personal and other sensitive data securely on volumes, and reduce the risk of unauthorized access. Use this parameter only for disks of the Network SSD Non-replicated and Network SSD IO M3 types. Filesystems and Network SSD disks support encryption by default, and you cannot disable it. For more information, see Encryption of disks. In the CLI, use --disk-encryption-type disk_encryption_managed to enable encryption.
  • Size (size-gibibytes, size-mebibytes, size-kibibytes or size-bytes): The volume size. See requirements for sizes of disks and shared filesystems in their comparison tables. Required at creation. After creation, size can only be increased. When using the CLI, you can set the volume size in GiB, MiB, KiB or B using a respective parameter.
  • Block size (block-size-bytes): The data block size for the volume. The data stored on the volume is divided into blocks of this size on the underlying physical drives. Cannot be changed after the volume is created. The block size must be a power of two between 4096 bytes (4 KiB) and 131,072 bytes (128 KiB). The default value is 4096 bytes (4 KiB). For maximum IOPS, reads and writes to a volume should be close to its block size.

Disk sources

Use one of the supported disk sources:
  • Public image (source-image-family-image-family): Create a boot disk from one of the public images that Nebius AI Cloud provides. An image represents an operating system for the disk.
  • Custom image (source-image-id): Create a boot disk based on your custom image that includes custom software.
  • Custom image family (both source-image-family-image-family and source-image-family-parent-id): Create a boot disk based on your custom image family. When you create custom images, you can add them to an arbitrary custom family. If an image family contains several images, the latest one is used.
  • Snapshot (source-snapshot-id): Create a boot or additional disk based on a disk snapshot.
To create a blank additional disk, don’t specify any disk source.

Deletion protection

  • Deletion protection (forbid-deletion): Prevents the volume from being deleted. Use this parameter to protect disks and shared filesystems from accidental deletion, especially in automated environments such as CI/CD pipelines or Terraform configurations. Deletion protection can be enabled at creation time or changed at any time after creation. When enabled, any attempt to delete the volume fails with an error. To delete a protected volume, disable deletion protection first.

How to resize a volume

You can increase the size of an existing disk or shared filesystem. Reducing volume size is not possible.

How to resize a disk

Compute supports hot resize: the resize operation itself does not require stopping the VM. However, you need to restart the VM afterward for the operating system to recognize the new disk size.
To resize a disk:
  1. Change the disk size:
    1. In the sidebar, go to  Storage → Disks. Alternatively, go to the virtual machine where the disk is attached and find it in the Disks tab.
    2. Click the disk you want to resize and go to the Settings tab.
    3. In the Parameters section, enter the new Size value or use the slider to set the new size.
    4. Click Save changes.
  2. If you resized a secondary disk and it is currently attached to a running virtual machine, do the following:
    1. Restart this VM.
    2. Connect to this VM.
    3. Install the cloud-guest-utils package that manages the disk partitions:
    4. List disks and partitions:
      Output example:
      Find the device name of the resized disk and get the name of its last partition. The secondary disk is most likely the last one in the list. Also, check the SIZE column: it shows that the disk size is increased, but the partition size stays the same. In this example, the required device name is /dev/vdc, and the partition is /dev/vdc1.
    5. Grow the partition to fill the disk:
      If you work with a disk that has a device name other than /dev/vdc, change the device name and the partition index 1 in the current command and commands below. You can get the index of the partition from its name. Only the last partition may be grown.
      In the commands, you can use the device ID of the disk (/dev/disk/by-id/virtio-disk-0) instead of the device name (/dev/vdc). Run the ls /dev/disk/by-id command to get device IDs for all disks.
    6. Refresh the kernel partition table for the disk and wait for the device information to be updated:
    7. Show information about partitions and check that the size of the partition has increased:
      Output example:
    8. Grow the ext4 filesystem on the increased partition:
    9. Check that the filesystem size has increased:
      Output example:

How to resize a shared filesystem

To resize a shared filesystem:
  1. In the sidebar, go to  Storage → Shared filesystems. Alternatively, go to the virtual machine where the filesystem is attached and find it in the Shared filesystems tab.
  2. Click the filesystem you want to resize and go to the Settings tab.
  3. In the Parameters section, enter the new Size value or use the slider to set the new size.
  4. Click Save changes.

How to enable or disable deletion protection

You can only change deletion protection of a standalone disk. If you need to update a VM-managed disk, convert it first to standalone. To enable or disable deletion protection:
  1. In the sidebar, go to StorageDisks or StorageShared filesystems.
  2. Click the volume you want to update and go to the Settings tab.
  3. In the Parameters section, enable or disable Deletion protection.
  4. Click Save changes.
If you try to delete a volume with deletion protection enabled, the operation will fail, and you’ll see the following message: Error: rpc error: code = FailedPrecondition desc = disk cannot be deleted because forbid_deletion is set. Disable deletion protection first, then delete the volume.

How to make a disk VM-managed or standalone

Each disk is either VM-managed or standalone. You can convert a disk from one state to another. To do so:
  1. In the sidebar, go to  Compute → Virtual machines.
  2. Open the page of the required VM and then go to the Disks tab.
  3. In the line of the required disk, click  → Convert to VM-managed or  → Convert to standalone.

How to delete a volume

Deleting a volume permanently removes all data stored on it. Before deleting, make sure the volume is detached from any virtual machine.
  1. In the sidebar, go to StorageDisks or StorageShared filesystems.
  2. Open the page of the volume that you want to delete.
  3. Go to the Settings tab.
  4. Click Delete disk or Delete filesystem.
  5. In the window that opens, confirm the deletion.

See also