Ploop can't work with a correctly image [message #53610] |
Sat, 04 January 2020 18:14 |
iblinder
Messages: 10 Registered: June 2018
|
Junior Member |
|
|
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 -y /dev/ploop36860p1
ploop umount /vz/private/5948/root.hdd/root.hdd
These commands reports that image is ok.
When I upgrade downgraded utils to latest version, ploop returns the same mistake again.
# 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)
Do you know how to fix this mistake with ploop image?
Did somebody get the same mistake after upgrade ploop utils from 7.0.157-1.vz7 to ploop-7.0.163-1?
|
|
|
|
Re: Ploop can't work with a correctly image [message #53633 is a reply to message #53610] |
Wed, 05 February 2020 08:06 |
ccto
Messages: 61 Registered: October 2005
|
Member |
|
|
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.. 163839: 1761280.. 1794047: 32768:
2020-02-05T02:05:09+0800 : 5: 163840.. 196607: 1794048.. 1826815: 32768:
2020-02-05T02:05:09+0800 : 6: 196608.. 229375: 1826816.. 1859583: 32768:
2020-02-05T02:05:09+0800 : 7: 229376.. 262143: 1859584.. 1892351: 32768:
2020-02-05T02:05:09+0800 : 8: 262144.. 294911: 1892352.. 1925119: 32768:
2020-02-05T02:05:09+0800 : 9: 294912.. 327679: 1925120.. 1957887: 32768:
2020-02-05T02:05:09+0800 : 10: 327680.. 360447: 1957888.. 1990655: 32768:
2020-02-05T02:05:09+0800 : 11: 360448.. 393215: 1990656.. 2023423: 32768:
2020-02-05T02:05:09+0800 : 12: 393216.. 425983: 2023424.. 2056191: 32768:
2020-02-05T02:05:09+0800 : 13: 425984.. 458751: 2056192.. 2088959: 32768:
2020-02-05T02:05:09+0800 : 14: 458752.. 466943: 2088960.. 2097151: 8192:
2020-02-05T02:05:09+0800 : 15: 466944.. 499711: 2129920.. 2162687: 32768: 2097152:
2020-02-05T02:05:09+0800 : 16: 499712.. 532479: 2162688.. 2195455: 32768:
2020-02-05T02:05:09+0800 : 17: 532480.. 565247: 2195456.. 2228223: 32768:
2020-02-05T02:05:09+0800 : 18: 565248.. 598015: 2228224.. 2260991: 32768:
2020-02-05T02:05:09+0800 : 19: 598016.. 630783: 2260992.. 2293759: 32768:
2020-02-05T02:05:09+0800 : 20: 630784.. 663551: 2293760.. 2326527: 32768:
2020-02-05T02:05:09+0800 : 21: 663552.. 696319: 2326528.. 2359295: 32768:
2020-02-05T02:05:09+0800 : 22: 696320.. 729087: 2359296.. 2392063: 32768:
2020-02-05T02:05:09+0800 : 23: 729088.. 761855: 2392064.. 2424831: 32768:
2020-02-05T02:05:09+0800 : 24: 761856.. 794623: 2424832.. 2457599: 32768:
2020-02-05T02:05:09+0800 : 25: 794624.. 827391: 2457600.. 2490367: 32768:
2020-02-05T02:05:09+0800 : 26: 827392.. 860159: 2490368.. 2523135: 32768:
2020-02-05T02:05:09+0800 : 27: 860160.. 892927: 2523136.. 2555903: 32768:
2020-02-05T02:05:09+0800 : 28: 892928.. 925695: 2555904.. 2588671: 32768:
2020-02-05T02:05:09+0800 : 29: 925696.. 958463: 2588672.. 2621439: 32768:
2020-02-05T02:05:09+0800 : 30: 958464.. 991231: 2656256.. 2689023: 32768: 2621440:
2020-02-05T02:05:09+0800 : 31: 991232.. 1023999: 2689024.. 2721791: 32768:
2020-02-05T02:05:09+0800 : 32: 1024000.. 1056767: 2721792.. 2754559: 32768:
2020-02-05T02:05:09+0800 : 33: 1056768.. 1089535: 2754560.. 2787327: 32768:
2020-02-05T02:05:09+0800 : 34: 1089536.. 1122303: 2787328.. 2820095: 32768:
2020-02-05T02:05:09+0800 : 35: 1122304.. 1155071: 2820096.. 2852863: 32768:
2020-02-05T02:05:09+0800 : 36: 1155072.. 1187839: 2852864.. 2885631: 32768:
2020-02-05T02:05:09+0800 : 37: 1187840.. 1220607: 2885632.. 2918399: 32768:
2020-02-05T02:05:09+0800 : 38: 1220608.. 1253375: 2918400.. 2951167: 32768:
2020-02-05T02:05:09+0800 : 39: 1253376.. 1286143: 2951168.. 2983935: 32768:
2020-02-05T02:05:09+0800 : 40: 1286144.. 1318911: 2983936.. 3016703: 32768:
2020-02-05T02:05:09+0800 : 41: 1318912.. 1351679: 3016704.. 3049471: 32768:
2020-02-05T02:05:09+0800 : 42: 1351680.. 1384447: 3049472.. 3082239: 32768:
2020-02-05T02:05:09+0800 : 43: 1384448.. 1417215: 3082240.. 3115007: 32768:
2020-02-05T02:05:09+0800 : 44: 1417216.. 1447935: 3115008.. 3145727: 30720:
2020-02-05T02:05:09+0800 : 45: 1447936.. 1480703: 3178496.. 3211263: 32768: 3145728:
2020-02-05T02:05:09+0800 : 46: 1480704.. 1513471: 3211264.. 3244031: 32768:
2020-02-05T02:05:09+0800 : 47: 1513472.. 1546239: 3244032.. 3276799: 32768:
2020-02-05T02:05:09+0800 : 48: 1546240.. 1579007: 3276800.. 3309567: 32768:
2020-02-05T02:05:09+0800 : 49: 1579008.. 1611775: 3309568.. 3342335: 32768:
2020-02-05T02:05:09+0800 : 50: 1611776.. 1644543: 3342336.. 3375103: 32768:
2020-02-05T02:05:09+0800 : 51: 1644544.. 1677311: 3375104.. 3407871: 32768:
2020-02-05T02:05:09+0800 : 52: 1677312.. 1710079: 3407872.. 3440639: 32768:
2020-02-05T02:05:09+0800 : 53: 1710080.. 1742847: 3440640.. 3473407: 32768:
2020-02-05T02:05:09+0800 : 54: 1742848.. 1775615: 3473408.. 3506175: 32768:
2020-02-05T02:05:09+0800 : 55: 1775616.. 1808383: 3506176.. 3538943: 32768:
2020-02-05T02:05:09+0800 : 56: 1808384.. 1841151: 3538944.. 3571711: 32768:
2020-02-05T02:05:09+0800 : 57: 1841152.. 1873919: 3571712.. 3604479: 32768:
2020-02-05T02:05:09+0800 : 58: 1873920.. 1906687: 3604480.. 3637247: 32768:
2020-02-05T02:05:09+0800 : 59: 1906688.. 1939455: 3637248.. 3670015: 32768:
2020-02-05T02:05:09+0800 : 60: 1939456.. 1972223: 3702784.. 3735551: 32768: 3670016:
2020-02-05T02:05:09+0800 : 61: 1972224.. 2004991: 3735552.. 3768319: 32768:
2020-02-05T02:05:09+0800 : 62: 2004992.. 2037759: 3768320.. 3801087: 32768:
2020-02-05T02:05:09+0800 : 63: 2037760.. 2070527: 3801088.. 3833855: 32768:
2020-02-05T02:05:09+0800 : 64: 2070528.. 2103295: 3833856.. 3866623: 32768:
2020-02-05T02:05:09+0800 : 65: 2103296.. 2136063: 3866624.. 3899391: 32768:
2020-02-05T02:05:09+0800 : 66: 2136064.. 2168831: 3899392.. 3932159: 32768:
2020-02-05T02:05:09+0800 : 67: 2168832.. 2201599: 3932160.. 3964927: 32768:
2020-02-05T02:05:09+0800 : 68: 2201600.. 2234367: 3964928.. 3997695: 32768:
2020-02-05T02:05:09+0800 : 69: 2234368.. 2267135: 3997696.. 4030463: 32768:
2020-02-05T02:05:09+0800 : 70: 2267136.. 2299903: 4030464.. 4063231: 32768:
2020-02-05T02:05:09+0800 : 71: 2299904.. 2332671: 4063232.. 4095999: 32768:
2020-02-05T02:05:09+0800 : 72: 2332672.. 2365439: 4098048.. 4130815: 32768: 4096000:
2020-02-05T02:05:09+0800 : 73: 2365440.. 2398207: 4130816.. 4163583: 32768:
2020-02-05T02:05:09+0800 : 74: 2398208.. 2428927: 4163584.. 4194303: 30720:
2020-02-05T02:05:09+0800 : 75: 2428928.. 2461695: 4227072.. 4259839: 32768: 4194304:
2020-02-05T02:05:09+0800 : 76: 2461696.. 2494463: 4259840.. 4292607: 32768:
2020-02-05T02:05:09+0800 : 77: 2494464.. 2527231: 4292608.. 4325375: 32768:
2020-02-05T02:05:09+0800 : 78: 2527232.. 2559999: 4325376.. 4358143: 32768:
2020-02-05T02:05:09+0800 : 79: 2560000.. 2592767: 4358144.. 4390911: 32768:
2020-02-05T02:05:09+0800 : 80: 2592768.. 2625535: 4390912.. 4423679: 32768:
2020-02-05T02:05:09+0800 : 81: 2625536.. 2658303: 4423680.. 4456447: 32768:
2020-02-05T02:05:09+0800 : 82: 2658304.. 2691071: 4456448.. 4489215: 32768:
2020-02-05T02:05:09+0800 : 83: 2691072.. 2723839: 4489216.. 4521983: 32768:
2020-02-05T02:05:09+0800 : 84: 2723840.. 2756607: 4521984.. 4554751: 32768:
2020-02-05T02:05:09+0800 : 85: 2756608.. 2789375: 4554752.. 4587519: 32768:
2020-02-05T02:05:09+0800 : 86: 2789376.. 2822143: 4587520.. 4620287: 32768:
2020-02-05T02:05:09+0800 : 87: 2822144.. 2854911: 4620288.. 4653055: 32768:
2020-02-05T02:05:09+0800 : 88: 2854912.. 2887679: 4653056.. 4685823: 32768:
2020-02-05T02:05:09+0800 : 89: 2887680.. 2920447: 4685824.. 4718591: 32768:
2020-02-05T02:05:09+0800 : 90: 2920448.. 2953215: 4751360.. 4784127: 32768: 4718592:
2020-02-05T02:05:09+0800 : 91: 2953216.. 2985983: 4784128.. 4816895: 32768:
2020-02-05T02:05:09+0800 : 92: 2985984.. 3018751: 4816896.. 4849663: 32768:
2020-02-05T02:05:09+0800 : 93: 3018752.. 3051519: 4849664.. 4882431: 32768:
2020-02-05T02:05:09+0800 : 94: 3051520.. 3084287: 4882432.. 4915199: 32768:
2020-02-05
...
[Updated on: Wed, 05 February 2020 08:08] Report message to a moderator
|
|
|