*SOLVED* vzdump --snapshot [message #14873] |
Thu, 12 July 2007 10:56 |
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 |
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 #14893 is a reply to message #14889] |
Thu, 12 July 2007 15:34 |
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
|
|
|