OpenVZ Forum


Home » General » Support » Compacting a ploop image with multipartitions
Compacting a ploop image with multipartitions [message #53495] Wed, 10 April 2019 09:12 Go to previous message
iblinder is currently offline  iblinder
Messages: 10
Registered: June 2018
Junior Member
Hello.

How can i compact a ploop image when the image has 2 or more partitions?
Is it possible?

Example. Ploop image has two partitions.
# fdisk -l /dev/ploop43217

Disk /dev/ploop43217: 37.6 GB, 37580963840 bytes, 73400320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000958c2

           Device Boot      Start         End      Blocks   Id  System
/dev/ploop43217p1   *        2048    71300735    35649344   83  Linux
/dev/ploop43217p2        71300736    73397887     1048576   82  Linux swap / Solaris


When i try compact the image prl_disk_tool returns error:
# prl_disk_tool compact -i --hdd /vz/backups/vm101.2/root.hdd
/usr/sbin/ploop utility failed: /usr/sbin/ploop balloon discard --stat --automount /vz/backups/vm101.2/DiskDescriptor.xml [38]
out=
err=/usr/sbin/ploop balloon discard --stat --automount /vz/backups/vm101.2/DiskDescriptor.xml returned -1
 
Read Message
Read Message
Read Message
Previous Topic: Slow Live Migration (prlctl migrate)
Next Topic: How to install openvz7 to centos
Goto Forum:
  


Current Time: Fri May 03 22:36:44 GMT 2024

Total time taken to generate the page: 0.01663 seconds