One, multi-path
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/79/02/wKioL1aE6J-hnoGrAACJ8icofiE582.png "title=" 2540. PNG "alt=" Wkiol1ae6j-hnograacj8icofie582.png "/>
Two, multi-path solution problem:
1, prevent host HBA card failure
2, prevention of magnetic array controller failure
3, can use multiple paths together to improve the IOPS capacity of the magnetic array
Third, the Linux to multi-path solution
Linux is solved by the following three things:
[Email protected] dev]# Rpm-qa|grep Mapper
Device-mapper-1.02.67-2.el5
Device-mapper-multipath-0.4.7-48.el5
Device-mapper-event-1.02.67-2.el5
Configuration file:
[Email protected] ~]# ls-l/etc/multipath.conf
-rw-r--r--1 root root 3626 Mar 2014/etc/multipath.conf
Configuration essentials:
1), the blacklist configuration internal hard disk is not managed by multi-path software, such as:
Blacklist {
Devnode "^SDA"
}
2), in order to manage the need, it is best to give each LUN an alias, such as:
multipaths {
multipath {
Wwid 36f01faf000ec60a20000030653317ad3
Alias Mysql_data
Path_grouping_policy failover
}
multipath {
Wwid 36f01faf000ec60960000025353317a34
Alias backup
Path_grouping_policy failover
}
}
3), pay attention to the use of multipath (that is, the above path_grouping_policy)
There are two options multipath: Load Balancing
Failover: Main Preparation
4), speed test and strategy testing
Speed:
#dd If=/dev/zero of=/dev/mapper/data1 bs=8192 count=1000
1000+0 Records in
1000+0 Records out
8192000 bytes (8.2 MB) copied, 0.050715 seconds, 162 MB/s
Strategy:
Unplug the fiber from the HBA card to see if the host access to the magnetic array is affected.
5), the business to use/dev/mapper under the generation of equipment, can not be used to start those SD.
For example, when installing an Oracle RAC, set up an ASM disk with LUN partitioning:
/usr/sbin/oracleasm Createdisk Asmdisk1/dev/mapper/ora_datap1
If the built-in hard drive is SDA, we have 2 LUNs in the magnetic array, we see sdb,sdc,sde,sdf four things, and/dev/dm-0,/dev/dm-1, which can't be taken to mount.
Iv. Solaris-to-multipath solutions
In general, home host + Home Magnetic array, configuration is very simple. Under the solaris10+2540m2 magnetic Array, a single command can handle Multipath:
#stmsboot-D fp-e
This command will allow you to indent multiple paths to 1
V. About LUN31
After configuring our own LUNs with the management software of the magnetic array, we will find a LUN31, corresponding to the following dm-2, this is called Universal Xport, is used to manage the magnetic array of a thing, ignore it.
[Email protected] dev]# Multipath-ll
Backup (36f01faf000ec60960000025353317a34) dm-1 DELL,MD36XXF
[size=838g] [Features=0] [Hwhandler=0] [RW]
\_ round-robin 0 [prio=0][active]
\_ 7:0:0:1 SDC 8:32 [Active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 8:0:0:1 SDF 8:80 [Active][ready]
Mysql_data (36f01faf000ec60a20000030653317ad3) dm-0 DELL,MD36XXF
[size=838g] [Features=0] [Hwhandler=0] [RW]
\_ round-robin 0 [prio=0][active]
\_ 7:0:0:0 SDB 8:16 [Active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 8:0:0:0 SDE 8:64 [Active][ready]
Mpath3 (36f01faf000ec60960000017d53257e70) dm-2 dell,universal Xport
[size=20m] [Features=0] [Hwhandler=0] [RW]
\_ round-robin 0 [prio=0][enabled]
\_ 7:0:0:31 SDD 8:48 [Failed][ready]
\_ 8:0:0:31 SDG 8:96 [Failed][ready]
Six, Linux multipath support for the magnetic array
Seemingly mainstream magnetic array are supported, the author tried to have HP P2000 G3 and Dell MD3600F, if not supported, need to install the magnetic array manufacturers own multipath configuration software.
This article is from the "Memory Fragments" blog, so be sure to keep this source http://weikle.blog.51cto.com/3324327/1730505
Multiple paths for storing literacy