Proxmox version 6.1-7. Trying to get LVM over iSCSI working. My iSCSI server is running OmniOS using NappIt. I created the iSCSI share on the NappIt server and created my host target group and iSCSI target group and view. Proxmox cluster (six nodes) can add the iSCSI volume with no issues. However, whenever I try to create an LVM on the iSCSI volume I get the following error:
create storage failed: error with cfs lock 'file-storage_cfg': device '/dev/disk/by-id/scsi-3600144f0e8ee406800005e69072c0003' is already used by volume group '[unknown]' (500)
Looking at pvdisplay I get:
root@sun1:~# pvdisplay
WARNING: Not using device /dev/sdd for PV mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT.
WARNING: PV mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT prefers device /dev/sdc because device was seen first.
--- Physical volume ---
PV Name /dev/sdb
VG Name ceph-4cede2e7-0403-488c-abf6-31d74371b2e2
PV Size 1.45 TiB / not usable 189.00 MiB
Allocatable yes (but full)
PE Size 1.00 GiB
Total PE 1489
Free PE 0
Allocated PE 1489
PV UUID y08aJm-OaHi-RnYF-L3xU-Akfq-klpk-Gc80Aa
--- Physical volume ---
PV Name /dev/sda3
VG Name pve
PV Size <371.10 GiB / not usable 2.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 95000
Free PE 4094
Allocated PE 90906
PV UUID guD30a-5nh0-rpPS-R3U5-4yM6-SwbU-x2Bokj
"/dev/sdc" is a new physical volume of "5.00 TiB"
--- NEW Physical volume ---
PV Name /dev/sdc
VG Name
PV Size 5.00 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT
My iSCSI Volume is the 5TB mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT device on /dev/sdc and /dev/sdd. So seeing multipath here as my NappIt server is on two VLANS which the Proxmox cluster can see as well.
Reading up on this I installed multipath-tools on each node and rebooted. However, it doesn't look like it picked up to the two paths to the iSCSI volume
mutlipath -ll
is empty.
/dev/mapper doesn't show the 5TB iSCSI volume:
root@sun1:~# ls /dev/mapper/
ceph--4cede2e7--0403--488c--abf6--31d74371b2e2-osd--block--84393cb3--9a2a--41ce--8f17--046e690a047e
control
pve-data
pve-data_tdata
pve-data_tmeta
pve-data-tpool
pve-root
pve-swap
I'm assuming this is causing my issue in not being able to create my LVM on the iSCSI volume?
create storage failed: error with cfs lock 'file-storage_cfg': device '/dev/disk/by-id/scsi-3600144f0e8ee406800005e69072c0003' is already used by volume group '[unknown]' (500)
Looking at pvdisplay I get:
root@sun1:~# pvdisplay
WARNING: Not using device /dev/sdd for PV mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT.
WARNING: PV mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT prefers device /dev/sdc because device was seen first.
--- Physical volume ---
PV Name /dev/sdb
VG Name ceph-4cede2e7-0403-488c-abf6-31d74371b2e2
PV Size 1.45 TiB / not usable 189.00 MiB
Allocatable yes (but full)
PE Size 1.00 GiB
Total PE 1489
Free PE 0
Allocated PE 1489
PV UUID y08aJm-OaHi-RnYF-L3xU-Akfq-klpk-Gc80Aa
--- Physical volume ---
PV Name /dev/sda3
VG Name pve
PV Size <371.10 GiB / not usable 2.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 95000
Free PE 4094
Allocated PE 90906
PV UUID guD30a-5nh0-rpPS-R3U5-4yM6-SwbU-x2Bokj
"/dev/sdc" is a new physical volume of "5.00 TiB"
--- NEW Physical volume ---
PV Name /dev/sdc
VG Name
PV Size 5.00 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT
My iSCSI Volume is the 5TB mABXRn-dx1c-0QFI-1lJy-iG3N-1vpO-GYyycT device on /dev/sdc and /dev/sdd. So seeing multipath here as my NappIt server is on two VLANS which the Proxmox cluster can see as well.
Reading up on this I installed multipath-tools on each node and rebooted. However, it doesn't look like it picked up to the two paths to the iSCSI volume
mutlipath -ll
is empty.
/dev/mapper doesn't show the 5TB iSCSI volume:
root@sun1:~# ls /dev/mapper/
ceph--4cede2e7--0403--488c--abf6--31d74371b2e2-osd--block--84393cb3--9a2a--41ce--8f17--046e690a047e
control
pve-data
pve-data_tdata
pve-data_tmeta
pve-data-tpool
pve-root
pve-swap
I'm assuming this is causing my issue in not being able to create my LVM on the iSCSI volume?