How to create a disk
- Web console
- CLI
-
In the sidebar, go to
Storage → Disks.
- Click Create disk.
- On the creation page, specify a disk name.
- If you want to create a boot disk, select an operating system. For secondary disks, no operating system is required.
- Select the disk type.
- (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.
- Set the disk size and block size. Maximum size of a boot disk is 30,720 GiB (30 TiB).
- Click Create disk.
How to create a shared filesystem
- Web console
- CLI
- In the sidebar, go to
Storage → Shared filesystems.
- Click Create filesystem.
- On the creation page, specify a filesystem name.
- Set the filesystem size and block size.
- Click Create filesystem.
Volume parameters
Disks and shared filesystems share almost all of their parameters, except for boot disk image which can only be set for disks.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 secondary 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_managedto enable encryption. -
Size (
size-gibibytes,size-mebibytes,size-kibibytesorsize-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. Maximum size of a boot disk is 30,720 GiB (30 TiB). -
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.
Boot disk image
- Boot image (
source-image-family-image-family): An image provided by Nebius AI Cloud to use for a boot disk. For details, see Boot disk images for Compute virtual machines.
How to resize a volume
You can increase the size of an existing disk or shared filesystem. Reducing volume size is not possible.Compute supports hot resize: you can resize a volume that is currently attached to a running virtual machine. If you resize an attached secondary disk, refresh its partition after you change the disk size.
-
Change the volume size:
- Web console
- CLI
-
In the sidebar, go to
Storage → Disks or
Storage → Shared filesystems. Alternatively, go to the virtual machine where the volume is attached and find it in the Disks or Shared filesystems tab.
- Click the volume you want to resize and go to the Settings tab.
- In the Parameters section, enter the new Size value or use the slider to set the new size.
- Click Save changes.
-
If you resized a secondary disk and it is currently attached to a running virtual machine, do the following:
- Restart this VM.
- Connect to this VM.
-
Install the
cloud-guest-utilspackage that manages the disk partitions: -
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
SIZEcolumn: 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. -
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 index1in 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 thels /dev/disk/by-idcommand to get device IDs for all disks. -
Refresh the kernel partition table for the disk and wait for the device information to be updated:
-
Show information about partitions and check that the size of the partition has increased:
Output example:
-
Grow the
ext4filesystem on the increased partition: -
Check that the filesystem size has increased:
Output example: