* General and configuration questions
@ 2010-05-28 21:16 Allen, Jack
2010-05-28 22:13 ` Malahal Naineni
0 siblings, 1 reply; 4+ messages in thread
From: Allen, Jack @ 2010-05-28 21:16 UTC (permalink / raw)
To: device-mapper development
[-- Attachment #1.1: Type: text/plain, Size: 2219 bytes --]
Hello:
I have a system with 2 paths to the SAN which is HITACHI HP. The
output of multipath -ll is:
mpath2 (360060e8005491000000049100000700a) dm-1 HP,OPEN-V
[size=10G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 3:0:0:1 sdc 8:32 [active][ready]
\_ 4:0:0:1 sde 8:64 [active][ready]
mpath1 (360060e80054910000000491000007003) dm-0 HP,OPEN-V
[size=10G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 3:0:0:0 sdb 8:16 [active][ready]
\_ 4:0:0:0 sdd 8:48 [active][ready]
If I run multipathd -k and do show config, there is a lot of out
put but I think the key things are:
defaults {
verbosity 2
polling_interval 10
path_grouping_policy multibus
failback 5
rr_min_io 10
no_path_retry 5
user_friendly_names yes
bindings_file /etc/multipath.bindings
}
devices {
LOTS OF DEVICE ENTRIES.
device {
vendor (HITACHI|HP)
product OPEN-.*
path_checker tur
failback immediate
no_path_retry 12
rr_min_io 1000
}
}
The device entry for the SAN has rr_min_io set to 1000. I added
rr_min_io 10 in the default, but per the man page for multipath.conf
entries in the defaults will only be used if they do not appear other
places.
Q1) If I want to over ride the rr_min_io value in the devices/device
section can I just add a devices/device section in /etc./multipath.conf
with the things I want to change or do I have to duplicate everything
that is in the built-in devices/device entry?
Q2) How can I determine the best value for rr_min_io?
I assume whom ever added the HITACHI|HP devices/device built-in
entry decide on the value
of 1000 for a reason. Maybe they did benchmarks or maybe they
just copied another entry
that was some what like what they needed and changed the vendor
and product.
I am sure I will have more questions depending on the answers I get to
these questions.
-----
Jack Allen
[-- Attachment #1.2: Type: text/html, Size: 5244 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: General and configuration questions
2010-05-28 21:16 General and configuration questions Allen, Jack
@ 2010-05-28 22:13 ` Malahal Naineni
2010-05-28 23:23 ` Allen, Jack
0 siblings, 1 reply; 4+ messages in thread
From: Malahal Naineni @ 2010-05-28 22:13 UTC (permalink / raw)
To: dm-devel
Allen, Jack [Jack.Allen@mckesson.com] wrote:
> Hello:
> I have a system with 2 paths to the SAN which is HITACHI HP. The
> output of multipath -ll is:
>
> mpath2 (360060e8005491000000049100000700a) dm-1 HP,OPEN-V
> [size=10G][features=1 queue_if_no_path][hwhandler=0][rw]
> \_ round-robin 0 [prio=2][active]
> \_ 3:0:0:1 sdc 8:32 [active][ready]
> \_ 4:0:0:1 sde 8:64 [active][ready]
> mpath1 (360060e80054910000000491000007003) dm-0 HP,OPEN-V
> [size=10G][features=1 queue_if_no_path][hwhandler=0][rw]
> \_ round-robin 0 [prio=2][active]
> \_ 3:0:0:0 sdb 8:16 [active][ready]
> \_ 4:0:0:0 sdd 8:48 [active][ready]
>
> If I run multipathd -k and do show config, there is a lot of out
> put but I think the key things are:
>
> defaults {
> verbosity 2
> polling_interval 10
> path_grouping_policy multibus
> failback 5
> rr_min_io 10
> no_path_retry 5
> user_friendly_names yes
> bindings_file /etc/multipath.bindings
> }
>
> devices {
> LOTS OF DEVICE ENTRIES.
>
> device {
> vendor (HITACHI|HP)
> product OPEN-.*
> path_checker tur
> failback immediate
> no_path_retry 12
> rr_min_io 1000
> }
> }
>
> The device entry for the SAN has rr_min_io set to 1000. I added
> rr_min_io 10 in the default, but per the man page for multipath.conf
> entries in the defaults will only be used if they do not appear other
> places.
>
> Q1) If I want to over ride the rr_min_io value in the devices/device
> section can I just add a devices/device section in /etc./multipath.conf
> with the things I want to change or do I have to duplicate everything that
> is in the built-in devices/device entry?
I have seen some values not specified in the multipath.conf
devices/device section are picked up from the "default" table (don't
remember if this was internal default table or config default table)
instead of "controller table" (aka built-in devices/device entry
values). So, the best is to duplicate everything from the internal
controller table.
> Q2) How can I determine the best value for rr_min_io?
> I assume whom ever added the HITACHI|HP devices/device built-in
> entry decide on the value
> of 1000 for a reason. Maybe they did benchmarks or maybe they just
> copied another entry
> that was some what like what they needed and changed the vendor
> and product.
I doubt if they carried out a benchmark, but possible! At one time the
default used to be 1000. I think it is 1 now with request based
multipath.
Thanks, Malahal.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: General and configuration questions
2010-05-28 22:13 ` Malahal Naineni
@ 2010-05-28 23:23 ` Allen, Jack
2010-05-29 1:46 ` Malahal Naineni
0 siblings, 1 reply; 4+ messages in thread
From: Allen, Jack @ 2010-05-28 23:23 UTC (permalink / raw)
To: device-mapper development
-----Original Message-----
From: dm-devel-bounces@redhat.com [mailto:dm-devel-bounces@redhat.com]
On Behalf Of Malahal Naineni
Sent: Friday, May 28, 2010 6:13 PM
To: dm-devel@redhat.com
Subject: Re: [dm-devel] General and configuration questions
Allen, Jack [Jack.Allen@mckesson.com] wrote:
> Hello:
> I have a system with 2 paths to the SAN which is HITACHI
HP. The
> output of multipath -ll is:
>
> mpath2 (360060e8005491000000049100000700a) dm-1 HP,OPEN-V
> [size=10G][features=1 queue_if_no_path][hwhandler=0][rw]
> \_ round-robin 0 [prio=2][active]
> \_ 3:0:0:1 sdc 8:32 [active][ready]
> \_ 4:0:0:1 sde 8:64 [active][ready]
> mpath1 (360060e80054910000000491000007003) dm-0 HP,OPEN-V
> [size=10G][features=1 queue_if_no_path][hwhandler=0][rw]
> \_ round-robin 0 [prio=2][active]
> \_ 3:0:0:0 sdb 8:16 [active][ready]
> \_ 4:0:0:0 sdd 8:48 [active][ready]
>
> If I run multipathd -k and do show config, there is a lot
of out
> put but I think the key things are:
>
> defaults {
> verbosity 2
> polling_interval 10
> path_grouping_policy multibus
> failback 5
> rr_min_io 10
> no_path_retry 5
> user_friendly_names yes
> bindings_file /etc/multipath.bindings
> }
>
> devices {
> LOTS OF DEVICE ENTRIES.
>
> device {
> vendor (HITACHI|HP)
> product OPEN-.*
> path_checker tur
> failback immediate
> no_path_retry 12
> rr_min_io 1000
> }
> }
>
> The device entry for the SAN has rr_min_io set to 1000. I
added
> rr_min_io 10 in the default, but per the man page for
multipath.conf
> entries in the defaults will only be used if they do not appear
other
> places.
>
> Q1) If I want to over ride the rr_min_io value in the
devices/device
> section can I just add a devices/device section in
/etc./multipath.conf
> with the things I want to change or do I have to duplicate
everything that
> is in the built-in devices/device entry?
I have seen some values not specified in the multipath.conf
devices/device section are picked up from the "default" table (don't
remember if this was internal default table or config default table)
instead of "controller table" (aka built-in devices/device entry
values). So, the best is to duplicate everything from the internal
controller table.
> Q2) How can I determine the best value for rr_min_io?
> I assume whom ever added the HITACHI|HP devices/device
built-in
> entry decide on the value
> of 1000 for a reason. Maybe they did benchmarks or maybe
they just
> copied another entry
> that was some what like what they needed and changed the
vendor
> and product.
I doubt if they carried out a benchmark, but possible! At one time the
default used to be 1000. I think it is 1 now with request based
multipath.
Thanks, Malahal.
================
Thanks for the quick reply.
OK, I duplicated the information and changed rr_min_io to 100 so
I could tell my entry from the built-in. Ran multipathd -k and did
reconfigure and show config. The original built-in entry does not show
up where it use to. The entry I added shows up as the first device entry
in devices with the rr_min_io value I specified. So it would seem if you
specify a vendor/product combination that is just like a built-in, the
built-in is either modified and moved to the top or is not shown at all.
It would be nice if the output of show config would indicate the
built-in entries with a comment and/or the ones found in the
multipath.conf file. It would also be nice to indicate when a value from
the defaults is being used by a device entry. Maybe this has been done
on later versions of multipathd.
Then I lowered rr_min_io to 10 and did reconfigure and show
config and the parameter does not show up at all. The device entry is
still at the top of the devices, just does not have the rr_min_io
parameter at all. So I went through several values for rr_min_io stating
at 100 and decreasing it by 10 each time and then doing reconfigure and
show config. When it got to 10 again the parameter did not show up. So I
increased it to 11 and it showed up. So there must be some min/max value
that multipath will not allow setting the parameter to and if it is not
within that range, it just ignores it all together.
-----
Jack Allen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: General and configuration questions
2010-05-28 23:23 ` Allen, Jack
@ 2010-05-29 1:46 ` Malahal Naineni
0 siblings, 0 replies; 4+ messages in thread
From: Malahal Naineni @ 2010-05-29 1:46 UTC (permalink / raw)
To: dm-devel
Allen, Jack [Jack.Allen@mckesson.com] wrote:
>
> Thanks for the quick reply.
>
> Then I lowered rr_min_io to 10 and did reconfigure and show
> config and the parameter does not show up at all. The device entry is
> still at the top of the devices, just does not have the rr_min_io
> parameter at all. So I went through several values for rr_min_io stating
> at 100 and decreasing it by 10 each time and then doing reconfigure and
> show config. When it got to 10 again the parameter did not show up. So I
> increased it to 11 and it showed up. So there must be some min/max value
> that multipath will not allow setting the parameter to and if it is not
> within that range, it just ignores it all together.
You could have used binary search. :-)
Not sure if such a value is not used or not displayed in in "show
config" You can do "multipath -v4" that should display what value is
used for your device while creating it though.
I always use 'multipath -v4' to see what settings are done for my
devices if I change something in multipath.conf.
Hope that helps!
--Malahal.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-29 1:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 21:16 General and configuration questions Allen, Jack
2010-05-28 22:13 ` Malahal Naineni
2010-05-28 23:23 ` Allen, Jack
2010-05-29 1:46 ` Malahal Naineni
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.