snapshots on ceph

tad

New Member
Jan 14, 2016
25
1
1
41
Hi guys,

I am wondering, is it posible to create a snapshot of a VM host on ceph?

I'm getting the following error:

VM 104 qmp command 'savevm-start' failed - failed to open '/dev/rbd/pool01/vm-104-state-test'

The disk has a virtio bus.

has anybody an idea?

Kind regards,

tad
 
Hi,
for QEMU you should use not KRDB.
If you have also CT make 2 pools one with KRDB for the CT
and one without for the Qemu guests.
 
Hi @wolfgang,

Thanks for your post. it's clear:)

I have one question. is it posible to disable KRDB on a running pve host wit running VM's? we dont use CT's at the moment.

Kind regards,

TAD
 
No you have to restart the VM.
 
Hi All, @wolfgang,

I have disabled KRDB and rebooted all the VM's. After the reboot the vm's where working fine like before. but I was still not able to create a snapshot.

Then I rebooted the whole PVE Host. (KRDB is still disabled at this point) when I boot a VM I'll get an error:


Do you really want to restart node pve109?
Running as unit 100.scope.
kvm: -drive file=rbd:cephpool/vm-100-disk-1:mon_host=10.10.0.10\:6789,10.10.0.11\:6789,10.10.0.12\:6789:id=admin:auth_supported=cephx:keyring=/etc/pve/priv/ceph/ceph.keyring,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on: error connecting
TASK ERROR: start failed: command '/usr/bin/systemd-run --scope --slice qemu --unit 100 -p 'KillMode=none' -p 'CPUShares=1000' /usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=273f6fd1-508b-46e5-a4a6-e65a43c2f0f5' -name <VM-name> -smp '2,sockets=1,cores=2,maxcpus=2' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga cirrus -cpu kvm64,+lahf_lm,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 8192 -k en-us -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:33366a467a56' -drive 'file=rbd:cephpool/vm-100-disk-1:mon_host=10.10.0.10\:6789,10.10.0.11\:6789,10.10.0.12\:6789:id=admin:auth_supported=cephx:keyring=/etc/pve/priv/ceph/ceph.keyring,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -drive 'file=/var/lib/vz/template/iso/CentOS-7-x86_64-DVD.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'e1000,mac=36:61:31:66:32:66,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1

As you can see, the VM gives an error back and can't boot. All the VM's having the same error.

When I enable KRDB again (without rebooting the PVE Host), all the VM's are booting as usual.

Does anybody know whats going on here?

Kind regards,

TAD
 
Can you post your /etc/pve/storage.cfg, please?

NOTE: I have enabled KRDB again to be able to start the VM's

*****@pve109:~# cat /etc/pve/storage.cfg
rbd: ceph
monhost 10.10.0.10:6789,10.10.0.11:6789,10.10.0.12:6789
pool cephpool
krbd
username admin
content images

dir: local
path /var/lib/vz
content iso,images,rootdir,vztmpl
maxfiles 0

nfs: NFS
path /mnt/pve/NFS
export /data
server 10.10.1.123
content backup,images,iso,vztmpl,rootdir
options vers=3
maxfiles 100
 
Hi all,

@markusd was right. "," will work. you can create vm's and work with them. only its impossible to create snapshots. after changing, snapshots are working fine!

why does proxmox allow "," in monitoring string?