iscsi target(服務端)之/etc/ietd.conf配置小記

wisdomone1發表於2010-07-29
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.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-669785/,如需轉載,請註明出處,否則將追究法律責任。

相關文章