我们正在使用RHEL,但不幸的是,multipathing存在问题。
似乎并非所有SAN磁盘都是在重新启动后自动看到的。为了使操作系统能够看到磁盘,需要一个服务多路径重新加载。
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 ~]#如何确保RHEL在重新启动后看到多路径磁盘,而不必手动运行服务multipath重新加载?
发布于 2013-06-03 11:46:16
如果您在没有重新创建initrd的情况下对/etc/multipath.conf进行了更改,则始终可以尝试重新创建initrd。并确保多路径守护进程(chkconfig multipathd on)在运行,对于我所见过的大多数情况来说都是足够的。
我不知道您使用的是哪个存储,但是如果存储/HBA模块在multipathd最初启动后加载,那么这可能也是一个问题。
https://serverfault.com/questions/512778
复制相似问题