Weird error running vzdump --snapshot [message #33275] |
Fri, 03 October 2008 10:00 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
fatbrother
Messages: 12 Registered: September 2008 Location: Novosibirsk, Russia
|
Junior Member |
|
|
I hope command sequence says it all.
May be it's important to note that LVM volume group name was equal to hostname, but now hostname has changed...
Also it's important to note that I can create and mount /srv snapshot manually.
HN# uname -a
Linux host_name 2.6.18-12-fza-amd64 #1 SMP Sun May 18 09:57:08 UTC 2008 x86_64 GNU/Linux
HN# vzctl --version
vzctl version 3.0.22-1dso1
HN# vzdump --snapshot --dumpdir /tmp 101
INFO: starting backup for VPS 101 (/srv/lib/vz/private/101)
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 683.
INFO: creating lvm snapshot of /dev/mapper/olympic--temp-srv1 ('/dev//vzsnap')
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 685.
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 685.
"/dev//": Invalid path for Logical Volume
The origin name should include the volume group.
lvcreate: Create a logical volume
[here goes lvcreate commandline help]
umount: /vzsnap: not mounted
Volume group "vzsnap" not found
ERROR: creating backup for VPS 101 failed (0.00 minutes): command '/sbin/lvcreate --size 500m --snapshot --name vzsnap /dev//' failed with exit code 3 at /usr/bin/vzdump line 290.
HN# lvscan
ACTIVE '/dev/olympic-temp/root' [65.30 GB] inherit
ACTIVE '/dev/olympic-temp/swap_1' [2.82 GB] inherit
ACTIVE '/dev/olympic-temp/srv1' [52.73 GB] inherit
HN# vgdisplay
--- Volume group ---
VG Name olympic-temp
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 12
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 2
Act PV 2
VG Size 136.48 GB
PE Size 4.00 MB
Total PE 34939
Alloc PE / Size 30939 / 120.86 GB
Free PE / Size 4000 / 15.62 GB
VG UUID y6ciMN-sjx2-GLWd-1lQH-6sOG-Dc36-vNh0ky
# mount
/dev/mapper/olympic--temp-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/mapper/olympic--temp-srv1 on /srv type ext3 (rw)
/dev/sdb1 on /boot type ext3 (rw)
|
|
|
|
|