We have been backing up 5 host nodes including several VMs to a NFS storage. We have tested restoring backups around 2 weeks ago and we didn't have any issues with it.
However, when we needed to restore a VM from backups today, we have found out that all the backups taken on all 5 different host nodes were corrupted and non restorable.
We have tried multiple backup files from all the nodes and all are returning this error.
Manual lzop -d and then vma extract <file> <dir> is also not working and returning the same checksum error.
So at this point, I'm looking to try to salvage some data from the somehow corrupted vma file but it seems there is no way to skip the checksum validation.
Question:
- If I recompile the vma binary removing the checksum validation lines, would I get usable disk image with some corruption?
- If so, what would be the fastest way of achieving this?
However, when we needed to restore a VM from backups today, we have found out that all the backups taken on all 5 different host nodes were corrupted and non restorable.
Code:
restore vma archive: lzop -d -c /mnt/pve/node29-backup-dalpremium3/dump/vzdump-qemu-35847-2017_03_08-04_45_02.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp18423.fifo - /var/tmp/vzdumptmp18423
CFG: size: 390 name: qemu-server.conf
DEV: dev_id=1 size: 64424509440 devname: drive-virtio0
CTIME: Wed Mar 8 04:45:03 2017
Logical volume "vm-99999-disk-1" created.
new volume ID is 'vmstore:vm-99999-disk-1'
map 'drive-virtio0' to '/dev/vmdata/vm-99999-disk-1' (write zeros = 0)
** (process:18426): ERROR **: restore failed - wrong vma extent header chechsum
/bin/bash: line 1: 18425 Broken pipe lzop -d -c /mnt/pve/node29-backup-dalpremium3/dump/vzdump-qemu-35847-2017_03_08-04_45_02.vma.lzo
18426 Trace/breakpoint trap | vma extract -v -r /var/tmp/vzdumptmp18423.fifo - /var/tmp/vzdumptmp18423
Logical volume "vm-99999-disk-1" successfully removed
temporary volume 'vmstore:vm-99999-disk-1' sucessfuly removed
TASK ERROR: command 'lzop -d -c /mnt/pve/node29-backup-dalpremium3/dump/vzdump-qemu-35847-2017_03_08-04_45_02.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp18423.fifo - /var/tmp/vzdumptmp18423' failed: exit code 133
We have tried multiple backup files from all the nodes and all are returning this error.
Manual lzop -d and then vma extract <file> <dir> is also not working and returning the same checksum error.
Code:
vma extract vzdump-qemu-36200-2017_03_07-06_25_52.vma bla
DEVINFO bla/tmp-disk-drive-virtio0.raw 64424509440
Formatting 'bla/tmp-disk-drive-virtio0.raw', fmt=raw size=64424509440
** (process:21215): ERROR **: restore failed - wrong vma extent header chechsum
Trace/breakpoint trap
So at this point, I'm looking to try to salvage some data from the somehow corrupted vma file but it seems there is no way to skip the checksum validation.
Question:
- If I recompile the vma binary removing the checksum validation lines, would I get usable disk image with some corruption?
- If so, what would be the fastest way of achieving this?