以下列表来自Linux RHEL框。 我对以下的不一致感到困惑。
在这里,我们为多path绑定文件中的每个LUN定义了别名:
mpath0 36006016071602e0026025fa3eff2e111 mpath1 36006016071602e008cec8699eff2e111 mpath2 36006016071602e00485dffadeff2e111 mpath3 360060160b6502e00e63f011ab359e211
但是在这里我们有设备文件名的WWN和别名。 为什么混合?
ll /dev/mpath lrwxrwxrwx 1 root root 8 Sep 25 17:39 36006016071602e0026025fa3eff2e111 -> ../dm-15 lrwxrwxrwx 1 root root 8 Sep 25 17:39 36006016071602e0026025fa3eff2e111p1 -> ../dm-20 lrwxrwxrwx 1 root root 8 Sep 25 17:39 36006016071602e00485dffadeff2e111 -> ../dm-17 lrwxrwxrwx 1 root root 8 Sep 25 17:39 36006016071602e00485dffadeff2e111p1 -> ../dm-18 lrwxrwxrwx 1 root root 8 Sep 25 17:43 mpath1 -> ../dm-16 lrwxrwxrwx 1 root root 8 Sep 25 17:43 mpath1p1 -> ../dm-19 lrwxrwxrwx 1 root root 8 Jan 8 14:50 mpath3 -> ../dm-27
/etc/multipath.conf没有任何定义,会导致这一点。
服务多path重启(和启动/停止)已经执行。
multipath -ll mpath2 (36006016071602e00485dffadeff2e111) dm-17 DGC,VRAID [size=209G][features=1 queue_if_no_path][hwhandler=1 emc][rw] \_ round-robin 0 [prio=1][active] \_ 1:0:0:2 sdd 8:48 [active][ready] \_ round-robin 0 [prio=0][enabled] \_ 2:0:0:2 sdg 8:96 [active][ready] mpath1 (36006016071602e008cec8699eff2e111) dm-16 DGC,VRAID [size=55G][features=1 queue_if_no_path][hwhandler=1 emc][rw] \_ round-robin 0 [prio=1][active] \_ 1:0:0:1 sdc 8:32 [active][ready] \_ round-robin 0 [prio=0][enabled] \_ 2:0:0:1 sdf 8:80 [active][ready] mpath0 (36006016071602e0026025fa3eff2e111) dm-15 DGC,VRAID [size=9.0G][features=1 queue_if_no_path][hwhandler=1 emc][rw] \_ round-robin 0 [prio=1][active] \_ 2:0:0:0 sde 8:64 [active][ready] \_ round-robin 0 [prio=0][enabled] \_ 1:0:0:0 sdb 8:16 [active][ready] mpath3 (360060160b6502e00e63f011ab359e211) dm-27 DGC,VRAID [size=210G][features=1 queue_if_no_path][hwhandler=1 emc][rw] \_ round-robin 0 [prio=1][active] \_ 2:0:0:3 sdi 8:128 [active][ready] \_ round-robin 0 [prio=0][enabled] \_ 1:0:0:3 sdh 8:112 [active][ready]
其他系统是一致的:
ll /dev/mpath lrwxrwxrwx 1 root root 8 Dec 26 12:18 3600601601c902e000ef2100e1e3ee211 -> ../dm-15 lrwxrwxrwx 1 root root 8 Dec 26 12:18 36006016033902e007a63bd7820fce111 -> ../dm-14 lrwxrwxrwx 1 root root 8 Dec 26 12:18 36006016033902e00d2bee6bc1ffce111 -> ../dm-13 ll /dev/mpath lrwxrwxrwx 1 root root 8 Dec 26 18:47 3600601601c902e000ef2100e1e3ee211 -> ../dm-15 lrwxrwxrwx 1 root root 8 Dec 26 18:47 3600601601c902e00160c21202a07e211 -> ../dm-14 lrwxrwxrwx 1 root root 8 Dec 26 18:47 3600601601c902e003eedbf312a07e211 -> ../dm-13
提前致谢,
泽维尔
/ var / lib / multipath / bindings的默认位置。 / var是一个挂载点,红帽build议将其重定位到/ – 但我怀疑这是一个问题。 – XO01 1月11日在9:50
为什么你这么想? 例如,请参阅https://bugzilla.redhat.com/show_bug.cgi?id=357331可以将绑定文件设置为例如/etc/multipath.bindings(假定/ etc不是单独的文件系统)。 确保你已经安装了http://rhn.redhat.com/errata/RHBA-2008-0337.html 。
不知道这台机器上的pipe理历史logging,这个问题是由于系统中不正确地表示了LUN。 build议重启系统并解决问题。
lrwxrwxrwx 1 root root 8 Jan 15 15:44 36006016071602e0026025fa3eff2e111 -> ../dm-15 lrwxrwxrwx 1 root root 8 Jan 15 15:44 36006016071602e0026025fa3eff2e111p1 -> ../dm-21 lrwxrwxrwx 1 root root 8 Jan 15 15:44 36006016071602e00485dffadeff2e111 -> ../dm-17 lrwxrwxrwx 1 root root 8 Jan 15 15:44 36006016071602e00485dffadeff2e111p1 -> ../dm-19 lrwxrwxrwx 1 root root 8 Jan 15 15:44 36006016071602e008cec8699eff2e111 -> ../dm-16 lrwxrwxrwx 1 root root 8 Jan 15 15:44 36006016071602e008cec8699eff2e111p1 -> ../dm-20 lrwxrwxrwx 1 root root 8 Jan 15 15:44 36006016071602e00966edb05ab5de211 -> ../dm-18
坦克帮助大家