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.