# iscsi target configuration
Target iqn.2000-12.com.digicola:storage.lun1
IncomingUser gfs secretsecret ##客户端login user及密码
OutgoingUser
Lun 0 Path=/dev/sdb,Type=fileio ##fileio适用于lvm,raid,fs,是默认的
Alias iDISK0
#MaxConnections 6
The iedt.conf file that I use is straight forward enough.
The IncomingUser and OutgoingUser at the begining of the file defines users allowed to query the iscsi session (If empty then everyone is allowed). Note: The iscsi spec states that the password is 12 characters, (from what I have read) the MS initiator requires it.
###下面说到TARGET(就是提供iscsi target服务的设备命名格式)
Targets definitions start with "Target" and the target name. The target name must be a globally unique name, the iSCSI standard defines the "iSCSI Qualified Name" as follows: iqn.yyyy-mm.
The target can also require authentication, this time I used the user gfs with the password of secretsecret for the incoming user (iscsi initiator).
The Type "fileio" is the default and can be used for disk, file or LVM.