### ISCSI initiator configuration 1. iSCSI initiator installation in Linux: In the OracleLinux-R6-U4-Server-x86_64-dvd.iso, find the iSCSI initiator version that matches the system iSCSI-initiator-utils-6.2.0.873-2.0.1.el6.x86 _ 64.rpm; through rpm-IVH installation 2. start the iscsi service CD/etc/init. d. /iSCSI start chkconfig iSCSI on 3. iSCSI initiator configuration in Linux: the default configuration is/var/lib/iSCSI 1. first, you need to set target on the storage to execute these commands with the root permission before the result is executed twice. Check fdisk-L and find that the Lun can be mounted twice, multiple commands are mounted multiple times. 2. command for disk discovery: iscsiadm- M discovery-T St-P 10.182.69.161 (storage IP address) [[email protected] ~] # Iscsiadm-M discovery-T St-P 10.182.69.161 10.182.69.161: 3260,2 iqn.1986-03.com. Sun: 02: After the f057e3e0-2c3e-67ed-95c9-810a76090bed is found, execute iscsiadm-M node to see the detected node [[email protected] ~] # Iscsiadm-M node 10.182.69.161: 3260,2 iqn.1986-03.com. Sun: 02: The f057e3e0-2c3e-67ed-95c9-810a76090bed executes the logon command iscsiadm-M node -- login [[email protected] ~] # Iscsiadm-M node -- login logging in to [iface: Default, target: iqn.1986-03.com. sun: 02: f057e3e0-2c3e-67ed-95c9-810a76090bed, portal: 10.182.69.161, 3260] (multiple) login to [iface: Default, target: iqn.1986-03.com. sun: 02: f057e3e0-2c3e-67ed-95c9-810a76090bed, portal: 10.182.69.161, 3260] successful. we can see that the session creates an iscsiadm-M session [[email protected] ~] # Iscsiadm-M session TCP: [1] 10.182.69.161: 3260,2 iqn.1986-03.com. Sun: 02: f057e3e0-2c3e-67ed-95c9-810a76090be print current session situation iscsiadm-M session-P 3 [email protected] ~] # Iscsiadm-M session-P 3 iSCSI transport class version 2.0-870 version 6.2.0-873.2.el6 target: iqn.1986-03.com. sun: 02: f057e3e0-2c3e-67ed-95c9-810a76090bed current Portal: 10.182.69.161: 3260,2 persistent Portal: 10.182.69.161: 3260,2 ********* interface: * ******** iface name: Default iface transport: TCP iface initiatorname: iqn.1988-12.com. ORACLE: c61728d6c927 iface IPaddress: 10.182.71.184 iface hwaddress: iface netdev: Sid: 1 iSCSI connection state: logged in iSCSI session state: logged_in internal iscsid session state: no change ********* timeouts: ********* recovery Timeout: 120 target reset Timeout: 30 Lun reset Timeout: 30 abort Timeout: 15 * chap: * Username: Password: * username_in: password_in: * ****************************** negotiated iSCSI Params: * ********************* headerdigest: None datadigest: None maxrecvdatasegmentlength: 262144 maxxmitdatasegmentlength: 32768 firstburstlength: 65536 maxburstlength: 1048576 immediatedata: Yes initialr2t: Yes maxoutstandingr2t: 1 ************************ Attached SCSI devices: * ********************** host number: 3 state: Running scsi3 channel 00 ID 0 Lun: 0 Attached SCSI disk SDB state: Running scsi3 channel 00 ID 0 Lun: 1 Attached SCSI disk SDC state: Running through fdisk-l you can also see that the system has recognized the new disk
ISCSI initiator Configuration