iSCSI and Multipathing Deployment Documentation "Go" under CentOS 7

Source: Internet
Author: User

Deployment environment

Equipment: md3860i, R630, s4820t (production network), N2024 (Management Network)

Operating system: Centos 7

The address of the default management port: A control 192.168.129.101, B control 192.168.129.102.

The address of the management station is set in a 192.168.129.200 with them.

Management Station on MDSM

Creating arrays and volumes

▌ Download Modular Disk Storage Manager

Download link:http://www.dell.com/support/home/us/en/04/drivers/driversdetails?productcode=powervault-md3820i& Driverid;=rdm56

▌ put MDSM on the management station and found md3860i.

1. Create volume, right-click the capacity to use, select Create Disk Group

2. The following screen appears, click Next

3. Enter the name of the group, select the option that starts with manual (manual), and then select Next

4. Select the RAID level, press the Add button to move the hard drive to the right, then click Finish

5. Right-click unused capacity under the RAID group and select Create Virtual disk

6. Enter the size of the volume (New virtual disk capacity), enter the name of the volume (virtual disk name), virtual disk I/O characteristics type Select Linux, click Finish

Installing iSCSI services under CentOS

1. Install the iSCSI package:

[Email protected] ~]# yum-y install iscsi*

2. Start the iSCSI service:

[[Email protected] ~]# service iSCSI start #启动服务

[[email protected] ~]#/etc/init.d/iscsid status #查询服务是否已经启动iscsid (PID 1537) is running ...

[Email protected] ~]# chkconfig iscsid on #设置服务开机自启

3. Discover iSCSI Storage:

[[email protected] ~]# iscsiadm-m discovery-t st-p 192.168.8.34 (-P followed by md3860i iSCSI IP address), if 1 iSCSI ports per controller, enter two times the command.

4. Enter Validation:

input [[email protected] ~]# tree/var/lib/iscsi/Verification

/var/lib/iscsi/

|--ifaces

|--iSNS

|--nodes

| '--Iqn.2013-06.com.tianyun:san1

| '--192.168.8.34,3260,1

| '--Default

|--send_targets

| '--192.168.8.34,3260

| |--iqn.2013-06.com.tianyun:san1,192.168.8.34,3260,1,default-/var/lib/iscsi/nodes/iqn.2013-06.com.tianyun: san1/192.168.8.34,3260,1

| '--St_config

|--SLP

'--static

The information already in the directory (bold in bold place for the stored iqn)

Create the appropriate host and map

1. Under MDSM, under the Host Mappings tab, right-click Storage and select Define->host

2. Write to the Linux hostname (host name) and select Next (Next)

3. If the ISCIS device is found to be successful under CentOS, MDSM will automatically recognize the storage iSCSI IQN, select the Add button to append the discovered iSCSI iqn to the box below and select Next

4. Select Linux (DM-MP) and select Next (Next)

5. Last step you can select Shared or unshared mode, select Next

6. Select Done

7. Select the host and host group, enter the LUN number, select the volume that has already been created, and then select Add button mapping to map the volume to the host.

Find the volume and install it under CentOS

Multi-Path driver

▌ Log In storage

[Email protected] ~]# iscsiadm-m node-t iqn.2013-06.com.tianyun:san1-p 192.168.8.34-l

Logging in to [Iface:default, Target:iqn.2013-06.com.tianyun:san1, portal:192.168.8.34,3260] (multiple)

Login to [Iface:default, Target:iqn.2013-06.com.tianyun:san1, portal:192.168.8.34,3260] successful. (-T is the stored iqn number followed by-p followed by the IP address of the storage controller's iSCSI port)

▌ Installing the Multipath software

[email protected] ~]# Yum install device-mapper Device-mapper-multipath

[Email protected] ~]# touch/etc/multipath.conf

[Email protected] ~]# Mount–o loop dell_mdss_consolidated_rdvd_6_2_0_2.iso/mnt

(This disc is in Http://www.dell.com/support/home/us/en/04/drivers/DriversDetails?productCode

=POWERVAULT-MD3820I&DRIVERID;=RDM56 download)

[[email protected] ~]#/mnt/linux/dm/install_dm.sh #执行脚本, complete the automatic configuration multipath.conf

[Email protected] ~]# service MULTIPATHD Restart #重启多路径服务

[Email protected] ~]# chkconfig MULTIPATHD on #设置多路径服务器开机运行

[Email protected] ~]# Multipath–ll #搜寻多路径设备

Mpath0 (1iet_00010001) dm-2 Iscsi,storage1

[size=20g] [Features=0] [Hwhandler=0] [RW]

\_ round-robin 0 [prio=0][active]

\_ 3:0:0:1 SDB 8:16 [Active][ready]

\_ 4:0:0:1 SDC 8:32 [Active][ready]

[[email protected] ~]# Fdisk/dev/mapper/mpath0 #对多路径设备进行分区和格式化 and mount the partition.

Finally, if you need to start the process auto mount, you need to configure the Fstab file. When editing fstab, remember to add the parameter "_netdev" before defaults.

iSCSI and Multipathing Deployment Documentation "Go" under CentOS 7

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.