Unable to create a VM on slave, when using drbd storage

  • Thread starter Thread starter fluke
  • Start date Start date
F

fluke

Guest
Hi,

I am unable to create a VM on the slave node, when I specify drbd storage for VM. Error message is:

Code:
/usr/bin/ssh -t -t -n -o BatchMode=yes 192.168.7.2 /usr/sbin/qm create 201 --cdrom cdrom --name win7test --bootdisk ide0 --vlan1 'e1000=5E:36:CF:56:4B:AB' --ostype other --ide0 'DRBDstorage-2:80,format=raw' --memory 2048 --onboot no --sockets 1
device-mapper: reload ioctl failed: Invalid argument 
Aborting. Failed to activate new LV to wipe the start of it. 
create failed - command '/sbin/lvcreate --addtag pve-vm-201 --size 83886080k --name vm-201-disk-1 drbdvg-2' failed with exit code 5 
Connection to 192.168.7.2 closed. 
unable to apply VM settings -

pveversion -v

Code:
pve-manager: 1.5-1 (pve-manager/1.5/4561)
running kernel: 2.6.32-1-pve
proxmox-ve-2.6.32: 1.5-2
pve-kernel-2.6.32-1-pve: 2.6.32-2
pve-kernel-2.6.24-10-pve: 2.6.24-21
pve-kernel-2.6.24-8-pve: 2.6.24-16
qemu-server: 1.1-10
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-6
vncterm: 0.9-2
vzctl: 3.0.23-1pve5
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.11.1-1
ksm-control-daemon: 1.0-2
 
You wrote that you run drbd in primary/secondary mode in another post - that will not work that way - you need to run primary/primary mode to get that work.
 
You wrote that you run drbd in primary/secondary mode in another post - that will not work that way - you need to run primary/primary mode to get that work.

I have configured two drbd resources in primary/primary mode:

Code:
proxmox2:~# drbd-overview
  0:r0  Connected Primary/Primary UpToDate/UpToDate C r---- lvm-pv: drbdvg-1 715.24G 290.00G
  1:r1  Connected Primary/Primary UpToDate/UpToDate C r---- lvm-pv: drbdvg-2 835.05G 0G

I am having trouble creating a VM on the slave node, which uses an empty drbd (drbdvg-2) storage. If I create a VM on the master node, which uses drbdvg-2 and start the VM, then I can create VM's on the slave node on drbdvg-2.

How to reproduce:

Add a new empty drbd/lvm storage. Try to create a VM on the slave node, which uses that storage.
 
Last edited by a moderator:
I am having trouble creating a VM on the slave node, which uses an empty drbd (drbdvg-2) storage. If I create a VM on the master node, which uses drbdvg-2 and start the VM, then I can create VM's on the slave node on drbdvg-2.

Are you able to create a LV manually on that VG (lvcreate)?
 
I can't reproduce this error anymore. Maybe it was some kind of a temporary problem.