ich habe ein Problem mit tgt auf Debian Buster. Und zwar wird ein Target, was an sich normal funktioniert, nach einem Neustart von tgt, bzw. nach
tgt-admin --update ALL
nicht automatisch exportiert.
Code: Alles auswählen
root@myhost:/# tgtadm --lld iscsi --op show --mode target
Target 1: iqn.2020-2.local.mydomain.myhost:lun2
System information:
Driver: iscsi
State: ready
I_T nexus information:
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:
192.168.220.0/29
192.168.221.0/29
192.168.200.0/24
Code: Alles auswählen
root@myhost:/# tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 -b /dev/sda
root@myhost:/# tgtadm --lld iscsi --op show --mode target
Target 1: iqn.2020-2.local.mydomain.myhost:lun2
System information:
Driver: iscsi
State: ready
I_T nexus information:
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:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 2046283 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/sda
Backing store flags:
Account information:
ACL information:
192.168.220.0/29
192.168.221.0/29
192.168.200.0/24
Code: Alles auswählen
root@myhost:/# tgt-admin --dump
default-driver iscsi
<target iqn.2020-2.local.mydomain.myhost:lun2>
backing-store /dev/sda
initiator-name 192.168.220.0/29
initiator-name 192.168.221.0/29
initiator-name 192.168.200.0/24
</target>