[dm-devel] RHEL 6: Missing /dev/mpath directory

Mike Snitzer snitzer at redhat.com
Fri May 6 17:47:45 UTC 2011


On Fri, May 06 2011 at  1:13pm -0400,
MOHAMMED FIRDOSH NASIM <firdosh.nasim at gmail.com> wrote:

> Hi,
> Apologies, as I am not sure whether my query fits into this mailing list. If
> not, then please direct me to the correct mailing list.
> 
> I have configured RHEL 6 X86_64 host and have enabled multipath. As per the
> DM Multipath documentation at "
> http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/DM_Multipath/mpath_devices.html#multipath_device_id",
> 
> 
> "When new devices are brought under the control of DM-Multipath, the new
> devices may be seen in three different places under the /dev directory:
> /dev/mapper/mpath*n*, /dev/mpath/mpath*n*, and /dev/dm-*n*. "
> 
> In my host I am seeing the devices only as /dev/dm-n and /dev/mapper/mpathx
> symlink to /dev/dm-n. I am not seeing directory /dev/mpath.
> ---------------------------- screen dump start ---------------------------
> [root at sped10 ~]# cat /etc/issue
> Red Hat Enterprise Linux Server release 6.0 (Santiago)
> Kernel \r on an \m
> 
> [root at sped10 ~]# uname -a
> Linux sped10 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64
> x86_64 x86_64 GNU/Linux
> [root at sped10 ~]# ls -l /dev/mapper/ | grep mpath
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpatha -> ../dm-7
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpathb -> ../dm-8
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathc -> ../dm-13
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpathd -> ../dm-6
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpathe -> ../dm-4
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathf -> ../dm-10
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpathg -> ../dm-5
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathh -> ../dm-12
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpathi -> ../dm-9
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathj -> ../dm-11
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpathk -> ../dm-2
> lrwxrwxrwx. 1 root root      7 May  6 22:34 mpathl -> ../dm-3
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathlp1 -> ../dm-16
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathm -> ../dm-15
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathmp1 -> ../dm-20
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathmp2 -> ../dm-21
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathmp3 -> ../dm-22
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathn -> ../dm-14
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathnp1 -> ../dm-17
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathnp2 -> ../dm-18
> lrwxrwxrwx. 1 root root      8 May  6 22:34 mpathnp3 -> ../dm-19
> [root at sped10 ~]# ls /dev/mpath
> ls: cannot access /dev/mpath: No such file or directory
> [root at sped10 ~]#
> 
> ---------------------------- screen dump end   ---------------------------
> 
> Am I missing something in configuring multipath? Please assist in this
> regard.

Seems we need to update the RHEL6 docs you referenced.

/dev/mpath/ namespace is no longer maintained (afaik it was a "feature"
of a udev rule.  But I could be mistaken.  Ben and/or others could
correct me if I'm wrong).

/dev/mapper/mpath* was always the preferred method of access (even when
/dev/mpath/* did exist) -- reason is it was always available regardless
of udev.




More information about the dm-devel mailing list