OpenVZ Forum


Home » General » Support » *SOLVED* vzdump --snapshot
*SOLVED* vzdump --snapshot [message #14873] Thu, 12 July 2007 10:56 Go to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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


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

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

Report message to a moderator

Re: vzdump --snapshot [message #14876 is a reply to message #14873] Thu, 12 July 2007 11:10 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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 11:30 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
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 14:40 Go to previous messageGo to next message
dietmar is currently offline  dietmar
Messages: 54
Registered: March 2007
Member
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 14:42 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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 14:50 Go to previous messageGo to next message
dietmar is currently offline  dietmar
Messages: 54
Registered: March 2007
Member
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 14:54 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
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 15:34 Go to previous message
dietmar is currently offline  dietmar
Messages: 54
Registered: March 2007
Member
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: Fri Apr 26 07:36:15 GMT 2024

Total time taken to generate the page: 0.01721 seconds