Skip to main content

Change cloud server disk parameters

Change disk type

You can only change the type of a network volume — to another network or a local one.

It is not possible to change the network volume type to another one directly — you need to create a new disk with the required type.

  1. In the current disk's pool segment:

  2. Optional: attach the created disk to the server and detach the previous one.

  3. Optional: if you attached the disk as a boot (system) disk, then reboot the server.

Reduce disk size

It is not possible to reduce a local disk.

You cannot reduce the size of a network volume directly, as it may compromise the integrity of the disk's file system and data — you can create a new, smaller disk.

  1. In the current disk's pool segment, create an empty disk of a smaller size.
  2. Attach the created disk to the cloud server.
  3. Boot the server in Rescue mode.
  4. Transfer data from the old disk to the new one—copy files manually or use the dd utility.
  5. Optional: detach the old disk from the server and delete the disk.

Increase disk size

It is not possible to increase a local disk directly — you can change the configuration of the cloud server it is connected to. The local disk will expand automatically.

You can increase a network volume by following the instructions below. After increasing, you must prepare the disk for use.

Another way to increase disk space on a cloud server is to attach an additional disk.

warning

Before working with partitions and the file system, we recommend creating a disk image, snapshot, or another disk from this disk to avoid data loss in case of an error.

  1. In the control panel, click Products in the top menu and select Cloud Servers.

  2. Go to the Disks section.

  3. Open the disk page → Settings tab.

  4. In the Size field, click .

  5. Enter the new disk size in GB; keep in mind the disk maximum size limits.

  6. Click Save.

  7. Prepare the disk for use:

    • if you have increased the boot disk, reboot the cloud server or expand the disk according to the instructions below; ;
    • if you have increased an additional disk, expand the disk according to the instructions below.

Preparing the disk for use after increasing

If you have increased a disk, you must expand it — the configuration steps depend on the operating system.

  1. Connect to the server.

  2. Open the list of all disks connected to the server:

    lsblk

    Example output:

    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 8G 0 disk
    ├─sda1 8:1 0 8G 0 part /
    └─sda14 8:14 0 8M 0 part
    sdb 8:16 0 7G 0 disk
  3. Expand the disk (using growpart) and initiate the file system change (using resize2fs):

    growpart /dev/<sdb> 1
    resize2fs /dev/<sdb1>

    Specify <sdb> — the disk to be expanded.

Change IOPS count

You can only change the IOPS count for a network volume of the SSD Universal v2 or SSD Fast v2 type that is in the AVAILABLE or IN-USE status. There is no limit on the number of IOPS changes.

  1. In the control panel, click Products in the top menu and select Cloud Servers.
  2. Go to the Disks section.
  3. Open the disk page → Settings tab.
  4. In the IOPS field, click Change.
  5. Specify the new IOPS count.
  6. Click Confirm changes.