Linux under Disk Multipath

Source: Internet
Author: User

Sometimes we in the Linux system through the "fdisk-l" command, you will see the/dev/mapper/xxxxx disk, which is likely to be a logical volume, or the configuration of multipath, you can first through "lvdisplay" how to see, then the description is a logical volume, if not , then is the disk multipath configuration, under the Multipath configuration, generally/dev/mapper/xxxx link to a disk/dev/dm-x block device files, we can see/etc/multipath.conf, you will find the relevant multipath configuration, or the/etc/ There is a wwids file under the Multipath path, which is the file that configures the Multipath disk name, which can be managed by the Multipath command:

/ETC/INIT.D/MULTIPATHD Start #开启mulitipath服务
# multipath-f #删除现有路径
# Multipath-v2 #格式化路径
# Multipath-ll #查看多路径

Installation:

Yum–y Install Device-mapper Device-mapper-multipath

Modprobe Dm-multipath
# modprobe Dm-round-robin
# service MULTIPATHD Start
# MULTIPATH–V2

Configuration:

vi/etc/multipath.conf file

Blacklist {

Devnode "^SDA"

}

Defaults {

User_friendly_names Yes

Path_grouping_policy Multibus

failback Immediate

No_path_retry fail

}


This article is from the "Technology Change Destiny" blog, please be sure to keep this source http://linux1989.blog.51cto.com/9347464/1920383

Linux under Disk Multipath

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.