OpenVZ Forum
Forum Search:

Home » General » Support » *SOLVED* vzdump --snapshot
*SOLVED* vzdump --snapshot [message #14873] Thu, 12 July 2007 06:56 Go to next message
ugob  is currently offline ugob
Messages: 270
Registered: March 2007
Senior Member
From: *221-59-74.mc.videotron.ca
Hi,

Anyone got --snapshot (Use LVM snapshot) with vzdump?

I always get this error

[root@svr~]# vzdump --snapshot 101 --dumpdir /vz/dump/
  /dev/cdrom: open failed: No medium found
starting backup for VPS 101 (/vz/private/101) Thu Jul 12 06:53:52 2007
creating backup for  VPS 101 failed (0.00 minutes): unable to dump into snapshot (use option --dumpdir) at /usr/bin/vzdump line 450.



no matter if I use --dumpdir (to a valid dir like /vz/dump) or not.

Thanks,

Ugo

[Updated on: Fri, 13 July 2007 04:00] by Moderator


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: vzdump --snapshot [message #14876 is a reply to message #14873 ] Thu, 12 July 2007 07:10 Go to previous messageGo to next message
ugob  is currently offline ugob
Messages: 270
Registered: March 2007
Senior Member
From: *221-59-74.mc.videotron.ca
Update: I managed to get to this point by using --dumpdir /var/

[root@svr var]# vzdump --dumpdir /var/ --snapshot 101
  /dev/cdrom: open failed: No medium found
starting backup for VPS 101 (/vz/private/101) Thu Jul 12 07:08:51 2007
creating lvm snapshot of /dev/mapper/VolGroup00-LogVol02 ('/dev/VolGroup00/vzsnap')
  /dev/cdrom: open failed: No medium found
  Insufficient free extents (1) in volume group VolGroup00: 16 required
  Rounding up size to full physical extent 512.00 MB
umount: /vzsnap: not mounted
  /dev/cdrom: open failed: No medium found
  One or more specified logical volume(s) not found.
creating backup for  VPS 101 failed (0.02 minutes): command '/usr/sbin/lvcreate --size 500m --snapshot --name vzsnap /dev/VolGroup00/LogVol02' failed with exit code 5 at /usr/bin/vzdump line 107.


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: vzdump --snapshot [message #14880 is a reply to message #14876 ] Thu, 12 July 2007 07:30 Go to previous messageGo to next message
Vasily Tarasov  is currently offline Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
Dietmar Maurer is the author of vzdump. I sent his e-mail to you via PM. I think he'll be able to help you. After solving the problem, please post here the resolution!

Thanks,
Vasily.
Re: vzdump --snapshot [message #14886 is a reply to message #14873 ] Thu, 12 July 2007 10:40 Go to previous messageGo to next message
dietmar  is currently offline dietmar
Messages: 44
Registered: March 2007
Member
From: *maurer-it.com
Quote:

no matter if I use --dumpdir (to a valid dir like /vz/dump) or not.


dumpdir needs to be outside the volume you dump - else your shnaphot will grow recursively - got it?

- Dietmar
Re: vzdump --snapshot [message #14887 is a reply to message #14886 ] Thu, 12 July 2007 10:42 Go to previous messageGo to next message
ugob  is currently offline ugob
Messages: 270
Registered: March 2007
Senior Member
From: *221-59-74.mc.videotron.ca
Ok, but if I try in /var I have another error... see http://forum.openvz.org/index.php?t=tree&th=2881&mid =14876&&rev=&reveal=


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: vzdump --snapshot [message #14888 is a reply to message #14887 ] Thu, 12 July 2007 10:50 Go to previous messageGo to next message
dietmar  is currently offline dietmar
Messages: 44
Registered: March 2007
Member
From: *maurer-it.com
Insufficient free extents (1) in volume group VolGroup00: 16 required[/qoute]

There is no free space in VolGroup00. dm2 snapshots requires space (we try to allocate 512MB) on the VG - like any other partitions.

- Dietmar
Re: vzdump --snapshot [message #14889 is a reply to message #14888 ] Thu, 12 July 2007 10:54 Go to previous messageGo to next message
ugob  is currently offline ugob
Messages: 270
Registered: March 2007
Senior Member
From: *221-59-74.mc.videotron.ca
So if I understand correctly, there must be some free room in the physical volume to be able to create snapshots, right?


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: vzdump --snapshot [message #14893 is a reply to message #14889 ] Thu, 12 July 2007 11:34 Go to previous message
dietmar  is currently offline dietmar
Messages: 44
Registered: March 2007
Member
From: *maurer-it.com
ugob wrote on Thu, 12 July 2007 10:54

So if I understand correctly, there must be some free room in the physical volume to be able to create snapshots, right?


Yes, in the same VG you want to create the snapshot (see lvm2 howto)

- Dietmar
Previous Topic:kde on openvz
Next Topic:urgent *all VEs not accessible
Goto Forum:
  


Current Time: Thu Sep 2 11:21:40 EDT 2010
.:: Contact :: Home ::.

Powered by: FUDforum 2.8.1.
Copyright ©2001-2009 FUDforum Bulletin Board Software