From: Erez Zilber <erezz@voltaire.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: Setting up a multipath device
Date: Thu, 04 May 2006 18:28:08 +0300 [thread overview]
Message-ID: <445A1D88.7030500@voltaire.com> (raw)
In-Reply-To: <20060504144915.GA2319@pundit>
Christophe Varoqui wrote:
>On Thu, May 04, 2006 at 05:08:41PM +0300, Erez Zilber wrote:
>
>
>>Hi,
>>
>>I'm new to device mapper and trying to set a multipath target:
>>
>>I'm connected to the same LUN over iSCSI in 2 paths:
>>
>>Here's the output of sg_map:
>>sg_map -i -x
>>/dev/sg0 3 0 0 0 0 /dev/sda DotHill SANnet II FC 411I
>>/dev/sg1 4 0 0 0 0 /dev/sdb DotHill SANnet II FC 411I
>>
>>I ran the following command:
>>multipath 2 round-robin 1 0 /dev/sda round-robin 1 0 /dev/sdb
>>
>>
>>
>Just start multipathd
>or run multipath without params
>
>
>
>>If I understand correctly, the 1st priority group contains /dev/sda. The
>>2nd priority group contains /dev/sdb. If /dev/sda fails, traffic should
>>automatically move to /dev/sdb. Is that right?
>>
>>Here's the out put of multipath -l:
>>
>>3600c0ff00000000007c1d121c397f503
>>[size=10 GB][features=0][hwhandler=0]
>>\_ round-robin 0 [prio=0][active]
>>\_ 3:0:0:0 sda 8:0 [active][undef]
>>\_ round-robin 0 [prio=0][enabled]
>>\_ 4:0:0:0 sdb 8:16 [active][undef]
>>
>>What does 8:0 & 8:16 mean? What is 3600c0ff00000000007c1d121c397f503?
>>
>>
>>
>8:0 & 8:16 are paths major:minor numbers
>3600c0ff00000000007c1d121c397f503 is the multipath name.
>consider activating the fancy naming option in the config file.
>
>
>
>>Now, assuming that what I did so far is ok, how do I use the multipath
>>device? Do I use /dev/sda (or /dev/sdb)?
>>
>>
>>
>You should use /dev/mapper/3600c0ff00000000007c1d121c397f503
>
>Regards,
>cvaroqui
>
>--
>dm-devel mailing list
>dm-devel@redhat.com
>https://www.redhat.com/mailman/listinfo/dm-devel
>
>
Thanks. It seems to work now. Anyway, I have some more questions:
1. Was it wrong to run 'multipath 2 round-robin 1 0 /dev/sda
round-robin 1 0 /dev/sdb'?
2. If I don't supply any parameters, how does the dm know which
devices are the same physical device (that /dev/sda & /dev/sdb are
the same physical device)?
3. How are the priority groups defined if no parameters are supplied?
4. What is the timeout for a device that has failed? When does the dm
move to the next priority group?
Thanks
--
____________________________________________________________
Erez Zilber | 972-9-971-7689
Software Engineer, Storage Team
Voltaire – _The Grid Backbone_
__
www.voltaire.com <http://www.voltaire.com/>
next prev parent reply other threads:[~2006-05-04 15:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-04 14:08 Setting up a multipath device Erez Zilber
2006-05-04 14:49 ` Christophe Varoqui
2006-05-04 15:28 ` Erez Zilber [this message]
2006-05-04 18:55 ` Christophe Varoqui
2006-05-07 14:01 ` Erez Zilber
2006-05-08 21:33 ` Christophe Varoqui
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=445A1D88.7030500@voltaire.com \
--to=erezz@voltaire.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.