Linux multi-path usage and introduction

Source: Internet
Author: User
Linux multi-path usage and introduction-Linux Enterprise Application-Linux server application information. The following is a detailed description. By kent from: http://kentfang.blog.sohu.com/

Introduction to the multi-path Software
A common computer host is attached to a bus by a hard disk. This is a one-to-one relationship. In a SAN Environment composed of optical fibers, the host and storage are connected through an optical fiber switch, which forms a many-to-many relationship. That is to say, you can select multiple paths from the host to the storage. IO between the host and storage can be selected by multiple paths, such:

As shown in, each host can go through several different paths to the corresponding storage. If they are used at the same time, how can I/O traffic be allocated? What should I do if one of the paths breaks down? From the operating system perspective, the operating system considers each path as a physical disk, but it actually only leads to a different path to the same physical disk, in this way, the user is confused. The multi-path software came into being to solve the above problems. The main function of multi-path is to work with the storage device to implement the following functions:

1. Failover and recovery

2. Load Balancing of IO traffic

3. Disk Virtualization

Because the multi-path software needs to be used together with the storage, different vendors provide different versions based on different operating systems. In addition, some vendors, software and hardware are not sold together. If you want to use multi-path software, you may need to purchase license from the vendor. For example, if EMC is based on multi-path software in linux, it needs to separately purchase license. Fortunately, the 2.6 kernel of RedHat and Suse comes with free multi-path software packages and can be used for free. It is also a common package that supports devices of most storage vendors, even some vendors that are not famous can support and run well by slightly modifying the configuration file.

The configuration and installation of the multi-path software in Linux, as well as some detailed operations (the following operations are all performed under Suse10 SP1)

Use of multi-path in Linux

Composition of multi-path software packages
Device-mapper-1.02.13-6.9.i586.rpm

The software runs at the underlying layer, mainly for device virtualization and ing.

Multipath-tools-0.4.7-34.18.i586.rpm, this package can be in

Multi-path management and monitoring tools mainly detect and manage the path status

Install the multi-path Software Package
Rpm? Ivh device-mapper-1.02.13-6.9.i586.rpm
Rpm? Ivh multipath-tools-0.4.7-34.18.i586.rpm

After the installation is complete, run the modprobe dm_multipath command to load the corresponding module. You can use lsmod | grep dm_multipath to check whether the installation is normal.

Configuration File Modification and Creation
The next step is to create a configuration file for multipath. conf, which will not be created automatically after installation. However, a template can be used. You can use the following command to create a multipath. conf file.

Cp/usr/share/doc/packages/multipath-tools/multipath. conf. synthetic/etc/multipath. conf

Add the following configuration to the last part of the file:
QUOTE:

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.