Fibre channel storage and LVM. Problems

Feb 9, 2021
3
0
1
41
We assembled a cluster of 10 servers and connected the storage system using the Fiber channel protocol. Created moons and connected them to our cluster.
We connected the disks to the cluster using multipath.
We created virtual machines and provided disks from the moons data, decided to conduct an experiment and decided to migrate our VMs between the cluster nodes, the following error occurred:
()

virtio0
DW04-50TB
Raw disk image (raw)
create full clone of drive virtio0 (OLTP02-BUSINESSDATA: vm-201-disk-0)
device-mapper: create ioctl on DW04--50TB-vm - 201 - disk - 0 LVM-wqfwjGkvkA7E0OiLFDwamwOW7wcqQd9pZnmeoEZrDvV3JewkpAoYboch3ofgijGx failed: Device or resource busy
TASK ERROR: storage migration failed: error during cfs-locked 'storage-DW04-50TB' operation: lvcreate 'DW04-50TB / vm-201-disk-0' error: Failed to activate new LV DW04-50TB / vm-201- disk-0
Please help solve this problem.

P / s: I'm sorry, but I have difficulties with the English language, so I translate with the help of a translator
 

Attachments

It's been a long time since my last FC deployment, but seems as if you forgot to flag the FS storage as "shared" in Proxmox.


The error message seems to describe that Proxmox is trying to create a copy of the LVM on the other node, using the same storage and overwriting the same LVM volume used by the currently running VM.

When you flag a storage as Shared, you let Proxmox know that it should be able of accessing the data of a storage from any node that has that storage configured, so it wont try to make that copy to migrate VMs.
 
She also failed to clone a virtual machine:

WARNING: Not using device /dev/mapper/mpathe for PV KVbP6P-QXed-LyMQ-pQYA-Xu7y-X4Bv-tcejVF.
WARNING: Not using device /dev/mapper/mpatha for PV snSk3h-9iGd-jTkI-3Q2Z-9Qv4-iq0l-dsZbXo.
WARNING: Not using device /dev/mapper/mpathb for PV pdu2J6-PRcr-nBbd-V2Gm-12j2-UAmn-FShvje.
WARNING: Not using device /dev/mapper/mpathc for PV IV7KC0-9J0y-3Hal-IyrI-JG6F-SgLO-zORKWH.
WARNING: PV KVbP6P-QXed-LyMQ-pQYA-Xu7y-X4Bv-tcejVF prefers device /dev/sdb because device is used by LV.
WARNING: PV snSk3h-9iGd-jTkI-3Q2Z-9Qv4-iq0l-dsZbXo prefers device /dev/sdf because device is used by LV.
WARNING: PV pdu2J6-PRcr-nBbd-V2Gm-12j2-UAmn-FShvje prefers device /dev/sdg because device is used by LV.
WARNING: PV IV7KC0-9J0y-3Hal-IyrI-JG6F-SgLO-zORKWH prefers device /dev/sdh because device is used by LV.
WARNING: Not using device /dev/mapper/mpathe for PV KVbP6P-QXed-LyMQ-pQYA-Xu7y-X4Bv-tcejVF.
WARNING: Not using device /dev/mapper/mpatha for PV snSk3h-9iGd-jTkI-3Q2Z-9Qv4-iq0l-dsZbXo.
WARNING: Not using device /dev/mapper/mpathb for PV pdu2J6-PRcr-nBbd-V2Gm-12j2-UAmn-FShvje.
WARNING: Not using device /dev/mapper/mpathc for PV IV7KC0-9J0y-3Hal-IyrI-JG6F-SgLO-zORKWH.
WARNING: PV KVbP6P-QXed-LyMQ-pQYA-Xu7y-X4Bv-tcejVF prefers device /dev/sdb because device is used by LV.
WARNING: PV snSk3h-9iGd-jTkI-3Q2Z-9Qv4-iq0l-dsZbXo prefers device /dev/sdf because device is used by LV.
WARNING: PV pdu2J6-PRcr-nBbd-V2Gm-12j2-UAmn-FShvje prefers device /dev/sdg because device is used by LV.
WARNING: PV IV7KC0-9J0y-3Hal-IyrI-JG6F-SgLO-zORKWH prefers device /dev/sdh because device is used by LV.
TASK ERROR: clone failed: can't activate LV '/dev/OLTP01-RDBMS/vm-301-disk-1': Cannot activate LVs in VG OLTP01-RDBMS while PVs appear on duplicate devices.