LUN 设备文件名混合

LUN 设备文件名混合

以下列表来自 Linux RHEL 框。我对以下不一致之处感到有点困惑。

这里我们在多路径绑定文件中的每个 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 没有定义任何会导致这种情况的原因。service
multipathd restart(和 start/stop)已经执行。

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

提前致谢,
泽维尔

答案1

/var/lib/multipath/bindings 的默认位置。/var 是一个挂载点,Red Hat 建议将其重新定位到 /--,但我怀疑这不是一个问题。– 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已安装。

答案2

由于不知道这台机器的管理历史,该问题是由于 LUN 以不干净的方式从系统中消失而导致的。建议重新启动系统并解决了该问题。

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

感谢大家的帮助

相关内容