Change network volume capacity
You can only increase the disk capacity; every GB of network volumes is charged — more details in the Payment model and network volume pricing guide. You cannot decrease the disk capacity after it has been created. The maximum capacity of a network volume depends on its type — more details in the Network volume limits table.
- Change the network volume capacity 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, on the top menu, click Products and select Dedicated Servers.
- Go to the Network Volumes and Storage section.
- Open the Network Volumes tab.
- In the menu of the volume, select Resize.
- Specify the disk capacity in GB. You will not be able to decrease the network volume capacity.
- 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 volume you received in step 3, for examplempatha. -
Output information about partitions on the disks:
lsblk -
Update the network volume partition capacity:
resize2fs /dev/<partition>Specify
<partition>— the network volume partition that you received in step 5, for examplempatha1.