Platzhalter-IP-Adressen für eine iSCSI-Zielinitiatoradresse scheinen unter CentOS 6 nicht zu funktionieren

Platzhalter-IP-Adressen für eine iSCSI-Zielinitiatoradresse scheinen unter CentOS 6 nicht zu funktionieren

Funktioniert im /etc/tgt/targets.confWildcard-Feld ( 172.16.2.*) nicht mit der Initiatoradresse. Ich bereite mich auf die Prüfung zum Red Hat High Availability Clustering (EX436) vor.

Im Schülerarbeitsbuch steht:

Mit tgtadmdem Befehl dürfen Sie in einer --initiator-addressOption Platzhalter wie 172.16.X.* verwenden, wenn Sie möchten.

Diese Konfiguration targets.conffunktioniert jedoch nicht mit einem Platzhalter:

# cat /etc/redhat-release 
CentOS release 6.6 (Final)

# rpmquery scsi-target-utils
scsi-target-utils-1.0.24-16.el6.x86_64

# cat /etc/tgt/targets.conf
....
<target iqn.2015-09.rhel6.storage1>
    backing-store /dev/mapper/vg_rhel6-clustorage1
    vendor_id ex436prep
    initiator-address 172.16.2.*
</target>

# tgt-admin -s
Target 1: iqn.2015-09.rhel6.storage1
    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
            Backing store type: null
            Backing store path: None
            Backing store flags: 
    Account information:
    ACL information:
        172.16.2.*

Wenn ich aber in initiator-addressdie IP-Adresse des Initiators ( 172.16.2.10) einstelle targets.conf, funktioniert alles wie erwartet:

# cat /etc/tgt/targets.conf
...
<target iqn.2015-09.rhel6.storage1>
    backing-store /dev/mapper/vg_rhel6-clustorage1
    vendor_id ex436prep
    initiator-address 172.16.2.10
</target>

# tgt-admin -s
Target 1: iqn.2015-09.rhel6.storage1
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 1
            Initiator: iqn.2015-09.one:i1
            Connection: 0
                IP Address: 172.16.2.10
    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
            Backing store type: null
            Backing store path: None
            Backing store flags: 
        LUN: 1
            Type: disk
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 2076 MB, Block size: 512
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /dev/mapper/vg_rhel6-clustorage1
            Backing store flags: 
    Account information:
    ACL information:
        172.16.2.10

Antwort1

Das Folgende hat geholfen!

initiator-address 172.16.2.0/24

verwandte Informationen