problem on iscsi and lvm

Jasonhdx

New Member
Apr 30, 2024
7
0
1
root@pve1:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content iso,vztmpl,backup

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

lvm: lvm
vgname pve1
content rootdir,images
shared 1
root@pve2:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content iso,vztmpl,backup

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

lvm: lvm
vgname pve1
content rootdir,images
shared 1
root@pve3:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content iso,vztmpl,backup

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

lvm: lvm
vgname pve1
content rootdir,images
shared 1

root@pve1:~# pvesm status
Name Type Status Total Used Available %
local dir active 71017632 11527716 55836696 16.23%
local-lvm lvmthin active 148086784 17059597 131027186 11.52%
lvm lvm active 419426304 104857600 314568704 25.00%
root@pve2:~# pvesm status
Command failed with status code 5.
command '/sbin/vgscan --ignorelockingfailure --mknodes' failed: exit code 5
Name Type Status Total Used Available %
local dir active 71017632 7254868 60109544 10.22%
local-lvm lvmthin active 148086784 8648268 139438515 5.84%
lvm lvm inactive 0 0 0 0.00%
root@pve3:~# pvesm status
Command failed with status code 5.
command '/sbin/vgscan --ignorelockingfailure --mknodes' failed: exit code 5
Name Type Status Total Used Available %
local dir active 71017632 7255032 60109380 10.22%
local-lvm lvmthin active 148086784 8692694 139394089 5.87%
lvm lvm inactive 0 0 0 0.00%

root@pve3:~# iscsiadm -m node
10.0.1.107:3260,1 iqn.2017-08.zettastor.iqn:1113021025697932295-0
root@pve2:~# iscsiadm -m node
10.0.1.107:3260,1 iqn.2017-08.zettastor.iqn:1113021025697932295-0
root@pve1:~# iscsiadm -m node
10.0.1.107:3260,1 iqn.2017-08.zettastor.iqn:1113021025697932295-0

root@pve1:~# iscsiadm -m session
tcp: [1] 10.0.1.107:3260,1 iqn.2017-08.zettastor.iqn:1113021025697932295-0 (non-flash)

root@pve2:~# iscsiadm -m session
tcp: [4] 10.0.1.107:3260,1 iqn.2017-08.zettastor.iqn:1113021025697932295-0 (non-flash)
root@pve3:~# iscsiadm -m session
tcp: [5] 10.0.1.107:3260,1 iqn.2017-08.zettastor.iqn:1113021025697932295-0 (non-flash)

root@pve3:~# pvesm list lvm
Command failed with status code 5.
command '/sbin/vgscan --ignorelockingfailure --mknodes' failed: exit code 5
Volid Format Type Size VMID

root@pve2:~# pvesm list lvm
Command failed with status code 5.
command '/sbin/vgscan --ignorelockingfailure --mknodes' failed: exit code 5
Volid Format Type Size VMID

root@pve1:~# pvesm list lvm
Volid Format Type Size VMID
lvm:vm-103-disk-0 raw images 53687091200 103
lvm:vm-103-disk-1 raw images 53687091200 103
 
Last edited:
I don't know how you setup your iSCSI on PVE, but I don't see iSCSI in your storage.cfg at all, as per docs.

I don't use iSCSI myself, but maybe look here.
 

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!