Good morning from Germany,
we're using Proxmox in a simple three node cluster, where one node is just a quorom and control node (px1, px2, px3). On px1 and px2 we're using drbd9 as a shared storage and a LVM volume group as a local storage for non-roaming virtual machines. The VG used for DRBD9 has the same name as the local LVM-storage (VG1).
Our problem is that we're unable to migrate virtual machines saved on drbd-storage from one host to another until we either share or disable the LVM-storage in storage settings.
When we either share or disable the LVM-storage it works flawless.
We don't think this is a normal behaviour even when there's the same volume group name twice.
pveversion -v
/etc/pve/storage.cfg
/etc/drbdmanaged.cfg
we're using Proxmox in a simple three node cluster, where one node is just a quorom and control node (px1, px2, px3). On px1 and px2 we're using drbd9 as a shared storage and a LVM volume group as a local storage for non-roaming virtual machines. The VG used for DRBD9 has the same name as the local LVM-storage (VG1).
Our problem is that we're unable to migrate virtual machines saved on drbd-storage from one host to another until we either share or disable the LVM-storage in storage settings.
Code:
Jun 08 08:27:00 starting migration of VM 100 to node 'px2' (172.19.80.102)
Jun 08 08:27:00 copying disk images
Jun 08 08:27:01 ERROR: Failed to sync data - can't migrate 'vg1:vm-100-disk-1_00' - storage type 'lvm' not supported
Jun 08 08:27:01 aborting phase 1 - cleanup resources
Jun 08 08:27:01 ERROR: migration aborted (duration 00:00:01): Failed to sync data - can't migrate 'vg1:vm-100-disk-1_00' - storage type 'lvm' not supported
TASK ERROR: migration aborted
When we either share or disable the LVM-storage it works flawless.
Code:
Jun 08 08:28:02 starting migration of VM 100 to node 'px2' (172.19.80.102)
Jun 08 08:28:02 copying disk images
Jun 08 08:28:03 migration finished successfully (duration 00:00:01)
TASK OK
We don't think this is a normal behaviour even when there's the same volume group name twice.
pveversion -v
Code:
proxmox-ve: 4.2-52 (running kernel: 4.4.8-1-pve)
pve-manager: 4.2-11 (running version: 4.2-11/2c626aa1)
pve-kernel-4.4.8-1-pve: 4.4.8-52
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 1.0-1
pve-cluster: 4.0-40
qemu-server: 4.0-79
pve-firmware: 1.1-8
libpve-common-perl: 4.0-67
libpve-access-control: 4.0-16
libpve-storage-perl: 4.0-51
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.5-19
pve-container: 1.0-67
pve-firewall: 2.0-29
pve-ha-manager: 1.0-31
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 1.1.5-7
lxcfs: 2.0.0-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
drbdmanage: 0.95-1
/etc/pve/storage.cfg
Code:
dir: local
path /var/lib/vz
content rootdir,backup,images,vztmpl,iso
maxfiles 0
drbd: drbd1
content rootdir,images
redundancy 2
nodes px2,px1
lvm: vg1
vgname VG1
content images,rootdir
shared
nodes px1,px2
/etc/drbdmanaged.cfg
Code:
[GLOBAL]
storage-plugin = drbdmanage.storage.lvm.Lvm
[LOCAL]
drbdctrl-vg = VG1
Code:
root@px1:/etc# drbdmanage list-volumes
+------------------------------------------------------------------------------------------------------------+
| Name | Vol ID | Size | Minor | | State |
|------------------------------------------------------------------------------------------------------------|
| vm-102-disk-1 | 0 | 409600 | 101 | | ok |
| vm-103-disk-1 | 0 | 409600 | 102 | | ok |
| vm-105-disk-1 | 0 | 32768 | 100 | | ok |
+------------------------------------------------------------------------------------------------------------+
root@px1:/etc# drbdmanage list-resources
+------------------------------------------------------------------------------------------------------------+
| Name | | State |
|------------------------------------------------------------------------------------------------------------|
| vm-102-disk-1 | | ok |
| vm-103-disk-1 | | ok |
| vm-105-disk-1 | | ok |
+------------------------------------------------------------------------------------------------------------+
root@px1:/etc# drbdmanage list-assignments
+------------------------------------------------------------------------------------------------------------+
| Node | Resource | Vol ID | | State |
|------------------------------------------------------------------------------------------------------------|
| px1 | vm-102-disk-1 | * | | ok |
| px1 | vm-103-disk-1 | * | | ok |
| px1 | vm-105-disk-1 | * | | ok |
| px2 | vm-102-disk-1 | * | | ok |
| px2 | vm-103-disk-1 | * | | ok |
| px2 | vm-105-disk-1 | * | | ok |
+------------------------------------------------------------------------------------------------------------+