vzdump snapshot problem and workaround for it [message #11797] |
Fri, 06 April 2007 20:09 |
oleka
Messages: 4 Registered: April 2007
|
Junior Member |
|
|
Hi everyone,
Just would like to share with you my experience using vzdump with snapshot backups.
My setup:
OS: Fedora Core5
vzdump version: 0.4-1 on FC5, vzdump-0.4-1.noarch.rpm
First of all, I had to update lvm rpm package on FC5 up to lvm2-2.02.17-1.fc5 (yum -y update lvm2).
Doing backup with the following command:
# vzdump --compress --dumpdir /backup/101 --snapshot 101
has given me this output:
starting backup for VPS 101 (/vz/private/101) Fri Apr 6 15:23:41 2007
creating lvm snapshot of /dev/mapper/VolGroup00-VZ ('/dev/VolGroup00/vzsnap')
Rounding up size to full physical extent 512.00 MB
Logical volume "vzsnap" created
mounting lvm snapshot
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 463.
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 465.
Logical volume "vzsnap" successfully removed
creating backup for VPS 101 failed (0.02 minutes): wrong lvm mount point '' at /usr/bin/vzdump line 465.
Looking into vzdump perl scrip, I could not understand the logic those lines: 463 and 465 (variable $lvmpath cannot get any value by script design).
Commenting them out has fixed the problem. And output I've gotten after the "fix":
starting backup for VPS 101 (/vz/private/101) Fri Apr 6 15:56:47 2007
creating lvm snapshot of /dev/mapper/VolGroup00-VZ ('/dev/VolGroup00/vzsnap')
Rounding up size to full physical extent 512.00 MB
Logical volume "vzsnap" created
mounting lvm snapshot
Creating archive '/backup/101/vzdump-101.tgz' (/vz/private/101)
tar: ./var/run/dbus/system_bus_socket: socket ignored
tar: ./var/lib/mysql/mysql.sock: socket ignored
tar: ./dev/log: socket ignored
Total bytes written: 365987840 (350MiB, 7.5MiB/s)
Logical volume "vzsnap" successfully removed
backup for VPS 101 finished successful (0.78 minutes)
Hope, this little trick will help.
|
|
|