Centos/linux connecting iSCSI Magnetic Consolidation Columns
ISCSI: Internet Small computer System Interface
System environment: CentOS 6.5 Mini
Disk array: Lenovo EMC
ISCSI ip:192.168.100.201
First, install iSCSI
1: Verify that iSCSI is installed
# Rpm-qa|grep iSCSI
2: Install iSCSI (if not installed)
# yum-y Install iscsi-initiator*
3: Start iSCSI Service
(Run automatically after default system startup)
#/ETC/INIT.D/ISCSI Restart
4: Set Boot boot
# Chkconfig Iscsid on
Second, connecting the Magnetic consolidation column
1: Find the Magnetic consolidation column
# iscsiadm-m Discovery-t sendtargets-p 192.168.100.201:3260
192.168.100.201:3260,1 iqn.2009.eisoo.com:volume1
Note: 1:iscsiadm is a command-line-based iSCSI management tool that provides operations on iSCSI nodes, sessions, connections, and Discovery Records.
 2: Default iSCSI uses port 3260, so you can not add 3260 after the portal
2: Log in node (connect to the login disk array)
# iscsiadm-m node-t iqn.2009.eisoo.com:volume1-p 192.168.100.201:3260-l
3: Set automatic login at system startup
Span style= "COLOR: #3366ff" ># iscsiadm-m node–t iqn.2009.eisoo.com:volume1-p 192.168.100.201:3260--op update-n node.st Artup-v automatic
4: View all iSCSI connections
# iscsiadm-m session
5: View iSCSI storage
# fdisk-l
Execution fdisk-l will list all disks including iSCSI storage, This time we can take it as a normal disk to operate the
Third, other
1: View the IQN number of the iscsi-initiator on this machine
Note: Generally this IQN number needs to be added to the iSCSI disk array (the Red section indicates the IQN number shown)
# CAT/ETC/ISCSI/INITIATORNAME.ISCSI
Initiatorname=iqn.2009.eisoo.com:volume1
2: Logout node (disk array disconnected)
# iscsiadm-m Node–t iqn.1997-05.com.test:raid-p 192.168.100.201:3260–u
Centos/linux connecting an iSCSI disk array