DRBD+LVM don't work

docent

Renowned Member
Jul 23, 2009
96
1
73
Hi, everybody!
I can't create VM on DRBD volume.
I have only one 500GB HDD on both computers. So I just reduced size of LVM volume pve/data to 50GB and created new volume pve/drbd with 150GB size. Then I initialized this physical volume
Code:
pvcreate /dev/drbd0
and created a volume group
Code:
vgcreate drbdvg /dev/drbd0
Code:
cl8:/var/log# pvscan
File descriptor 7 left open
  PV /dev/dm-7   VG drbdvg   lvm2 [149.99 GB / 149.99 GB free]
  PV /dev/sda2   VG pve      lvm2 [465.26 GB / 8.26 GB free]
  Total: 2 [615.25 GB] / in use: 2 [615.25 GB] / in no VG: 0 [0   ]
But now I can't create new VM:
Code:
/usr/sbin/qm create 105 --cdrom local:iso/debian-502a-amd64-netinst.iso
 --name backup --vlan0 e1000=96:DA:6F:6F:86:8D --bootdisk ide0 --ostype l26
 --ide0 drbd0st:4,format=raw --memory 512 --onboot no --sockets 2
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-105 --size 4194304k
 --name vm-105-disk-1 drbdvg' failed with exit code 5
unable to apply VM settings -
 

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!