[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[?1034hroot at serv-hv-adm13:/home# /root/qcow2-dump -m check serv-term-adm4-corr.qcow2.img

File: serv-term-adm4-corr.qcow2.img
----------------------------------------------------------------

magic: 0x514649fb
version: 2
backing_file_offset: 0x0
backing_file_size: 0
fs_type: xfs
virtual_size: 64424509440 / 61440M / 60G
disk_size: 36507222016 / 34816M / 34G
seek_end: 36507222016 [0x880000000] / 34816M / 34G
cluster_bits: 16
cluster_size: 65536
crypt_method: 0
csize_shift: 54
csize_mask: 255
cluster_offset_mask: 0x3fffffffffffff
l1_table_offset: 0x76a460000
l1_size: 120
l1_vm_state_index: 120
l2_size: 8192
refcount_order: 4
refcount_bits: 16
refcount_block_bits: 15
refcount_block_size: 32768
refcount_table_offset: 0x10000
refcount_table_clusters: 1
snapshots_offset: 0x0
nb_snapshots: 0
incompatible_features: 00000000
compatible_features: 00000000
autoclear_features: 00000000

================================================================

Active Snapshot:
----------------------------------------------------------------
L1 Table:       [offset: 0x76a460000, len: 120]

Result:
L1 Table:       unaligned: 0, invalid: 0, unused: 53, used: 67
L2 Table:       unaligned: 0, invalid: 0, unused: 20304, used: 528560

================================================================

Refcount Table:
----------------------------------------------------------------
Refcount Table:	[offset: 0x10000, len: 8192]

Result:
Refcount Table:	unaligned: 0, invalid: 0, unused: 8175, used: 17
Refcount:       error: 4342, leak: 0, unused: 28426, used: 524288

================================================================

COPIED OFLAG:
----------------------------------------------------------------

Result:
L1 Table ERROR OFLAG_COPIED: 1
L2 Table ERROR OFLAG_COPIED: 4323
Active L2 COPIED: 528560 [34639708160 / 33035M / 32G]

================================================================

Active Cluster:
----------------------------------------------------------------

Result:
Active Cluster:	reuse: 17

================================================================

Summary:
preallocation:  off
Active Cluster:	reuse: 17
Refcount Table:	unaligned: 0, invalid: 0, unused: 8175, used: 17
Refcount:       error: 4342, leak: 0, rebuild: 4325, unused: 28426, used: 524288
L1 Table:       unaligned: 0, invalid: 0, unused: 53, used: 67
                oflag copied: 1
L2 Table:       unaligned: 0, invalid: 0, unused: 20304, used: 528560
                oflag copied: 4323

################################################################
###         qcow2 image has refcount errors!   (=_=#)        ###
###        and qcow2 image has copied errors!  (o_0)?        ###
###  Sadly: refcount error cause active cluster reused! Orz  ###
###     Please backup this image and contact the author!     ###
################################################################

================================================================
]0;root at serv-hv-adm13:/homeroot at serv-hv-adm13:/home# exit

Script terminé sur mar. 13 févr. 2018 17:31:13 CET


More information about the Users mailing list