Change cloud server disk settings
Change disk type
You can only change the type of a network disk to another network disk or to a local disk.
On the other network
To the local
It is not possible to change the network disk type to another one directly — you must create a new disk with the desired type.
-
In the pool segment of the current disk:
- create a disk image;
- or disconnect the current disk from the cloud server and create a new disk from it.
-
Optional: connect the created disk to the server and disconnect the previous disk.
-
Optional: if you connected the disk as a boot (system) disk, reboot the server.
It is not possible to change the network disk type to local disk directly — create a new cloud server with a local disk.
-
In the pool segment of the current disk:
- create a disk image;
- or disconnect the current disk from the cloud server and create a new disk from it.
-
Create a new cloud server with a local disk and select the created image or disk as the source.
Shrink the disk
It is not possible to shrink a local disk.
You cannot reduce the size of a network disk directly, as this may compromise the integrity of the disk's file system and data — you can create a new, smaller disk.
- In the pool segment of the current disk, create an empty disk of a smaller size.
- Connect the disk you created to the cloud server.
- Boot the server into Rescue mode.
- Transfer data from the old disk to the new one — copy the files manually or use the
dd
utility. - Optional: disconnect the old disk from the server and remove the disk.
Enlarge the disk
You cannot directly expand a local disk, but you can change the configuration of the cloud server to which it is connected. The local disk will expand automatically.
You can enlarge the network disk by following the instructions below. After enlarging, you must prepare the disk for operation.
Another way to increase disk space on a cloud server is to mount an additional disk.
Before performing work with partitions and file system, we recommend creating a disk image, snapshot or other disk from the disk to avoid data loss in case of an error.
Control panel
OpenStack CLI
-
In the Control panel, on the top menu, click Products and select Cloud Servers.
-
Go to the Disks section.
-
From the disk's menu, select Resize.
-
Specify a new value for the disk size in GB, taking into account disk limitations on the maximum size. Click Save.
-
Prepare the disk for use:
- if you have enlarged the boot disk, reboot the cloud server or expand the disk using the instructions below;
- if you have enlarged an additional disk, expand the disk using the instructions below.
-
Change the size of the disk:
openstack volume set --size <size> <volume>
Specify:
<size>
— disk size in GB, take into account disk limitations on the maximum size;<volume>
— ID or disk name. The list can be viewed withopenstack volume list
-
Prepare the disk for use:
- if you have enlarged the boot disk, reboot the cloud server or expand the disk using the instructions below;
- if you have enlarged an additional disk, expand the disk using the instructions below.
Prepare the disk for operation after enlarging
If you have enlarged the disk, you should definitely enlarge it — the order of configuration depends on the operating system.
Linux
Windows
-
Open a list of all disks connected to the server:
lsblk
Example answer:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 8G 0 disk
├─sda1 8:1 0 8G 0 part /
└─sda14 8:14 0 8M 0 part
sdb 8:16 0 7G 0 disk -
Extend the disk (via
growpart
) and run a filesystem change (viaresize2fs
):growpart /dev/<sdb> 1
resize2fs /dev/<sdb1>Specify
<sdb>
is the disk you want to expand.
- Connect to the server.
- Open the built-in Disk Management utility.
- Right-click on the disk and select Extend Volume.
Change the number of IOPS
The number of IOPS can only be changed for SSD Universal v2 in AVAILABLE
and IN-USE
statuses. The number of IOPS changes is not limited.
- In the Control panel, on the top menu, click Products and select Cloud Servers.
- Go to the Disks section.
- Open the disk page → Settings tab.
- In the IOPS field, click Edit.
- Specify the new number of IOPS.
- Click Confirm changes.