Linux multi-path refers to the connection between the host and the hard disk, and also includes the one-to-many path connection between the host and the network server. Virtualization of the disk is achieved through multi-path connections. So how do Linux systems configure multipathing? What are the steps to configure multipathing? This article will introduce you to everyone.
1, the installation package multipath:
device-mapper-1.02.67-2.el5
device-mapper-event-1.02.67.2. El5
device-mapper-multipath-0.4.7-48.el5
[root@RKDB01 Server]# rpm -ivh device-mapper-1.02.67-2.el5.x86_64. Rpm
warning: device-mapper-1.02.67-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing. . ###############################################################################
package device-mapper-1.02.67-2.el5.x86_64 is already installed
[root@RKDB01 Server]# rpm -ivh device-mapper-event-1.02.67-2.el5. X86_64.rpm
warning: device-mapper-event-1.02.67-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing. . ###############################################################################
package device-mapper-event-1.02.67-2.el5.x86_64 is already installed
[root@RKDB01 Server]# rpm -ivh device-mapper-multipath-0.4.7-48. El5.x86_64.rpm
warning: device-mapper-multipath-0.4.7-48.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing. . ###############################################################################
package device-mapper-multipath-0.4.7-48.el5.x86_64 is already installed
2, set boot, and check if the installation package is normal:
chkconfig -- Level 345 multipathd on
lsmod |
Grep dm_multipath
[root@RKDB01 Server]# chkconfig --level 345 multipathd on
[root@RKDB01 Server]# lsmod |
Grep dm_multipath
dm_multipath 58969 0
scsi_dh 42561 1 dm_multipath
dm_mod 102417 4 dm_mirror,dm_multipath,dm_raid45,dm_log
[root@RKDB01 Server]#
3, configure multipathd to make it work, edit /etc/multipath.conf, open the following content:
defaults {
udev_dir /dev
Polling_interval 10
selector “round-robin 0”
path_grouping_policy multibus
getuid_callout “/sbin/scsi_id -g -u -s /block/%n”< Br>
prio_callout none
path_checker readsector0
rr_min_io 100
max_fds 8192
rr_weight priorities
failback immediate
no_path_retry fail
user_friendly_names yes
}
blacklist {
wwid 26353900f02796769
devnode “^(ram|
Raw|
Loop|
Fd|
Md|
Dm-|
Sr|
Scd|
St)[0-9]*”
devnode “^hd[az]”
}
4, and close the following content
#blacklist {
# devnode “*”
#}
#defaults {
27 # user_friendly_names yes
28 #}
5. After completing the command, execute the following command to find the multipath:
[root@RKDB01 Server]# modprobe dm-multipath
[root@RKDB01 Server]# Multipath -F
[root@RKDB01 Server]# multipath dm-multipath
[root@RKDB01 Server]# multipath dm-round-robin
[root@RKDB01 Server ]# service multipathd restart
Shutting down the multipathd port monitor: [OK]
Starting the daemon multipathd: [OK]
[root@RKDB01 Server]# multipath -v2
[root@RKDB01 Server]# multipath -v2
[root@RKDB01 Server]# multipath -ll
mpath1 (3600d02310000011b16a 5d57c6a1bd99a) dm-0 TOYOU, NetStor_iSUM510
[size=3.3T][features=0][hwhandler=0][rw]
\\_ round-robin 0 [prio=2] [ena bled]
\\_ 1:0:0:0 sdb 8:16 [failed][ready]
\\_ 1:0:1:0 sdc 8:32 [failed ][ready]
[root@RKDB01 Server]#
Previous12Next Total 2 Pages
sftp is a command in the Linux system. The number of users is not much, so many users do not know th
Some users have installed Ubuntu and Win10 dual system on the computer, under normal circumstances U
Although the Linux system is much safer than the Windows system, it is a good progr
In Linux, sonar is mainly used to manage code quality, and two important parameters
Frequently Asked Questions for Linux Servers and Firewalls
Kali Linux installation Google Chrome common problems and solutions
Amazon Amazon AWS Access Key Creation Tutorial
Linux ssh connection prompts The authenticity of how to remove?
Linux system novice common command introduction
Steps to back up Ubuntu system
Linux installation of Nodejs three methods
How to use Linux to periodically delete expired files using the command
Linux yum prompts Loaded plugins error?
Techniques for setting up multiple network cards as virtual network cards under Linux
How to generate reports using Linux using the Sosreport command
Windows7 new system choose or wait and see
Where is the win7 system camera function
Task Manager can not open how to do
Ingeniously solve the Win7 system restore property page error trick
How does Kingsoft Drug Blaster smash files?
Win8 how to upgrade Win10? win8/win8.1 upgrade win10 system Raiders diagram
What to do if there is no sound in the air.
WinXP folder window in the upper left corner of the back button click does not respond how to solve?