Skip to contentSkip to conversation

Multipath without round-robin?

linux-lvm Jedi/Sector One 4 participants 8 messages Jun 10, 2004 – Jun 11, 2004

lore
Share & tools
lore
#0 lore raw

Hello.

I'm trying to get multipath working with LVM2 (2.6.7-rc2-udm2 kernel) with
an LSI storage array.

The array has two FC controllers, HBAs are two identical Qlogic 2340.

On the array, "preferred" controllers are assigned to each LUN.

Unfortunately, it looks like dm-multipath always does round-robin load
balancing.

The result is that the array fills up the (SANtricity) error log with
messages like "LUN was accessed through the wrong controller".

Is there any way to keep failover abilities without load balancing?

Best regards,

       -Frank.
#1 lore raw

Decided mdadm would not do the job for you?

mdadm --create -f -lmp -n2 -x1 /dev/md0 /dev/<channela> /dev/<channelb>

This works in fail over mode by explicitly telling md to treat one as a spare.

Quoted 26 lines · Jedi/Sector One

Hello.

I'm trying to get multipath working with LVM2 (2.6.7-rc2-udm2 kernel) with
an LSI storage array.

The array has two FC controllers, HBAs are two identical Qlogic 2340.

On the array, "preferred" controllers are assigned to each LUN.

Unfortunately, it looks like dm-multipath always does round-robin load
balancing.

The result is that the array fills up the (SANtricity) error log with
messages like "LUN was accessed through the wrong controller".

Is there any way to keep failover abilities without load balancing?

Best regards,

       -Frank.

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#2 lore raw
In reply to Jedi/Sector One

You could just use the qlogic hba driver failover.

ql2xfailover=1 in your rmodules.conf

Quoted 28 lines · Jedi/Sector One

Hello.

I'm trying to get multipath working with LVM2 (2.6.7-rc2-udm2
kernel) with
an LSI storage array.

The array has two FC controllers, HBAs are two identical Qlogic 2340.

On the array, "preferred" controllers are assigned to each LUN.

Unfortunately, it looks like dm-multipath always does round-robin load
balancing.

The result is that the array fills up the (SANtricity) error log with
messages like "LUN was accessed through the wrong controller".

Is there any way to keep failover abilities without load balancing?

Best regards,

       -Frank.

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#3 lore raw
Quoted 3 lines · Austin Gonyou

You could just use the qlogic hba driver failover.

ql2xfailover=1 in your rmodules.conf

One caveat, if you're not running with write cache mirroring on you your volumes, then no matter md or qla failover, you may get data corruption. Some apps don't run well with it on because of the performance hit.

Quoted 25 lines
Quoted 23 lines · Jedi/Sector One

Hello.

I'm trying to get multipath working with LVM2 (2.6.7-rc2-udm2
kernel) with
an LSI storage array.

The array has two FC controllers, HBAs are two identical Qlogic 2340.

On the array, "preferred" controllers are assigned to each LUN.

Unfortunately, it looks like dm-multipath always does round-robin load
balancing.

The result is that the array fills up the (SANtricity) error log with
messages like "LUN was accessed through the wrong controller".

Is there any way to keep failover abilities without load balancing?

Best regards,

       -Frank.
#5 lore raw
In reply to Jedi/Sector One
Quoted 11 lines · Jedi/Sector One

Hello.

I'm trying to get multipath working with LVM2 (2.6.7-rc2-udm2 kernel) with
an LSI storage array.

The array has two FC controllers, HBAs are two identical Qlogic 2340.

On the array, "preferred" controllers are assigned to each LUN.

Unfortunately, it looks like dm-multipath always does round-robin load
balancing.

path0 in group0, path1 in group1 etc. When path0 fails you use path1. Are you using multipath-tools or settiing up the table by hand. For mp-tools there is a failover setting. You still cannot so explciit failover but that is in the works.

Quoted 9 lines

The result is that the array fills up the (SANtricity) error log with
messages like "LUN was accessed through the wrong controller".

Is there any way to keep failover abilities without load balancing?

Best regards,

       -Frank.
#6 lore raw
Quoted 5 lines

path0 in group0, path1 in group1 etc. When path0 fails you use path1. Are you using multipath-tools or settiing up the table by hand. For mp-tools there is a failover setting. You still cannot so explciit failover but that is in the works.

mp-tools?

#7 lore raw
Quoted 5 lines · Chris Croswhite
Quoted 1 line

path0 in group0, path1 in group1 etc. When path0 fails you use path1. Are you using multipath-tools or settiing up the table by hand. For mp-tools there is a failover setting. You still cannot so explciit failover but that is in the works.

mp-tools?

Sorry I got lazy. I wrote multipath-tools once above then just made up my own abbreviation. Now I have written a lot more than had I just written it out :) You can get the tools here btw http://christophe.varoqui.free.fr/

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/