OpenVZ Forum - RDF feed
type: channel
items: Ploop can't work with a correctly image
items: Re: Ploop can't work with a correctly image

Ploop can't work with a correctly image
type: item
description: Hello. I have a problem with one of ploop images. Ploop can't work with an image: # ploop mount /vz/private/5948/root.hdd/root.hds Opening delta /vz/private/5948/root.hdd/root.hds Error in range_build_rmap (balloon_util.c:542): Image corrupted: L2[28555] == 311619 (max=629143552) (2) Error in check_deltas (check.c:715): /vz/private/5948/root.hdd/root.hds : irrecoverable errors (rw) On OS Installed a ploop version # cat /etc/redhat-release Virtuozzo Linux release 7.7 # rpm -qa | grep -i ploop ploop-7.0.163-1.vz7.x86_64 ploop-lib-7.0.163-1.vz7.x86_64 python-ploop-7.0.163-1.vz7.x86_64 I replaced baseurl in openvz-os repo baseurl=http://download.openvz.org/virtuozzo/releases/openvz-7.0.11-235/x86_64/os/ and downgraded ploop and all dependesnses versions to previous release # yum downgrade libvzctl libvcmmd python-ploop libvzctl ploop-lib ploop ... ==================================================================================================================================================================== Package Архитектура Версия Репозиторий Размер ============================================================================================================================================================================================================================================ Откат версии: libvcmmd x86_64 7.0.22-3.vz7 openvz-os 12 k libvzctl x86_64 7.0.530-1.vz7 openvz-os 334 k ploop x86_64 7.0.157-1.vz7 openvz-os 71 k ploop-lib x86_64 7.0.157-1.vz7 openvz-os 155 k python-ploop x86_64 7.0.157-1.vz7 openvz-os 31 k ... When I did it, ploop mount the image correctly # ploop mount /vz/private/5948/root.hdd/root.hds Opening delta /vz/private/5948/root.hdd/root.hds Opening delta /vz/private/5948/root.hdd/root.hds Adding delta dev=/dev/ploop36860 img=/vz/private/5948/root.hdd/root.hds (rw) I checked the image on downgraded ploop version ploop check --force --repair-sparse /vz/private/5948/root.hdd/root.hds ploop mount /vz/private/5948/root.hdd/root.hdd fsck.ext4 -f …
creator: iblinder
date: 2020-01-04T18:14:15-00:00

Re: Ploop can't work with a correctly image
type: item
description: I did resize image on downgraded ploop version. ploop resize -s NEWG /vz/private/5948/root.hdd/DiskDescriptor.xml And latest ploop version works with the image correctly when I did it. I interesting in is there a way to fix the error without reverting to the previous ploop version.
creator: iblinder
date: 2020-01-05T10:57:36-00:00

Re: Ploop can't work with a correctly image
type: item
description: We encountered the same/similar problem. We have a container running for long time, and in good status (we use snapshot to backup it content. i.e. vzctl snapshot, snapshot-mount, rsync, snapshot-umount, snapshot-delete) Now, we need to clone it to another server for better resource. We stop the container 3xx3. scp those /vz/private/3xx3 content to another node. In another node, cd /vz/private/3xx3 ln -s 5 .ve.layout prlctl register --preserve-uuid /vz/private/3xx3 Then, it successfully registered the container. Then, we start it (as usual, OK to start successfully) Then, in midnight, we run vzctl container snapshot backup as usual. However, it failed to mount the snapshot vzctl : CT 3xx3 : Failed to mount image /vz/private/3xx3/root.hdd: Error in check_deltas (check.c:715): /vz/private/3xx3/root.hdd/root.hds : irrecoverable errors (rw) [7] Kernel: 3.10.0-1062.4.2.vz7.116.7 Inside /var/log/vzctl.log 2020-02-05T02:05:09+0800 vzctl : CT 3xx3 : Mount snapshot {d32995ac-4f88-4af9-a8f8-94e54680be78} 2020-02-05T02:05:09+0800 vzctl : CT 3xx3 : Mount image: /vz/private/3xx3/root.hdd ro 2020-02-05T02:05:09+0800 : Opening delta /vz/private/3xx3/root.hdd/root.hds 2020-02-05T02:05:09+0800 : Opening delta /vz/private/3xx3/root.hdd/root.hds 2020-02-05T02:05:09+0800 : Restore the hole at offset=25519194112 len=1048576 2020-02-05T02:05:09+0800 : --- filefrag -vs /vz/private/3xx3/root.hdd/root.hds output --- 2020-02-05T02:05:09+0800 : Filesystem type is: ef53 2020-02-05T02:05:09+0800 : File size of /vz/private/3xx3/root.hdd/root.hds is 34766585856 (8487936 blocks of 4096 bytes) 2020-02-05T02:05:09+0800 : ext: logical_offset: physical_offset: length: expected: flags: 2020-02-05T02:05:09+0800 : 0: 0.. 32767: 1630208.. 1662975: 32768: 2020-02-05T02:05:09+0800 : 1: 32768.. 65535: 1662976.. 1695743: 32768: 2020-02-05T02:05:09+0800 : 2: 65536.. 98303: 1695744.. 1728511: 32768: 2020-02-05T02:05:09+0800 : 3: 98304.. 131071: 1728512.. 1761279: 32768: 2020-02-05T02:05:09+0800 : 4: 131072.. 163…
creator: ccto
date: 2020-02-05T08:06:22-00:00