這裡只有列出設定檔內容,其他部分大家自行google
[Global]
Comment "Global section"
NodeBase "iqn.2014-07.storage.istgt" //屆時 iSCSI Initiator 所看到的 iSCSI Target IQN
PidFile /var/run/istgt.pid
MediaDirectory /var/istgt
LogFacility "local7"
Timeout 30
NopInInterval 20
DiscoveryAuthMethod Auto
MaxSessions 16
MaxConnections 4
MaxR2T 32
MaxOutstandingR2T 16
DefaultTime2Wait 2
DefaultTime2Retain 60
FirstBurstLength 262144
MaxBurstLength 1048576
MaxRecvDataSegmentLength 262144
InitialR2T Yes
ImmediateData Yes
DataPDUInOrder Yes
DataSequenceInOrder Yes
ErrorRecoveryLevel 0
[UnitControl]
Comment "Internal Logical Unit Controller"
AuthMethod Auto
Portal UC1 127.0.0.1:3261
Netmask 127.0.0.1
[PortalGroup1]
Comment "Portal Group"
Portal DA1 IP Address:3260 //iSCSI Target Listen IP 及 Port 號
[InitiatorGroup1]
Comment "Initiator Group1"
InitiatorName "ALL" //允許所有iSCSI Initiator 可連接
Netmask IP Address/24 //允許此網段的 iSCSI Initiator 可連接
[LogicalUnit1]
Comment "Storage"
TargetName Storage
TargetAlias "Storage"
Mapping PortalGroup1 InitiatorGroup1
AuthMethod Auto
UseDigest Auto
UnitType Disk
LUN0 Storage /raid/istgt-disk1 XXGB //屆時 iSCSI Initiator 看到的 iSCSI Target 空間
沒有留言:
張貼留言