Restore error - detected size difference

ozgurerdogan

Renowned Member
May 2, 2010
622
6
83
Bursa, Turkey, Turkey
I checked my disk and there is a small amount of badsector. So I backed up vm to restore to different node. But during restore I got:

INFO: detected size difference for 'vm-disk-ide0.raw' (161061273595 != 161061273600)
INFO: tar: vm-disk-ide0.raw: Cannot write: Broken pipe
INFO: tar: 2863: Child returned status 25
INFO: tar: Skipping to next header
INFO: tar: Error exit delayed from previous errors
INFO: starting cleanup
ERROR: restore QemuServer backup 'vzdump-qemu-104-2011_02_13-01_23_44.tar' failed - command 'tar xf 'vzdump-qemu-104-2011_02_13-01_23_44.tar' '--to-command=/usr/sbin/qmrestore vzdump-qemu-104-2011_02_13-01_23_44.tar --extract 105'' failed with exit code 2

Is it possible to bypass this error and restore it?
 
Sorry, ignore my last post. You can try to use 'tar' directly to extract the files. Does that help?
 
Last edited:
ok Manual extraction was ok. But raw size is different than reported in qemu-server.conf.

This is a database server and size difference might be because of bad sector. Do you think I can trust this raw file. Because I was planing to manually move data inside container to different vm on different node and replace the harddrive.
 
This is a database server and size difference might be because of bad sector. Do you think I can trust this raw file.

Nobody can now that - I would not trust. Maybe you can verify the critical data manually (do an sql dump, ...)?