Possible to fix VMA backup file?

kotakomputer

Renowned Member
May 14, 2012
414
10
83
Jakarta, Indonesia
www.proxmoxindo.com
Backup was successful using Proxmox 3, but restore failed:

Code:
# vma verify vzdump-qemu-101-2013_09_12-10_19_00.vma.lzo

** (process:129318): ERROR **: not a vma file - wrong magic number
Trace/breakpoint trap
#

Detail restore message:

Code:
restore vma archive: lzop -d -c  /var/lib/vz/dump/vzdump-qemu-101-2013_09_12-10_19_00.vma.lzo|vma extract  -v -r /var/tmp/vzdumptmp129114.fifo - /var/tmp/vzdumptmp129114
CFG: size: 296 name: qemu-server.conf
DEV: dev_id=1 size: 26843545600 devname: drive-ide0
CTIME: Thu Sep 12 10:19:02 2013
Formatting  '/var/lib/vz/images/36189/vm-36189-disk-1.qcow2', fmt=qcow2  size=26843545600 encryption=off cluster_size=65536  preallocation='metadata' lazy_refcounts=off 
new volume ID is 'local:36189/vm-36189-disk-1.qcow2'
map 'drive-ide0' to '/var/lib/vz/images/36189/vm-36189-disk-1.qcow2' (write zeros = 0)
progress 1% (read 268435456 bytes, duration 1 sec)
...........
progress 30% (read 8053063680 bytes, duration 50 sec)
lzop: /var/lib/vz/dump/vzdump-qemu-101-2013_09_12-10_19_00.vma.lzo: Checksum error

** (process:129117): ERROR **: restore failed - short vma extent (2494976 < 3801600)
/bin/bash: line 1: 129116 Exit 1                  lzop -d -c /var/lib/vz/dump/vzdump-qemu-101-2013_09_12-10_19_00.vma.lzo
     129117 Trace/breakpoint trap   | vma extract -v -r /var/tmp/vzdumptmp129114.fifo - /var/tmp/vzdumptmp129114
temporary volume 'local:36189/vm-36189-disk-1.qcow2' sucessfuly removed
TASK  ERROR: command 'lzop -d -c  /var/lib/vz/dump/vzdump-qemu-101-2013_09_12-10_19_00.vma.lzo|vma extract  -v -r /var/tmp/vzdumptmp129114.fifo - /var/tmp/vzdumptmp129114' failed:  exit code 133
Even I decompressed first the restore still error.

This VM contains an MySQL file which I want to retrieve. Is it possible to repair broken vma or just extract all files so I can choose the MySQL file to retrieve?
 
lzop: /var/lib/vz/dump/vzdump-qemu-101-2013_09_12-10_19_00.vma.lzo: Checksum error

Looks like your backup is is corrupted, you should figure out how that happened. Bad RAM would be my first guess.

The only way I can see you *maybe* recovering is to manually extract everything so you can tell lzop to ignore the checksums:

-F, --no-checksum
Do not store or verify a checksum of the uncompressed file when compressing or decompressing. This speeds up the operation of lzop a little bit (especially when decompressing), but as unnoticed data corruption can happen in case of damaged compressed files the usage of this option is not generally recommended. Also, a checksum is always stored when compressing with one of the slow compression levels (-7, -8 or -9), regardless of this option.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!