Change the capacity of the network disk
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 Network Disk Limits table for details.
- Change the network disk capacity in the control panel.
- Upgrade the iSCSI session and file system on the server.
1. Change the size of the network drive in the control panel
- In the Control Panel, on the top menu, click Products and select Dedicated Servers.
- Go to the Network Disks and Storage section.
- Open the Network Disks tab.
- From the disk's menu, select Resize.
- Specify the disk size in GB. You cannot reduce the size of the network disk.
- Click Save.
2. Update the iSCSI session and network disk capacity on the server
-
Upgrade the iSCSI session:
iscsiadm --mode session --rescan
-
Display information about network drives:
multipath -ll
-
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>
is the name of the network drive you obtained in step 3, for examplempatha
. -
Print information about the partitions on the available disks:
lsblk
-
Update the volume of the network disk partition:
resize2fs /dev/<partition>
Specify
<partition>
is the network disk partition that you obtained in step 5, for examplempatha1
.