I. software required for the iSCSI server: SCSI-target-utils
Listening port: 3260
Client Authentication Method: 1, based on IP
2. User-based, chap (two-way authentication, server verification client, client verification server)
Software required for the iSCSI client: iSCSI-initiator-utils
Open-iSCSI
Ii. Server Configuration:
Prepare a target, which can be a partition.
Install SCSI-tartget-utils: Yum-y install SCSI-target-utils
Service is/etc/init. d/tgtd
The command line tool is tgtadm.
Start: Service tatd start
1. tgtadm modeled command:
Use -- mode to specify the mode
Common modes: Target, logicalunit, and accont
Target -- op
New, delete, show, update, bind, unbind
Logicalunit -- op
New, delete
Accont -- op
New, delete, bind, unbind
-- Initiator-address abbreviation -- I
Targetname:
Iqn. yyyy-Mm. <reversed. Domain Name> [: identifier]
Example: iqn.2014-10.com. zzc. Nokia: Test
Create target: tgtadm -- LLD iSCSI -- Mode target -- op new -- targetname iqn.2014-10.com. zzc. Nokia: Test -- TID 1
View: tgtadm -- LLD iSCSI -- Mode target -- op show
Create logicalunit: tgtadm -- LLD iSCSI -- Mode logicalunit -- op new -- TID 1 -- Lun 1 -- backing-store/dev/SDB
Create IP-based authentication: tgtadm -- LLD iscis -- Mode target -- op bind -- TID 1 -- initiator-Address 192.168.1.0/24
Client configuration: 1. Install iSCSI-initiator-utils Yum-y install iSCSI-initiator-utils.
Start Service: Service iSCSI start
Iscsiadm modeled command:
-M {discovery | node | session | iface}
Discovery: find out whether a service has target output and what target is output
Node: manages the association between a target and a root target.
Session: session management
Iface: Interface Management
For example, the target: iscsiadm-M discovery-D 2-T St-P 192.168.1.100
Log on to a target iscis-M node-T iqn.2014-10.com. zzc. Nokia: Test-P 192.168.1.100-l
Iscsi installation Configuration