iscsi target(服务端)之/etc/ietd.conf配置小记

1. The configuration file for the iscsi-target is
    ietd.conf located in /etc. The following is the ietd.conf file that I am using to share sdb as an iscsi disk.

# 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.[:identifier] "yyyy-mm" is the date at which the domain is valid and the identifier is freely selectable.
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.

请使用浏览器的分享功能分享到微信等