에서 /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] 삭제
몇 마디 만하겠습니다