OpenVZ Forum


Home » General » Support » unable to restore from vzdump
unable to restore from vzdump [message #31697] Mon, 07 July 2008 10:25 Go to next message
neuroticimbecile is currently offline  neuroticimbecile
Messages: 4
Registered: July 2008
Junior Member
Hi All,

I'm using vzdump to backup my VEs. After a successful vzdump, I am unable to restore from some of the vzdump'ed tgz files. I've already tried restoring them on another HN with the same result:

versions:
CentOS release 4.6 (Final)
vzyum-2.4.0-11
vzrpm43-4.3.3-7_nonptl.6
vzdump-1.0-2
vzctl-3.0.22-1
vzquota-3.0.11-1
vzrpm44-4.4.1-22.5
vzrpm44-python-4.4.1-22.5
vzrpm43-python-4.3.3-7_nonptl.6
vztmpl-centos-4-2.0-2
ovzkernel-smp-2.6.9-023stab046.2
vzpkg-2.7.0-18
vzctl-lib-3.0.22-1


vzdump:
# vzdump --compress --suspend 1004
INFO: starting backup for VPS 1004 (/vz/private/1004)
INFO: starting first sync /vz/private/1004 to /vz/dump/tmp8931
file has vanished: "/vz/private/1004/var/amavisd/tmp/.spamassassin9965X7Ijj7tmp"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T141335-07803/email.txt"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T142204-07778/email.txt"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T142816-07997/email.txt"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T144304-08180/email.txt"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T150311-09631/email.txt"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T150337-09492/email.txt"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T151451-09761/email.txt"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T152657-09965/parts/p001"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T152657-09965/parts/p002"
file has vanished: "/vz/private/1004/var/amavisd/tmp/amavis-20080707T152657-09965/parts/p003"
file has vanished: "/vz/private/1004/var/spool/postfix/active/6733D3B00A3"
file has vanished: "/vz/private/1004/var/spool/postfix/deferred/1/180363B005C"
rsync warning: some files vanished before they could be transferred (code 24) at main.c(702)
INFO: suspend vps
Setting up checkpoint...
        suspend...
        get context...
Checkpointing completed succesfully
INFO: final sync /vz/private/1004 to /vz/dump/tmp8931
INFO: resume vps
Resuming...
INFO: vps is online again after 175 seconds
INFO: Creating archive '/vz/dump/vzdump-1004.tgz' (/vz/dump/tmp8931/1004)
Total bytes written: 2901596160 (2.8GiB, 3.1MiB/s)
INFO: backup for VPS 1004 finished successful  (38.92 minutes)


restoring:

# vzdump --restore vzdump-1004.tgz 9999
INFO: extracting archive 'vzdump-1004.tgz'
tar: Skipping to next header

zcat: vzdump-1004.tgz: invalid compressed data--crc error

zcat: vzdump-1004.tgz: invalid compressed data--length error
tar: Error exit delayed from previous errors
unable to extract archive at /usr/bin/vzdump line 563.


Would appreciate any pointers.

TIA,
-eric
[SOLVED] Re: unable to restore from vzdump [message #34658 is a reply to message #31697] Fri, 23 January 2009 22:01 Go to previous messageGo to next message
neuroticimbecile is currently offline  neuroticimbecile
Messages: 4
Registered: July 2008
Junior Member
Nevermind, we found an obvious solution: don't use --compress with vzdump, because the resulting dumpfiles are not always restorable.
Re: unable to restore from vzdump [message #34660 is a reply to message #31697] Sat, 24 January 2009 08:49 Go to previous message
n00b_admin is currently offline  n00b_admin
Messages: 77
Registered: July 2006
Location: Romania
Member
I would check for updates to the tar program, memory issues, hdd issues if i were you.

CRC errors mean that the contents of the archive have been in some way corrupted.

This has nothing to do with the --compress flag of vzdump.

I used the tool heavily and i was able to backup and restore VEs on a daily basis without any problems.

Previous Topic: ztdummy and zaptel help
Next Topic: sshd (and other daemons) on OpenVZ HN resets connection
Goto Forum:
  


Current Time: Sun Oct 06 13:24:57 GMT 2024

Total time taken to generate the page: 0.04492 seconds