OpenVZ Forum


Home » General » Support » vzdump snapshot produces only 10K tarball
icon5.gif  vzdump snapshot produces only 10K tarball [message #34922] Thu, 12 February 2009 09:30 Go to next message
goeldi
Messages: 92
Registered: June 2006
Member
I have a node with 2 CTs.

- CT 136
  CentOS 5.2 (template centos-5-i386-default-5.2-20090117)
  using 1.8G.

- CT 143
  CentOS 4.7 (template centos-4-i386-minimal-4.7-20090117)
  using 2.7G.

When I make a vzdump --snapshot --dumpdir /home/backup --all
it runs without an error and creates 2 tar files:

vzdump-136.tar (1.5G) and vzdump-143.tar (10K).

This is the log file vzdump-136.log:

Feb 12 09:11:03 INFO: starting backup for VPS 136 (/vz/private/136)
Feb 12 09:11:03 INFO: creating lvm snapshot of /dev/mapper/system-vz ('/dev/system/vzsnap')
Feb 12 09:11:06 INFO:   Logical volume "vzsnap" created
Feb 12 09:11:06 INFO: mounting lvm snapshot
Feb 12 09:11:06 INFO: Creating archive '/home/backup/vzdump-136.tar' (/vzsnap/private/136)
Feb 12 09:14:15 INFO: Total bytes written: 1571481600 (1.5GiB, 8.4MiB/s)
Feb 12 09:14:17 INFO:   Logical volume "vzsnap" successfully removed
Feb 12 09:14:17 INFO: backup for VPS 136 finished successful  (3.23 minutes)


This is the log file vzdump-143.log:

Feb 12 09:14:17 INFO: starting backup for VPS 143 (/var/lib/vz/private/143)
Feb 12 09:14:17 INFO: creating lvm snapshot of /dev/mapper/system-vz ('/dev/system/vzsnap')
Feb 12 09:14:17 INFO:   Logical volume "vzsnap" created
Feb 12 09:14:17 INFO: mounting lvm snapshot
Feb 12 09:14:18 INFO: Creating archive '/home/backup/vzdump-143.tar' (/var/lib/vzsnap/private/143)
Feb 12 09:14:18 INFO: Total bytes written: 10240 (10KiB, 56MiB/s)
Feb 12 09:14:18 INFO:   Logical volume "vzsnap" successfully removed
Feb 12 09:14:18 INFO: backup for VPS 143 finished successful  (0.02 minutes)


Questions:

Why does vzdump create only a tarball of 10K for CT 143?

Does snapshot not work with CentOS 4 CTs?

My Node is an Ubuntu 8.04.1 server with kernel 2.6.24-23-openvz SMP on a 8GB RAM machine with an AMD Athlon 64 X2 5400+ CPU.

Re: vzdump snapshot produces only 10K tarball [message #34924 is a reply to message #34922] Thu, 12 February 2009 10:16 Go to previous messageGo to next message
rookie is currently offline  rookie
Messages: 12
Registered: October 2006
Location: CH
Junior Member
Bug (fixed in 1.1-1) vzdump will fail under Debian Etch in version 1.0-2 if it is invoked with parameter "--snapshot" and if the logical volume name contains a hyphen...

Your /dev/mapper/system-vz contains a hyphen.
Re: vzdump snapshot produces only 10K tarball [message #34931 is a reply to message #34924] Thu, 12 February 2009 14:04 Go to previous messageGo to next message
goeldi
Messages: 92
Registered: June 2006
Member
Yes, it's version 1.0-2.

Where can I find 1.1-1?

And why does it not happen with CentOS-5 CT?

Re: vzdump snapshot produces only 10K tarball [message #35525 is a reply to message #34931] Thu, 02 April 2009 06:09 Go to previous messageGo to next message
lizard is currently offline  lizard
Messages: 11
Registered: October 2007
Location: russia
Junior Member
Hello!
Centos 5.2,
kernel 2.6.18-92.1.18.el5.028stab060.2,
vzctl version 3.0.23
vzdump version 1.1.1 (also try 1.0.2)

When I run a vzdump e.g:

vzdump --suspend --dumpdir /var/local/backup/vps --compress 2534


It creates a 10K tarball with vps.conf only;

INFO: starting backup for VPS 2534 (/vz/root/2534/private)
INFO: starting first sync /vz/root/2534/private to /var/local/backup/vps/tmp21304
INFO: suspend vps
INFO: Setting up checkpoint...
INFO: suspend...
INFO: get context...
INFO: Checkpointing completed succesfully
INFO: final sync /vz/root/2534/private to /var/local/backup/vps/tmp21304
INFO: resume vps
INFO: Resuming...
INFO: vps is online again after 6 seconds
INFO: Creating archive '/var/local/backup/vps/vzdump-2534.tgz' (/var/local/backup/vps/tmp21304/2534)
INFO: :Totally 10240 (10KiB, 4,1MiB/s)
INFO: backup for VPS 2534 finished successful (1.68 minutes)


Is anybody solve this problem? Thank you!

[Updated on: Thu, 02 April 2009 06:09]

Report message to a moderator

Re: vzdump snapshot produces only 10K tarball [message #35529 is a reply to message #35525] Thu, 02 April 2009 07:57 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

please subscribe to users@openvz.org mailing list
http://wiki.openvz.org/Mailing_list
http://openvz.org/mailman/listinfo/users
There is a big chance that vzdump author will answer your question via mailing list.
Previous Topic: Set a container's clock
Next Topic: unable to detect lvm volume group
Goto Forum:
  


Current Time: Sun Jul 28 10:19:24 GMT 2024

Total time taken to generate the page: 0.02831 seconds