Skip to main content

Resize the network disk

Last update:

The disk size can only be increased, each GB of network disks is paid for - more details in the Network Disk Payment Model and Pricing instructions. You cannot reduce the size of a disk once it has been created. The maximum size of a network disk depends on its type - see the Network Disk Limits table for details.

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

1. Change the size of the network drive 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. From the disk's menu, 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 network disk size on the server

  1. Connect to the server via SSH or via 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 volumes are connected to the server, update the session for each network volume:

    multipathd resize map <block_storage_name>

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

  5. Print information about the partitions on the disks:

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

    resize2fs /dev/<partition>

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