Install multipath in centos

Source: Internet
Author: User
Non-common hard disks, such as storage arrays, are mounted to servers, and many hard disks with identical capacities, such as/dev/sdbsdcsddsde, must be installed with the multipath service for normal use. 1. Pack. Yuminstall-ydevice-mapper-persistent-datadevice-mapper-multipathdevice-mapper-li

Non-general hard disks, such as storage arrays, are mounted to servers, and many hard disks with the same capacity are displayed, such as/dev/sdb sdc sdd sde. to use these hard disks normally, you must install the multipath service.

 

1. Pack.

Yum install-y device-mapper-persistent-data device-mapper-multipath device-mapper-libs device-mapper-event-libs device-mapper-multipath-libs device-mapper device- mapper-event

2. set service startup.

Chkconfig multipathd on

3. load modules.

Modprobe dm-multipath

Modprobe dm-round-robin

4. automatically generate the configuration file.

Mpathconf -- enable -- find_multipaths y -- with_module y -- with_chkconfig y

5. start the service.

(/Etc/init. d/multipathd status to check the service status. the status of the newly installed instance is definitely not enabled)

/Etc/init. d/multipathd start

6. after starting the service, you can view the wwid of the logical disk lun that the storage is allocated to the server.

More/etc/multipath/wwids

 

After fdisk-l, you can see this/dev/mapper/mpathb device, and you can operate it as a normal disk.

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.