All of lore.kernel.org
 help / color / mirror / Atom feed
* about multipath path group
@ 2009-07-22  6:49 杨伟
  2009-08-03 19:31 ` Benjamin Marzinski
  0 siblings, 1 reply; 3+ messages in thread
From: 杨伟 @ 2009-07-22  6:49 UTC (permalink / raw)
  To: dm-devel


[-- Attachment #1.1: Type: text/plain, Size: 463 bytes --]

Dear all:

Q1: In RHEL 5.2, make and make install multipath-tools-0.4.8, why does not
command "multipath -p" work well?

Q2: In RHEL 5.2, configure path group policy as failover or group_by_prio,
and then create path-prio.sh to set the priority of paths. however, the path
group with the highest priority is not always active, if I don't recreate
the multipath devices. why is that? how I make the path group with the
highest priority is active on-line?

William

[-- Attachment #1.2: Type: text/html, Size: 502 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: about multipath path group
  2009-07-22  6:49 about multipath path group 杨伟
@ 2009-08-03 19:31 ` Benjamin Marzinski
  2009-08-04 10:08   ` 杨伟
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Marzinski @ 2009-08-03 19:31 UTC (permalink / raw)
  To: device-mapper development

On Wed, Jul 22, 2009 at 02:49:39PM +0800, 杨伟 wrote:
>    Dear all:
> 
>    Q1: In RHEL 5.2, make and make install multipath-tools-0.4.8, why does not
>    command "multipath -p" work well?

Are you using the upstream or the RHEL code.  multipath -p does work in
the RHEL code, although, if you run multipath again, or reconfigure
multipathd, it will notice that your devices aren't set up the way the
config says they should be, and it will change them back.  In general,
multipath -p is pretty worthless, you should change the configuration to
use the path grouping policy you want.

> 
>    Q2: In RHEL 5.2, configure path group policy as failover or group_by_prio,
>    and then create path-prio.sh to set the priority of paths. however, the
>    path group with the highest priority is not always active, if I don't
>    recreate the multipath devices. why is that? how I make the path group
>    with the highest priority is active on-line?

By default, multipath is configured for manual failback.  This means
that multipathd won't switch from the current active pathgroup to a
higher priority one, unless you manually force it to do so. The
easiest way to do this is by running

# service multipathd reload  or
# multipathd -k"reconfigure"

adding 

defaults {
	<other_defaults>
	failback immediate
}

to /etc/multipath.conf will make multipath immdiately switch to the
highest priority path group.

-Ben

> 
>    William

> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: about multipath path group
  2009-08-03 19:31 ` Benjamin Marzinski
@ 2009-08-04 10:08   ` 杨伟
  0 siblings, 0 replies; 3+ messages in thread
From: 杨伟 @ 2009-08-04 10:08 UTC (permalink / raw)
  To: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 1901 bytes --]

Thanks very much! your comments is helpful to me


2009/8/4 Benjamin Marzinski <bmarzins@redhat.com>

> On Wed, Jul 22, 2009 at 02:49:39PM +0800, 杨伟 wrote:
> >    Dear all:
> >
> >    Q1: In RHEL 5.2, make and make install multipath-tools-0.4.8, why does
> not
> >    command "multipath -p" work well?
>
> Are you using the upstream or the RHEL code.  multipath -p does work in
> the RHEL code, although, if you run multipath again, or reconfigure
> multipathd, it will notice that your devices aren't set up the way the
> config says they should be, and it will change them back.  In general,
> multipath -p is pretty worthless, you should change the configuration to
> use the path grouping policy you want.
>
> >
> >    Q2: In RHEL 5.2, configure path group policy as failover or
> group_by_prio,
> >    and then create path-prio.sh to set the priority of paths. however,
> the
> >    path group with the highest priority is not always active, if I don't
> >    recreate the multipath devices. why is that? how I make the path group
> >    with the highest priority is active on-line?
>
> By default, multipath is configured for manual failback.  This means
> that multipathd won't switch from the current active pathgroup to a
> higher priority one, unless you manually force it to do so. The
> easiest way to do this is by running
>
> # service multipathd reload  or
> # multipathd -k"reconfigure"
>
> adding
>
> defaults {
>        <other_defaults>
>        failback immediate
> }
>
> to /etc/multipath.conf will make multipath immdiately switch to the
> highest priority path group.
>
> -Ben
>
> >
> >    William
>
> > --
> > dm-devel mailing list
> > dm-devel@redhat.com
> > https://www.redhat.com/mailman/listinfo/dm-devel
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>

[-- Attachment #1.2: Type: text/html, Size: 2816 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-04 10:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22  6:49 about multipath path group 杨伟
2009-08-03 19:31 ` Benjamin Marzinski
2009-08-04 10:08   ` 杨伟

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.