[ovirt-users] [Qemu-block] qcow2 images corruption
Nicolas Ecarnot
nicolas at ecarnot.net
Tue Feb 13 16:35:14 UTC 2018
Le 13/02/2018 à 16:26, Nicolas Ecarnot a écrit :
>> It would be good if you could make the 'qemu-img check' output available
>> somewhere.
>
I found this :
https://github.com/ShijunDeng/qcow2-dump
and the transcript (beautiful colors when viewed with "more") is attached :
--
Nicolas ECARNOT
-------------- next part --------------
Le script a débuté sur mar. 13 févr. 2018 17:31:05 CET
]0;root at serv-hv-adm13:/home[?1034h[01;32mroot at serv-hv-adm13[00m:[01;34m/home[00m# /root/qcow2-dump -m check serv-term-adm4-corr.qcow2.img
[1;32m
File:[1;36m serv-term-adm4-corr.qcow2.img
[0m----------------------------------------------------------------
magic: 0x514649fb
version: [1;36m2
[0mbacking_file_offset: 0x0
backing_file_size: 0
fs_type: [1;32mxfs
[0mvirtual_size: 64424509440 / 61440M / 60G
disk_size: 36507222016 / 34816M / 34G
seek_end: 36507222016 [[1;32m0x880000000[0m] / 34816M / 34G
cluster_bits: [1;36m16
[0mcluster_size: [1;36m65536
[0mcrypt_method: 0
csize_shift: 54
csize_mask: 255
cluster_offset_mask: [1;36m0x3fffffffffffff
[0ml1_table_offset: [1;32m0x76a460000
[0ml1_size: [1;32m120
[0ml1_vm_state_index: [1;32m120
[0ml2_size: [1;36m8192
[0mrefcount_order: [1;36m4
[0mrefcount_bits: [1;36m16
[0mrefcount_block_bits: [1;36m15
[0mrefcount_block_size: [1;36m32768
[0mrefcount_table_offset: [1;32m0x10000
[0mrefcount_table_clusters: [1;32m1
[0msnapshots_offset: [1;32m0x0
[0mnb_snapshots: [1;32m0
[0mincompatible_features: 00000000
compatible_features: 00000000
autoclear_features: 00000000
================================================================
[1;32mActive Snapshot:
[0m----------------------------------------------------------------
L1 Table: [offset: 0x76a460000, len: 120]
[1;36mResult:
[0mL1 Table: unaligned: [1;33m0, [0minvalid: [1;33m0, [0munused: 53, used: 67
L2 Table: unaligned: [1;33m0, [0minvalid: [1;33m0, [0munused: 20304, used: 528560
================================================================
[1;32mRefcount Table:
[0m----------------------------------------------------------------
Refcount Table: [offset: 0x10000, len: 8192]
[1;36mResult:
[0mRefcount Table: unaligned: [1;33m0, [0minvalid: [1;33m0, [0munused: 8175, used: 17
Refcount: error: [1;33m4342, [0mleak: [1;33m0, [0munused: 28426, used: 524288
================================================================
[1;32mCOPIED OFLAG:
[0m----------------------------------------------------------------
[1;36mResult:
[0mL1 Table ERROR OFLAG_COPIED: [1;33m1
[0mL2 Table ERROR OFLAG_COPIED: [1;33m4323
[0mActive L2 COPIED: [1;33m528560 [34639708160 / 33035M / 32G]
[0m================================================================
[1;32mActive Cluster:
[0m----------------------------------------------------------------
[1;36m
Result:
[0mActive Cluster: reuse: [1;33m17
[0m================================================================
[1;31mSummary:
[0mpreallocation: [1;32moff
[0mActive Cluster: [1;31mreuse: 17
[0mRefcount Table: [1;33munaligned: 0, [0m[1;33minvalid: 0, [0munused: 8175, used: 17
Refcount: [1;33merror: [0m[1;31m4342, [0m[1;33mleak: 0, [0m[1;31mrebuild: 4325, [0munused: 28426, used: 524288
L1 Table: [1;33munaligned: 0, [0m[1;33minvalid: 0, [0munused: 53, used: 67
[1;33m oflag copied: [0m[1;31m1
[0mL2 Table: [1;33munaligned: 0, [0m[1;33minvalid: 0, [0munused: 20304, used: 528560
[1;33m oflag copied: [0m[1;31m4323
[0m
################################################################
###[5;31m qcow2 image has refcount errors! (=_=#)[0m ###
###[5;31m and qcow2 image has copied errors! (o_0)?[0m ###
###[5;31m Sadly: refcount error cause active cluster reused! Orz[0m ###
###[1;33m Please backup this image and contact the author![0m ###
################################################################
================================================================
]0;root at serv-hv-adm13:/home[01;32mroot at serv-hv-adm13[00m:[01;34m/home[00m# exit
Script terminé sur mar. 13 févr. 2018 17:31:13 CET
More information about the Users
mailing list