snapshot backup not working

wrt54gl

Member
Feb 11, 2011
17
1
23
I get this error when I try a snapshot backup:

INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot --compress lzo --storage backup --node vmh
INFO: Starting Backup of VM 100 (qemu)
INFO: status = running
INFO: mode failure - unable to dump into snapshot (use option --dumpdir)
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend

The backup is successful however when I do the following command via ssh:

vzdump --dumpdir /mnt/backup --mode snapshot 100
INFO: starting new backup job: vzdump 100 --dumpdir /mnt/backup --mode snapshot
INFO: Starting Backup of VM 100 (qemu)
INFO: status = running
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: Logical volume "vzsnap-vmh-0" created
INFO: creating archive '/mnt/backup/vzdump-qemu-100-2012_05_07-09_50_20.tar'
INFO: adding '/mnt/backup/vzdump-qemu-100-2012_05_07-09_50_20.tmp/qemu-server.conf' to archive ('qemu-server.conf')
INFO: adding '/mnt/vzsnap0/images/100/vm-100-disk-1.raw' to archive ('vm-disk-virtio0.raw')

Is there a config file somewhere to set the options correctly for the web gui?

I am running proxmox 2.1 with my own RAID setup. I have kept the same lvm layout except that the volume group is named pve1 instead of pve.
I used the following howto:http://www.howtoforge.com/proxmox-2-with-software-raid
 
post you /etc/pve/storage.cfg

and also your lvm setup (lvdisplay, pvdisplay)
 
I have the exact same question but with v 1.9 and I did not see anywhere, how I could subscribe to this thread so I'm adding my post ;-)

more /etc/pve/storage.cfg dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir


dir: Dump-containers
path /var/lib/vz/dump
shared
content backup


dir: les-iso
path /var/lib/vz/iso
shared
content iso




==> lvdisplay


--- Logical volume ---
LV Name /dev/pve/swap
VG Name pve
LV UUID Nzog3K-L6yD-pntT-qAsB-j0YZ-yvQl-MTR5An
LV Write Access read/write
LV Status available
# open 1
LV Size 7.00 GB
Current LE 1792
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/pve/root
VG Name pve
LV UUID VgtNJn-q6Kn-CZmq-EA1S-mOXF-wtiC-bXxw7G
LV Write Access read/write
LV Status available
# open 1
LV Size 20.00 GB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name /dev/pve/data
VG Name pve
LV UUID cMtZnm-jdtr-mfkT-L4fx-E6ZB-Oxhp-Ghh3WY
LV Write Access read/write
LV Status available
# open 1
LV Size 665.25 GB
Current LE 170304
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2




==> pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name pve
PV Size 696.24 GB / not usable 837.00 KB
Allocatable yes
PE Size (KByte) 4096
Total PE 178238
Free PE 1022
Allocated PE 177216
PV UUID my4adC-KkvT-ljtY-as0E-NvQ6-EhRm-dvGxYT


thanks for any clue on this
 
Here is my setup:
cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir

dir: backup
path /var/lib/vz/backup
content backup
maxfiles 3
lvdisplay
--- Logical volume ---
LV Path /dev/pve1/swap
LV Name swap
VG Name pve1
LV UUID c99idI-dMDT-iYRA-CLJH-59GG-fooH-qbGqir
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 11.00 GiB
Current LE 2816
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Path /dev/pve1/root
LV Name root
VG Name pve1
LV UUID UDqlVK-A3G6-fZ4k-BSQD-TiaU-Z7TW-y4vdK0
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 96.00 GiB
Current LE 24576
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Path /dev/pve1/data
LV Name data
VG Name pve1
LV UUID daNwG2-WlTu-k0FC-cIie-CcGf-voj9-vWmuW1
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 354.27 GiB
Current LE 90694
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
pvdisplay
--- Physical volume ---
PV Name /dev/md1
VG Name pve1
PV Size 465.26 GiB / not usable 2.87 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 119106
Free PE 1020
Allocated PE 118086
PV UUID civUhd-GVaM-TKlo-Iutc-ITdH-AKRW-Rj2PrU
 
> dir: backup
> path /var/lib/vz/backup

you cannot use a backup target under /var/lib/vz, this would create an infinite loop for LVM snapshots. use a backup target outside /var/lib/vz.
 
more /etc/pve/storage.cfg dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir


dir: Dump-containers
path /var/lib/vz/dump
shared
content backup

you cannot mark local storage like /var/lib/vz/dump as "shared". its local storage and NOT shared so don´t mark it as shared.

backup: if you want LVM snapshots, you need to define a backup target outside /var/lib/vz
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!