Change network volume capacity
The disk size can only be increased, and each GB of network drives is billed — learn more in the Network drive billing model and pricing instructions. You cannot reduce the disk size after creating it. The maximum network drive size depends on its type — learn more in the Network drive limits table.
- Change the network drive size in the control panel.
- Update the iSCSI session and file system on the server.
1. Change the network volume capacity in the control panel
- In the control panel, in the top menu, click Products and select Dedicated Servers.
- Go to the Network drives and storage section.
- Open the Network drives tab.
- In the menu of the drive, select Change size.
- Specify the disk size in GB. You will not be able to reduce the size of the network volume.
- Click Save.
2. Update the iSCSI session and the network volume capacity on the server
-
Connect to the server via SSH or via the KVM console.
-
Update the iSCSI session:
iscsiadm --mode session --rescan -
Output the network volume information:
multipath -ll -
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 drive that you obtained in step 3, for example,mpatha. -
Output information about partitions on the disks:
lsblk -
Update the network volume partition capacity:
resize2fs /dev/<partition>Specify
<partition>— the partition of the network drive that you obtained in step 5, for example,mpatha1.