Skip to main content
Change the capacity of the network disk
Last update:

Change the capacity of the network disk

You can only increase the size of a disk. You cannot decrease the capacity of a disk once it has been created. The maximum capacity of a network disk depends on its type. See the table for details Network disk limits.

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

1. resize the network drive in the control panel

  1. In the control panel, go to Servers and hardwareNetwork disks and storage.
  2. Open the tab Network disks.
  3. On the menu of the disk, select Resize.
  4. Specify the disk size in GB. You cannot reduce the size of the network disk.
  5. Click Save.

2. update the iSCSI session and network disk capacity on the server

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

  2. Upgrade the iSCSI session:

    iscsiadm --mode session --rescan
  3. Display information about network drives:

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

    multipathd resize map <block_storage_name>

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

  5. Print information about the partitions on the available disks:

    lsblk
  6. Update the volume of the network disk partition:

    resize2fs /dev/<partition>

    Specify <partition> — the network drive partition you obtained in step 5, for example mpatha1.