iSCSI 대상 개시자 주소에 대한 와일드카드 IP 주소가 CentOS 6에서 작동하지 않는 것 같습니다.

iSCSI 대상 개시자 주소에 대한 와일드카드 IP 주소가 CentOS 6에서 작동하지 않는 것 같습니다.

/etc/tgt/targets.conf와일드카드( ) 에서는 172.16.2.*개시자 주소와 함께 작동하지 않습니다. 저는 Red Hat 고가용성 클러스터링 시험(EX436)을 준비하고 있습니다.

학생 워크북에는 다음과 같이 적혀 있습니다.

원하는 경우 명령을 사용하여 옵션 tgtadm에 172.16.X.*와 같은 와일드카드를 사용할 수 있습니다 .--initiator-address

그러나 이것은 targets.conf와일드카드와 함께 작동하지 않는 구성입니다.

# 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.*

initiator-address그러나 에서 개시자의 IP 주소( 172.16.2.10) 를 설정하면 targets.conf모든 것이 예상대로 작동합니다.

# 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

답변1

다음은 트릭을 수행했습니다!

initiator-address 172.16.2.0/24

관련 정보