Reducing Disk Capacity
Parallels Cloud Server provides a possibility to reduce the size of an expanding virtual disk by setting the limit the disk cannot exceed. To do this, use the
prlctl set --device-set
command. For example:
# prlctl set MyVM --device-set hdd0 --size 30G
When reducing the disk capacity, keep in mind the following:
-
You cannot reduce the capacity of a virtual disk if the virtual machine or Container using this disk is running.
-
The virtual machine or Container using the virtual disk you want to configure must not have any snapshots. In this case, you should delete all existing snapshots and run the command again. To learn how to delete snapshots of a virtual machine or Container, refer to
Deleting Snapshots
.
-
The capacity of an expanding virtual disk shown from inside the virtual machine or Container and the size the virtual disk occupies on the server's physical disk may differ.
-
You cannot reduce XFS filesystems on LVM (the default choice for CentOS 7 and Red Hat Enterprise Linux 7).
Checking the minimum disk capacity
If, before reducing disk capacity, you want to know the minimum to which it can be reduced, use the
prl_disk_tool resize --info
command. For example, if the disk
hdd0
of the virtual machine
MyVM
is emulated by the image
/var/parallels/MyVM.pvm/harddisk.hdd
, run the following command:
# prl_disk_tool resize --info --hdd /var/parallels/MyVM.pvm/harddisk.hdd
Disk information:
...
Minimum: 2338M
...
|