All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Marzinski <bmarzins@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: persistent device names on rhel4
Date: Wed, 2 Aug 2006 18:08:47 -0500	[thread overview]
Message-ID: <20060802230847.GA14565@ether.msp.redhat.com> (raw)
In-Reply-To: <20060718133242.2043.qmail@web55703.mail.re3.yahoo.com>

On Tue, Jul 18, 2006 at 06:32:42AM -0700, lnx dm wrote:
> I am using multipathing on rhel4 u3 x86_64 with
> EVA4000 and HSV200 controller.
> 
> I had a few questions:
> 
> 1. lsmod shows the below modules 
> 
> dm_mirror              29017  0
> dm_round_robin          4929  1
> dm_multipath           21841  2 dm_round_robin
> dm_mod                 67457  9 dm_mirror,dm_multipath
> 
> Do need to insert "multipath" module also ?
> If yes then what it is for ?

The modules that you see in the lsmod should be all you need.
 
> without using multipath module I can see multiple
> paths in multipath -v2 -l output
> 
> 2. How do I ensure that the same device gets mounted
> across reboots ?
> I verified that across the reboots mpath6 refers to
> the same device, wwid is same for mpath6 across
> reboots

mpath6 will always point to the same device on that node.  If you have multiple
nodes using the same devices, and you want to make sure that they all use the
same multipath names, you can just copy the /var/lib/multipath/bindings file
from a node where the names are set up the way you want to the other nodes.
This file holds the WWID -> user_friendly_name bindings.

> # multipath -v2 -l
> mpath6 (3600805f300176640a435a927359c0003)
> [size=440 GB][features="0"][hwhandler="0"]
> \_ round-robin 0 [active]
>  \_ 2:0:0:1     sdag 66:0   [active][ready]
>  \_ 0:0:0:1     sda  8:0    [active][ready]
> 
> I have /dev/mapper/mpath6 in /etc/fstab and it works
> correctly.
> 
> # ls -l /dev/mpath/mpath6
> lrwxrwxrwx  1 root root 7 Jul 18 06:13
> /dev/mpath/mpath6 -> ../dm-6
> 
> What is the difference if I use /dev/dm-6 ?

There is now way to guarantee the /dev/dm-6 will always refer to the correct
device.

> which will be better ?

mpath6

> Thanks.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

      reply	other threads:[~2006-08-02 23:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 13:32 persistent device names on rhel4 lnx dm
2006-08-02 23:08 ` Benjamin Marzinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060802230847.GA14565@ether.msp.redhat.com \
    --to=bmarzins@redhat.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.