Skip to contentSkip to conversation

How to associate two paths for each EMC device?

linux-lvm Shan Jing 2 participants 2 messages Mar 19, 2004 – Mar 23, 2004

lore
Share & tools
lore

Shan Jing

author
#0 lore raw

The very basic way to identify the pair is to lvm each of the first 22 luns in a sequence and see which lun in the other 22 set is also lvm'ed.

However, there must be a more technical way to resolve this and eventually make the disk represent only once. Any guru out there can help?

Regards,
Shan Jing

Unix Group - Americas
Deutsche Bank
2 Gatehall Drive, 3rd Floor
Parsippany, New Jersey, USA
[email protected]
973.682.3463

Theo Van Dinter
<[email protected] To: LVM general discussion and development <[email protected]>
et> cc:
Sent by: Subject: Re: [linux-lvm] How to associate two paths for each EMC device?
linux-lvm-bounces
@redhat.com

03/19/2004 12:44
PM
Please respond to
LVM general
discussion and
development

Quoted 3 lines · Shan Jing

I have 22 EMC symmetrix disks on two HBA links. At this moment, there is no working copy of EMC powerpath or HP Securepath available for my kernel (2.4.21-112-itanium2-smp); therefore, I have to use the luns directly with lvm without any DMP software in the middle.

Without DMP software, there are two set of 22 luns, each representing one HBA path. See blow.

Can you set your HBA driver to do failover? ie: something like this
in modules.conf:

options qla2300 ql2xfailover=1 ql2xmaxqdepth=64

This works well for my servers connected to a CX-series array. :) The
driver handles failing between HBAs (active-passive), and only has the LUN presented once to the system.

--
Randomly Generated Tagline:
"I didn't know Allman was a stand-up comedian ..."
- Theo about laughter from sendmail tutorial

_______________________________________________
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/

The following file(s) have been deleted by: Shan Jing on 3/19/2004 1:58:20 PM

C.DTF
attq5vht.dat

--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

#1 lore raw

I had to solve a similar problem lastly.

For me, there is some more complicated stuff to get rid of. We are using SRDF mirroring. This leads to seeing the same disk_content_ on a different physical disk. This disk is readonly. LVM1 searches all disks in descending order and uses the readonly instead of the writeable copy.

To find out which disk is which LUN, you can use scsi_info from the kernel-pcmcia-cs-3.1.31-9 RPM.
Of course this is only valid for RH.

I solved the problem by vgscanning the SAN from initrd. On the ramdisk image, I included the device files for the devices to scan only.
The Emulex SAN driver I use creates scsi devices sorted by Symmetrix, then LUN. So, the first 4 devices are on Symmetrix-A, starting from 0-0-0, followed by the devices on Symmetrix-B, starting form 0-0-0.
I recommend to use static bindings, not only to change the device's order.

The RedHat functions create all devicenodes on the initrd. So, scanning has to take place before it starts doing so. Afterwards I copy the lvmtab to the mounted real-root-device, overwriting the last active fileset.
I have set up a HA cluster. Scanning the LVMs at bootup is vital for me. If you are not in need for updating the lvmtab frequently, you can do vgscans manually. You will have to remove the unneeded devicenodes before doing so.
With LVM2, you can specify limits for vgscan. If the QLogic driver works in a similar way, this may be handy.

BTW: you do failover within the driver?
I tried to do so, but up to now I failed.
Can you tell me more about how the QLogic driver can be configured to failover? This is a bit off topic. Could you reply to this question by using my real address?

Good luck

Thomas

Quoted 16 lines · Shan Jing

The very basic way to identify the pair is to lvm each of the first 22 luns in a sequence and see which lun in the other 22 set is also lvm'ed.

However, there must be a more technical way to resolve this and eventually make the disk represent only once. Any guru out there can help?

Regards,
Shan Jing

Unix Group - Americas
Deutsche Bank
2 Gatehall Drive, 3rd Floor
Parsippany, New Jersey, USA
[email protected]
973.682.3463