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
야신

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

initiator-address 172.16.2.0/24

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

Related 관련 기사

뜨겁다태그

보관