First of all, thanks for the great product. I'm running into a problem with our first container vm (all others are kvm based) where snapshot backups on a regular volume (not NFS) fail. I did a search on the forums for the mode failure but all other posts had some different configurations not matching ours (i.e. we did not change any defaults that could cause this and the CT is not running on a NFS share).
Any help how to get snapshots working is really appreciated.
Here all configuration and logging details you might need:
df -h is looking fine so far:
pvdisplay:
vgdisplay:
lvdisplay:
config:
vm config:
lsblk:
Did I mess up setting up the ssdraid volume somewhere?
Sebastian
Any help how to get snapshots working is really appreciated.
Here all configuration and logging details you might need:
Code:
INFO: starting new backup job: vzdump 201 --remove 0 --mode snapshot --compress lzo --storage storage1 --node vmhost1
INFO: Starting Backup of VM 201 (openvz)
INFO: CTID 201 exist mounted running
INFO: status = running
INFO: mode failure - unable to detect lvm volume group
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: starting first sync /mnt/ssdraid/private/201/ to /mnt/pve/storage1/dump/vzdump-openvz-201-2015_01_24-13_07_39.tmp
INFO: Number of files: 23869
INFO: Number of files transferred: 18439
INFO: Total file size: 664082539 bytes
INFO: Total transferred file size: 663612639 bytes
INFO: Literal data: 663612639 bytes
INFO: Matched data: 0 bytes
INFO: File list size: 537978
INFO: File list generation time: 0.001 seconds
INFO: File list transfer time: 0.000 seconds
INFO: Total bytes sent: 665030106
INFO: Total bytes received: 368804
INFO: sent 665030106 bytes received 368804 bytes 12437362.80 bytes/sec
INFO: total size is 664082539 speedup is 1.00
INFO: first sync finished (53 seconds)
INFO: suspend vm
INFO: Setting up checkpoint...
INFO: suspend...
INFO: get context...
INFO: Checkpointing completed successfully
INFO: starting final sync /mnt/ssdraid/private/201/ to /mnt/pve/storage1/dump/vzdump-openvz-201-2015_01_24-13_07_39.tmp
INFO: Number of files: 23869
INFO: Number of files transferred: 1
INFO: Total file size: 664082551 bytes
INFO: Total transferred file size: 937 bytes
INFO: Literal data: 237 bytes
INFO: Matched data: 700 bytes
INFO: File list size: 537978
INFO: File list generation time: 0.001 seconds
INFO: File list transfer time: 0.000 seconds
INFO: Total bytes sent: 540189
INFO: Total bytes received: 1957
INFO: sent 540189 bytes received 1957 bytes 72286.13 bytes/sec
INFO: total size is 664082551 speedup is 1224.91
INFO: final sync finished (7 seconds)
INFO: resume vm
INFO: Resuming...
INFO: vm is online again after 7 seconds
INFO: creating archive '/mnt/pve/storage1/dump/vzdump-openvz-201-2015_01_24-13_07_39.tar.lzo'
INFO: Total bytes written: 680591360 (650MiB, 11MiB/s)
INFO: archive file size: 334MB
INFO: Finished Backup of VM 201 (00:02:18)
INFO: Backup job finished successfully
TASK OK
df -h is looking fine so far:
Code:
root@vmhost1:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 6.3G 412K 6.3G 1% /run
/dev/mapper/pve-root 95G 1.6G 89G 2% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 13G 53M 13G 1% /run/shm
/dev/mapper/pve-data 1.7T 109G 1.6T 7% /var/lib/vz
/dev/sda2 494M 81M 388M 18% /boot
/dev/sdb1 470G 146G 301G 33% /mnt/ssdraid
/dev/fuse 30M 44K 30M 1% /etc/pve
192.168.100.251:/volume1/vms 9.1T 2.5T 6.6T 28% /mnt/pve/storage1
/mnt/ssdraid/private/201 50G 691M 50G 2% /var/lib/vz/root/201
tmpfs 103M 36K 103M 1% /var/lib/vz/root/201/run
tmpfs 5.0M 0 5.0M 0% /var/lib/vz/root/201/run/lock
tmpfs 410M 0 410M 0% /var/lib/vz/root/201/run/shm
pvdisplay:
Code:
--- Physical volume ---
PV Name /dev/sda3
VG Name pve
PV Size 1.82 TiB / not usable 3.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 476707
Free PE 4095
Allocated PE 472612
PV UUID hlQC95-5T3B-Ttse-rWzc-In9S-4Iy8-ift0ck
vgdisplay:
Code:
--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 32
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 1.82 TiB
PE Size 4.00 MiB
Total PE 476707
Alloc PE / Size 472612 / 1.80 TiB
Free PE / Size 4095 / 16.00 GiB
VG UUID Dp1ReU-8zbQ-6bLy-zoM8-R1fl-dQHu-qpd3qz
lvdisplay:
Code:
--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID Qcejfv-2xqD-nsRy-fQM0-AuSa-6uyO-tt7cOL
LV Write Access read/write
LV Creation host, time proxmox, 2014-09-22 23:52:16 +0200
LV Status available
# open 1
LV Size 62.00 GiB
Current LE 15872
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID BNH5WT-FiU8-UL3w-kjeR-zjEM-MCB2-l0r5DZ
LV Write Access read/write
LV Creation host, time proxmox, 2014-09-22 23:52:17 +0200
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/pve/data
LV Name data
VG Name pve
LV UUID DJUdaN-DFfU-BBFw-xYhm-E2Xu-iA6o-i7zXfO
LV Write Access read/write
LV Creation host, time proxmox, 2014-09-22 23:52:17 +0200
LV Status available
# open 1
LV Size 1.65 TiB
Current LE 432164
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
config:
Code:
dir: local
path /var/lib/vz
shared
content images,iso,vztmpl,backup,rootdir
maxfiles 5
nfs: storage1
path /mnt/pve/storage1
server 192.168.100.251
export /volume1/vms
options vers=3
content images,iso,vztmpl,rootdir,backup
maxfiles 5
dir: ssdraid
path /mnt/ssdraid
content images,iso,vztmpl,backup,rootdir
maxfiles 1
nodes vmhost1,vmhost2
vm config:
Code:
root@vmhost1:~# cat /etc/pve/openvz/201.conf
ONBOOT="yes"
PHYSPAGES="0:1024M"
SWAPPAGES="0:1024M"
KMEMSIZE="465M:512M"
DCACHESIZE="232M:256M"
LOCKEDPAGES="512M"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="0:unlimited"
OOMGUARPAGES="0:unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
NUMFILE="unlimited"
NUMIPTENT="unlimited"
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="50G:55G"
DISKINODES="10000000:11000000"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"
# CPU fair scheduler parameter
CPUUNITS="1000"
CPUS="2"
HOSTNAME="dbsql.artway.de"
SEARCHDOMAIN="artway.de"
NAMESERVER="8.8.8.8 4.4.4.4"
NETIF="ifname=eth0,bridge=vmbr0,mac=AE:FE:A6:10:0B:0C,host_ifname=veth201.0,host_mac=5A:0F:DF:2C:BB:03;ifname=eth1,bridge=vmbr1,mac=D2:EA:43:44:AF:52,host_ifname=veth201.1,host_mac=4E:27:56:AF:B4:D0"
VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/mnt/ssdraid/private/201"
OSTEMPLATE="debian-7.0-standard_7.0-2_amd64.tar.gz"
lsblk:
Code:
root@vmhost1:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 510M 0 part /boot
└─sda3 8:3 0 1.8T 0 part
├─pve-root (dm-0) 253:0 0 96G 0 lvm /
├─pve-swap (dm-1) 253:1 0 62G 0 lvm [SWAP]
└─pve-data (dm-2) 253:2 0 1.7T 0 lvm /var/lib/vz
sdb 8:16 0 476.9G 0 disk
└─sdb1 8:17 0 476.9G 0 part /mnt/ssdraid
sr0 11:0 1 1024M 0 rom
Did I mess up setting up the ssdraid volume somewhere?
Sebastian