Centos/linux connecting an iSCSI disk array

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.