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 next 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
Re: Compacting a ploop image with multipartitions [message #53496 is a reply to message #53495] Wed, 10 April 2019 12:00 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi.

Emm, i'm afraid the ploop driver and ploop compact code is not ready to handle more than 1 ploop partition.
We just do not know the usecase when someone needs several partitions in a single ploop device.

1) Can you please tell me how did you get such a ploop with 2 partitions?
2) am i right, 2nd ploop partition is not used anyway - it cannot be mounted inside a Container AFAIK?

Thank you.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Compacting a ploop image with multipartitions [message #53497 is a reply to message #53496] Wed, 10 April 2019 14:27 Go to previous message
iblinder is currently offline  iblinder
Messages: 10
Registered: June 2018
Junior Member
I try to start a kvm vm with ploop device Smile
2nd partition is used by VM as swap device.
It works, but one of interesting questions - it's compacting images.
Unfortunately prl_disk_tool hasn't got options for set a partition in a ploop device.
Previous Topic: Slow Live Migration (prlctl migrate)
Next Topic: How to install openvz7 to centos
Goto Forum:
  


Current Time: Tue Apr 16 09:00:13 GMT 2024

Total time taken to generate the page: 0.01409 seconds