OpenVZ Forum


Home » General » Support » Vzdump --snapshot FAILURE - possible bug?? (long post)
Vzdump --snapshot FAILURE - possible bug?? (long post) [message #22032] Fri, 19 October 2007 02:11
bogomolov
Messages: 9
Registered: July 2007
Junior Member
Hi folks


Im working in a HN with each VPS allocated in a LV partition (LVM).

Some (alot really) data from my setup:

test@hn01:~$ cat /etc/issue;uname -a
Debian GNU/Linux 4.0
Linux hn01 2.6.18-028stab031.1-openvz-smp #1 SMP Fri May 4 15:27:21 CEST 2007 i686 GNU/Linux

root@hn01:~# tree /var/lib/vz/ -d -L 2; tree /vz_volumes/ -d -L 1;tree /etc/vz/ -d -L 2;tree /var/lib/vz/private/ -L 1

/var/lib/vz/
|-- dump
|-- lock
|-- private
|   `-- 199
|   `-- 199_bck
|-- root
|   `-- 199
`-- template
    `-- cache

/vz_volumes/
`-- 199

/etc/vz/
|-- conf
|-- cron
|-- dists
|   `-- scripts
`-- names

/var/lib/vz/private/
|-- 199 -> /vz_volumes/199
`-- 199_bck


root@hn01:~# cat /etc/vz/conf/199.conf

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="65:65"
NUMTCPSOCK="80:80"
NUMOTHERSOCK="80:80"
VMGUARPAGES="6144:2147483647"
# Secondary parameters
KMEMSIZE="2752512:2936012"
TCPSNDBUF="319488:524288"
TCPRCVBUF="319488:524288"
OTHERSOCKBUF="132096:336896"
DGRAMRCVBUF="132096:132096"
OOMGUARPAGES="6144:2147483647"
# Auxiliary parameters
LOCKEDPAGES="32:32"
SHMPAGES="8192:8192"
PRIVVMPAGES="16384:53575"
##
NUMFILE="2048:2048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="1048576:1097728"

PHYSPAGES="0:2147483647"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1899999:1999999"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"
HOSTNAME="vps199"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="debian-4.0-i386-minimal"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="192.168.0.199"
NAMESERVER="200.165.132.155 200.149.55.140"
NAME="vps199"

root@hn01:~# vgdisplay
  --- Volume group ---
  VG Name               vg_openvz
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  375
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               61,20 GB
  PE Size               4,00 MB
  Total PE              15666
  Alloc PE / Size       500 / 1,95 GB
  Free  PE / Size       15166 / 59,24 GB
  VG UUID               Ql5mDf-3jLF-eUlL-q3gw-6vxB-0BN9-h9RnQO

root@hn01:~# lvdisplay
  --- Logical volume ---
  LV Name                /dev/vg_openvz/vps199
  VG Name                vg_openvz
  LV UUID                f6X3oo-t1M2-f7gz-cU8e-gDOq-uuFV-2NnR19
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1,95 GB
  Current LE             500
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0


root@hn01:~# mount|grep 199
/dev/mapper/vg_openvz-vps199 on /vz_volumes/199 type ext3 (rw)

root@hn01:~# vzctl start 199
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.0.199
Running VE script: /etc/vz/dists/scripts/debian-add_ip.sh
Setting CPU units: 1000
Configure meminfo: 16384
Set hostname: vps199
Running VE script: /etc/vz/dists/scripts/debian-set_hostname.sh
Running VE script: /etc/vz/dists/scripts/set_dns.sh
File resolv.conf was modified
VE start in progress...

root@hn01:~# vzctl status 199
VEID 199 exist mounted running


... and finally the error msg Smile

root@hn01:~# vzdump --dumpdir /tmp/test --snapshot 199
INFO: starting backup for VPS 199 (/var/lib/vz/private/199)
INFO: creating lvm snapshot of /dev/mapper/vg_openvz-vps199 ('/dev/vg_openvz/vzsnap')
  Logical volume "vzsnap" created
INFO: mounting lvm snapshot
  Logical volume "vzsnap" successfully removed
ERROR: creating backup for  VPS 199 failed (0.27 minutes): wrong lvm mount point '/vz_volumes/199' at /usr/bin/vzdump line 693.


The strange thing - if i try in a shell what supposed vzdump script does ( i think), all works fine. See:

root@hn01:~# lvcreate --size 500m --snapshot --name vzsnap /dev/vg_openvz/vps199
  Logical volume "vzsnap" created

root@hn01:~# lvdisplay   
--- Logical volume ---
  LV Name                /dev/vg_openvz/vps199
  VG Name                vg_openvz
  LV UUID                f6X3oo-t1M2-f7gz-cU8e-gDOq-uuFV-2NnR19
  LV Write Access        read/write
  LV snapshot status     source of
                         /dev/vg_openvz/vzsnap [active]
  LV Status              available
  # open                 1
  LV Size                1,95 GB
  Current LE             500
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/vg_openvz/vzsnap
  VG Name                vg_openvz
  LV UUID                u1dowM-Gr1a-BQUp-9Mn4-gRZL-lSV2-KUi1i4
  LV Write Access        read/write
  LV snapshot status     active destination for /dev/vg_openvz/vps199
  LV Status              available
  # open                 1
  LV Size                1,95 GB
  Current LE             500
  COW-table size         500,00 MB
  COW-table LE           125
  Allocated to snapshot  3,01%
  Snapshot chunk size    8,00 KB
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:3

root@hn01:~# mkdir /vzsnap;mount /dev/vg_openvz/vzsnap /vzsnap

root@hn01:~# mount|tail -n2
/dev/mapper/vg_openvz-vps199 on /vz_volumes/199 type ext3 (rw)
/dev/mapper/vg_openvz-vzsnap on /vzsnap type ext3 (rw)


I dont found the right sintax for "find|tar" what vzdump does - so, i created one compressed imagefile with "dd".

root@hn01:~# dd if=/dev/vg_openvz/vzsnap bs=1M|gzip -9 - > /tmp/test/vps199_image.gz
2000+0 records in
2000+0 records out
2097152000 bytes (2,1 GB) copied, 255,589 seconds, 8,2 MB/s


Plz somebody givme some tip Wink

and sry my bad "engrich" Smile

[Updated on: Sun, 21 October 2007 18:44]

Report message to a moderator

Previous Topic: Ubuntu sound modules missing
Next Topic: NFS Problem
Goto Forum:
  


Current Time: Sat Nov 16 13:05:45 GMT 2024

Total time taken to generate the page: 0.03075 seconds