How To Configure Multipath On Enterprise Linux 6
How To Configure Multipath On Enterprise Linux 6
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
SelectLanguage
Enterprise Solutions
OurcharteristodeliversolutionsthatsimplifyITbyprovidingdatabasesolutions,
customdevelopment,dynamicdatacenters,flexiblecomputing,highavailability,
highperformancecomputing,andvirtualizationsolutions.
Applies to:
This article provides a description, along with best practices, on how to configure multipath devices on Enterprise Linux 6.x for Dell Compellent Storage
Center. This includes:
How to discover Compellent multipath volumes?
How to configure the Compellent multipath devices using devicemapper?
Recommended host bus adapter (HBA) settings
Setup the Compellent Storage as per the Compellent SAN Connectivity guide which includes the best practices to configure the controllers, enclosures,
http://en.community.dell.com/techcenter/enterprisesolutions/w/oracle_solutions/4983.howtoconfiguremultipathonenterpriselinux6xfordellcompellentstorage
1/8
5/6/2015
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
front end and the backend HBA ports. The CTSC040 & SC8000 Connectivity Guide can be accessed at http://kc.compellent.com
Discovering Compellent multipath volumes:
This section helps to determine the Storage Center volume that correlates to a specific Linux device. The following Linux commands and tools can be
used to discover and identify the Compellent volumes:
1. Discovering the new volumes: Discover a volume from the host by scanning the Fibre Channel (FC) HBAs using the below command:
# echo " " >> /sys/class/scsi_host/host0/scan
Note: For multipath volumes, each HBA with an active path to the Storage Center will need to be rescanned. Each adapter can be found in
/sys/class/scsi_host/host0/ where host0 is replaced by each individual HBA descriptor.
The discovery information of new volumes can be seen in dmesg output as below.
SCSI device sdf: 587202560 512byte hdwr sectors (300648 MB)
sdf: Write Protect is off
sdf: Mode Sense: 87 00 00 00
SCSI device sdf: drive cache: write through
SCSI device sdf: 587202560 512byte hdwr sectors (300648 MB)
sdf: Write Protect is off
sdf: Mode Sense: 87 00 00 00
SCSI device sdf: drive cache: write through
sdf: unknown partition table
sd 0:0:3:15: Attached scsi disk sdf
sd 0:0:3:15: Attached scsi generic sg13 type 0
http://en.community.dell.com/techcenter/enterprisesolutions/w/oracle_solutions/4983.howtoconfiguremultipathonenterpriselinux6xfordellcompellentstorage
2/8
5/6/2015
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
2. Identifying the volumes: Identify the Compellent Storage volumes and correlate to a specific Linux device using the tools below.
lsscsi: lsscsi is a tool that parses information from the /proc and /sys virtual file systems into a simple human readable output. This tool is present in the
Linux 6 base repository which can be installed using the Yum package manager.
# lsscsi
The above output shows eight drives from the Storage Center. The first column above shows the [host:channel:target:lun] designation for the volume.
The first number corresponds to the local HBA hostX that the volume is mapped to. Channel is the SCSI bus address which will always be zero. The third
number correlates to the Storage Center front end ports (targets). The last number is the LUN that the volume is mapped on.
/proc/scsi/scsi: The luns and targets information can also be found in /proc/scsi/scsi file if lsscsi is not installed.
# cat /proc/scsi/scsi
3/8
5/6/2015
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
scsi_id: scsi_id can be used to report the World Wide Identifier (WWID) of a volume and is available in all base installations. This WWID can be matched
to the volume serial number reported in the Storage Center GUI for accurate correlation.
# scsi_id g u /block/sdd
36000d310000065000000000000000050
In the highlighted Serial number above, the first part of the WWID is Storage Centers unique ID, the middle part is made up of the controller number in
hex, and the last part is the serial number of the volume. To ensure correct correlation in environments with multiple Dell Compellent Storage Centers,
be sure to check the controller number as well.
http://en.community.dell.com/techcenter/enterprisesolutions/w/oracle_solutions/4983.howtoconfiguremultipathonenterpriselinux6xfordellcompellentstorage
4/8
5/6/2015
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
The only situation where the two numbers would not correlate is if a Copy Migrate had been performed. In this case, a new serial number is assigned on
the Storage Center side, but the old WWID must still be presented to the server so that the path to the server is not disrupted.
devicemapper1.02.779.el6.x86_64
devicemappermultipathlibs0.4.964.0.1.el6.x86_64
devicemappermultipath0.4.964.0.1.el6.x86_64
# scsi_id g u /block/sdd
36000d310000065000000000000000050
# scsi_id g u /block/sdd
36000d310000065000000000000000051
5/8
5/6/2015
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
blacklist_exceptions {
wwid "36000d310000065000000000000000050"
wwid "36000d310000065000000000000000051"
}
2. Create an alias in the multipaths section
multipaths {
multipath {
wwid <scsi_id of volume1>
alias alias_of_volume1
}
multipath {
wwid <scsi_id of volume2>
alias DATA
}
}
Note: The alias name DATA is used as an example. Similarly, additional multipath subsections can be added for all the volumes.
6/8
5/6/2015
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
# multipath ll
DATA (36000d31000ece2000000000000000050) dm2 COMPELNT,Compellent Vol
size=200G features='0' hwhandler='0' wp=rw
`+ policy='roundrobin 0' prio=1 status=active
| 7:0:0:1 sdb 8:16 active ready running
| 7:0:1:1 sdc 8:32 active ready running
| 8:0:0:1 sdd 8:32 active ready running
| 8:0:1:1 sde 8:32 active ready running
6. Start the multipath service upon boot using the command:
# chkconfig multipathd on
7/8
5/6/2015
HowtoconfiguremultipathonEnterpriseLinux6.xforDellCompellentStorage?OracleSolutionsEnterpriseSolutionsDellCommunity
0
Twitter
Share
Related Articles
How to configure multipath on Enterprise Linux 6.x for Dell Compellent Storage?
latest revision over 1 year ago by DELLNaveen I
http://en.community.dell.com/techcenter/enterprisesolutions/w/oracle_solutions/4983.howtoconfiguremultipathonenterpriselinux6xfordellcompellentstorage
8/8