backup with --snapshot

Hello,
yesterday, I added a second disk to my server, created with cfdisk a primary partition with LVM and formatted the whole LVM-Partition with ext3 (mkfs.ext3 /dev/sdb1). I want the disk to be the storage target of all local VMs to have it separated to the system harddisk.

mount-table:
#############
isis:/backup# mount
/dev/pve/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/pve-data on /var/lib/vz type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/sdb1 on /backup type ext3 (rw)
#############

After that, I wanted to make a snapshot (vzdump --dumpdir /backup/20080831 --snapshot 101) that results in an error.

#############
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
INFO: starting backup for VPS 101 (/var/lib/vz/private/101)
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 699.
INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev//vzsnap')
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 701.
Use of uninitialized value in concatenation (.) or string at /usr/bin/vzdump line 701.
"/dev//": Invalid path for Logical Volume
The origin name should include the volume group.
lvcreate: Create a logical volume

/-snip-/

umount: /vzsnap: not mounted
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 51044614144: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
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 306.
#############

The 101 had a hostname with a "-" (radius-01), but I changed that to radius01.

Did I something wrong or doesn't snapshot like any aditional disks after installing.
I also have to say, that I don't use the beta2. I don't want to upgrade with apt. A new clean install with CD is my prefered way which I will do when I'm in the serverroom again.

thanks a lot for your help,
Patrick
 
Here are the two outputs:

isis:~# lvscan
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
ACTIVE '/dev/pve/swap' [4.00 GB] inherit
ACTIVE '/dev/pve/root' [18.50 GB] inherit
inactive Original '/dev/pve/data' [47.54 GB] inherit
inactive Snapshot '/dev/pve/vzsnap' [500.00 MB] inherit
isis:~#

isis:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/pve/root 19094236 5529352 12594952 31% /
tmpfs 1029504 0 1029504 0% /lib/init/rw
udev 10240 52 10188 1% /dev
tmpfs 1029504 0 1029504 0% /dev/shm
/dev/mapper/pve-data 49064776 6442404 42622372 14% /var/lib/vz
/dev/sda1 507748 29879 451655 7% /boot
/dev/sdb1 76928448 2587148 70433492 4% /backup
isis:~#

maybe, this is helpful:
isis:~# ls -l /dev/dm-*
brw-rw---- 1 root disk 254, 0 Aug 30 10:46 /dev/dm-0
brw-rw---- 1 root disk 254, 1 Aug 30 10:46 /dev/dm-1
brw-rw---- 1 root disk 254, 2 Aug 30 10:46 /dev/dm-2
brw-rw---- 1 root disk 254, 3 Aug 31 21:36 /dev/dm-3
brw-rw---- 1 root disk 254, 4 Aug 31 21:36 /dev/dm-4
brw-rw---- 1 root disk 254, 5 Aug 31 21:36 /dev/dm-5
isis:~#


I don't know, what I did wrong. It worked since I enabled the second disk.

Patrick
 
Hi,

I have some thing similar.

Code:
[B]df -h[/B]
Sys. de fich.         Tail. Occ. Disp. %Occ. Monté sur
/dev/mapper/pve-root   95G  1,1G   89G   2% /
tmpfs                 3,9G     0  3,9G   0% /lib/init/rw
udev                   10M  624K  9,4M   7% /dev
tmpfs                 3,9G  4,0K  3,9G   1% /dev/shm
/dev/mapper/pve-data  353G  3,8G  349G   2% /var/lib/vz
/dev/sda1             504M   44M  435M  10% /boot
/dev/mapper/pve3-backup
                      917G   50G  821G   6% /mnt/backup
Code:
[B]lvscan[/B]
  [I]/dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie[/I]
  ACTIVE            '/dev/pve2/vm-102-disk-1' [200,00 GB] inherit
  ACTIVE            '/dev/pve3/backup' [931,51 GB] inherit
  ACTIVE            '/dev/pve/swap' [7,00 GB] inherit
  ACTIVE            '/dev/pve/root' [96,00 GB] inherit
  ACTIVE            '/dev/pve/data' [358,26 GB] inherit
Code:
[B]pvesm list --all[/B]
local:101/vm-101-disk-1.raw 101   raw   52428800
 [I] /dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
  /dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
  /dev/dm-5: read failed after 0 of 4096 at 0: Input/output error[/I]
pve2:vm-102-disk-1 102   raw  209719296


Code:
[B]vgscan[/B] 
  Reading all physical volumes.  This may take a while...
  /dev/dm-5: read failed after 0 of 4096 at 1000198832128: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 1000198889472: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 4096: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
  Found volume group "pve2" using metadata type lvm2
  Found volume group "pve3" using metadata type lvm2
  Found volume group "pve" using metadata type lvm2
.
Regards,

Tes.
 
Last edited:
Hi Dietmar,

Code:
lvs
  /dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
  LV            VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  data          pve  -wi-ao 358,26G                                      
  root          pve  -wi-ao  96,00G                                      
  swap          pve  -wi-ao   7,00G                                      
  vm-102-disk-1 pve2 -wi-ao 200,00G                                      
  backup        pve3 -wi-ao 931,51G
Regards,

I know where it come from, i mount an lvm usb hdd /dev/mapper/transfert
For this i use commands "vgscan" and "vgchange -a y" and mount it on /mnt/transfert.

After my transfert, i umount /mnt/transfert and unplug the usb hdd.

i certainly miss some thing.

Tes.
 
Last edited:
Hi Dietmar,

Code:
vgscan
  Reading all physical volumes.  This may take a while...
  /dev/dm-5: read failed after 0 of 4096 at 1000198832128: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 1000198889472: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 4096: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
  Found volume group "pve2" using metadata type lvm2
  Found volume group "pve3" using metadata type lvm2
  Found volume group "pve" using metadata type lvm2
Code:
pvscan
  /dev/dm-5: read failed after 0 of 4096 at 1000198832128: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 1000198889472: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 4096: Erreur d'entrée/sortie
  /dev/dm-5: read failed after 0 of 4096 at 0: Erreur d'entrée/sortie
  PV /dev/sdc1   VG pve2   lvm2 [465,76 GB / 265,75 GB free]
  PV /dev/sdb1   VG pve3   lvm2 [931,51 GB / 0    free]
  PV /dev/sda2   VG pve    lvm2 [465,26 GB / 4,00 GB free]
  Total: 3 [1,82 TB] / in use: 3 [1,82 TB] / in no VG: 0 [0   ]

Regards,

Tes.