Redhat – How to make sure RHEL will see multipath disks after a reboot

multipathredhat

We are using RHEL, but unfortunately there are issues with multipathing.

It seems not all SAN disks are automatically seen after a reboot. A service multipath reload is required in order for the OS to be able to see the disks.

root@test-01 ~]# ls -al /dev/mapper/ total 0
drwxr-xr-x.  2 root root     480 May 31 13:17 .
drwxr-xr-x. 21 root root    5500 May 31 13:20 ..
crw-rw----.  1 root root  10, 58 May 31 13:17 control
brw-rw----.  1 root disk 253, 16 May 31 13:17 TS_DATA_DISK000p1 
brw-rw----.  1 root disk 253, 14 May 31 13:17 TS_DATA_DISK001p1
brw-rw----.  1 root disk 253,  7 May 31 13:17 TS_DATA_DISK002p1 
brw-rw----.  1 root disk 253,  9 May 31 13:17 TS_DATA_DISK003p1
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK000p1 -> ../dm-15
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK001p1 -> ../dm-17
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK002p1 -> ../dm-22
lrwxrwxrwx.  1 root root       7 May 31 13:17 TS_BEL_DISK003 -> ../dm-5
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_BEL_DISK003p1 -> ../dm-12
brw-rw----.  1 root disk 253, 23 May 31 13:17 TS_JPG_DISK000p1
brw-rw----.  1 root disk 253, 18 May 31 13:17 TS_JPG_DISK001p1
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_JPG_DISK002 -> ../dm-21
lrwxrwxrwx.  1 root root       8 May 31 13:17 TS_JPG_DISK002p1 -> ../dm-24
lrwxrwxrwx.  1 root root       8 May 31 13:17 mpathb -> ../dm-25
lrwxrwxrwx.  1 root root       8 May 31 13:17 mpathbp1 -> ../dm-26
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg00-lvhome -> ../dm-30
lrwxrwxrwx.  1 root root       7 May 31 13:17 vg00-lvroot -> ../dm-1
lrwxrwxrwx.  1 root root       7 May 31 13:17 vg00-lvswap -> ../dm-0
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg00-lvtmp -> ../dm-29
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg00-lvvar -> ../dm-28
lrwxrwxrwx.  1 root root       8 May 31 13:17 vg_app-lv_d01_app -> ../dm-27
[root@test-01 ~]# service multipathd reload
Reloading multipathd:                                      [  OK  ]
[root@test-01 ~]# ls -al /dev/mapper total 0
drwxr-xr-x.  2 root root    680 May 31 13:22 .
drwxr-xr-x. 21 root root   5500 May 31 13:22 ..
crw-rw----.  1 root root 10, 58 May 31 13:17 control
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_DATA_DISK000 -> ../dm-10
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_DATA_DISK000p1 -> ../dm-16
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK001 -> ../dm-6
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_DATA_DISK001p1 -> ../dm-14
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK002 -> ../dm-3
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK002p1 -> ../dm-7
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK003 -> ../dm-4
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_DATA_DISK003p1 -> ../dm-9
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_BEL_DISK000 -> ../dm-8
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK000p1 -> ../dm-15
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK001 -> ../dm-11
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK001p1 -> ../dm-17
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK002 -> ../dm-19
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK002p1 -> ../dm-22
lrwxrwxrwx.  1 root root      7 May 31 13:22 TS_BEL_DISK003 -> ../dm-5
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_BEL_DISK003p1 -> ../dm-12
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK000 -> ../dm-20
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK000p1 -> ../dm-23
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK001 -> ../dm-13
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK001p1 -> ../dm-18
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK002 -> ../dm-21
lrwxrwxrwx.  1 root root      8 May 31 13:22 TS_JPG_DISK002p1 -> ../dm-24
lrwxrwxrwx.  1 root root      8 May 31 13:22 mpathb -> ../dm-25
lrwxrwxrwx.  1 root root      8 May 31 13:22 mpathbp1 -> ../dm-26
lrwxrwxrwx.  1 root root      7 May 31 13:22 d01 -> ../dm-2
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg00-lvhome -> ../dm-30
lrwxrwxrwx.  1 root root      7 May 31 13:17 vg00-lvroot -> ../dm-1
lrwxrwxrwx.  1 root root      7 May 31 13:17 vg00-lvswap -> ../dm-0
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg00-lvtmp -> ../dm-29
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg00-lvvar -> ../dm-28
lrwxrwxrwx.  1 root root      8 May 31 13:17 vg_app-lv_d01_app -> ../dm-27
[root@test-01 ~]#

How to make sure RHEL will see multipath disks after a reboot without having to manually run service multipathd reload?

Best Answer

If you have made changes to /etc/multipath.conf without re-creating initrd you can always try to re-create your initrd. That and making sure that the multipathd daemon is running (chkconfig multipathd on) should be sufficient for most cases I've seen.

I don't know what storage you are using, but if the storage/HBA module gets loaded after multipathd initially starts, then that could possibly be an issue too.