Skip to main content

Change network volume capacity

You can only increase the size of the disk, each GB of network volumes is paid for — see the network volume Payment Model and Pricing. You cannot decrease the size of a disk once it has been created. The maximum capacity of a network volume depends on its type — see the Limits of network volumes.

  1. Change the network volume capacity in the control panel.
  2. Update the iSCSI session and file system on the server.

1. Change the network volume capacity in the control panel

  1. In the control panel, on the top menu, click Products and select Dedicated Servers.
  2. Go to the Network Volumes and Storage section.
  3. Open the Network Volumes tab.
  4. In the menu of the volume, select Resize.
  5. Specify the disk size in GB. You cannot reduce the size of the network volume.
  6. Click Save.

2. Update the iSCSI session and the network volume capacity on the server

  1. Connect to the server via SSH or via the KVM console.

  2. Update the iSCSI session:

    iscsiadm --mode session --rescan
  3. Output the network volume information:

    multipath -ll
  4. Update the multipathd session. If multiple network volumes are connected to the server, update the session for each network volume:

    multipathd resize map <block_storage_name>

    Specify <block_storage_name> — the name of the network volume you received in step 3, for example mpatha.

  5. Output information about partitions on the disks:

    lsblk
  6. Update the network volume partition capacity:

    resize2fs /dev/<partition>

    Specify <partition> — the network volume partition that you received in step 5, for example mpatha1.