# iscsiadm -m discovery -t st -p 127.0.0.1 -t st
127.0.0.1:3260,1 iqn.2018-06.pz:fast
127.0.0.1:3260,1 iqn.2018-06.pz:slow
# iscsiadm -m node -R
Rescanning session [sid: 1, target: iqn.2018-06.pz:fast, portal: 127.0.0.1,3260]
Rescanning session [sid: 2, target: iqn.2018-06.pz:slow, portal: 127.0.0.1,3260]
# vgs
VG #PV #LV #SN Attr VSize VFree
vg_slow 1 0 0 wz--n- 803,75g 803,75g
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vg_slow" using metadata type lvm2
## Вырезал все лишние NFS и SMB хранилки, с ними все ОК
# pvesm status
Name Type Status Total Used Available %
Fast lvm inactive 0 0 0 0.00%
Slow lvm active 842792960 0 842792960 0.00%
iFast iscsi active 0 0 0 0.00%
iSlow iscsi active 0 0 0 0.00%
# vgs
VG #PV #LV #SN Attr VSize VFree
vg_fast 1 22 0 wz--n- <1,82t <1,17t
vg_slow 1 0 0 wz--n- 803,75g 803,75g
## Выхлоп ниже сокращен, суть - диски виртуалок видит.
# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
vm-101-disk-1 vg_fast -wi-a----- 5,00g
vm-101-disk-2 vg_fast -wi-a----- 30,00g
vm-1200-disk-1 vg_fast -wi-a----- 30,00g
vm-1200-disk-2 vg_fast -wi-a----- 5,00g
# tgt-admin -s
.Target 1: iqn.2018-06.pz:fast
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.1993-08.org.debian:01:6b28041b594 alias: n0
Connection: 0
IP Address: 127.0.0.1
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: null
Backing store path: None
Backing store flags:
Account information:
ACL information:
ALL
Target 2: iqn.2018-06.pz:slow
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 2
Initiator: iqn.1993-08.org.debian:01:6b28041b594 alias: n0
Connection: 0
IP Address: 127.0.0.1
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00020000
SCSI SN: beaf20
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00020001
SCSI SN: beaf21
Size: 863023 MB, Block size: 512
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: rdwr
Backing store path: /dev/md0p4
Backing store flags:
Account information:
ACL information:
ALL
# tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/bcache0