ISCSI-LUN wird nach Neustart nicht exportiert

Probleme mit Samba, NFS, FTP und Co.
Antworten
DonCanalie
Beiträge: 2
Registriert: 29.04.2020 23:30:33

ISCSI-LUN wird nach Neustart nicht exportiert

Beitrag von DonCanalie » 29.04.2020 23:50:05

Hallo,

ich habe ein Problem mit Debiantgt 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
Erst wenn ich das LUN manuell exportiere, klappt es

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
Hier meine Konfiguration

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>
Weiß jemand, woran das liegt und was zu tun ist, damit das LUN automatisch exportiert wird nach einem Neustart?

DonCanalie
Beiträge: 2
Registriert: 29.04.2020 23:30:33

Re: ISCSI-LUN wird nach Neustart nicht exportiert

Beitrag von DonCanalie » 30.04.2020 04:23:47

Hab es gelöst.

Es funktioniert, wenn man in der Target-Config

allow-in-use yes

ergänzt. Darauf kommt man, wenn man

tgt-admin -e -v

ausführt.

Antworten