Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We are working with a Hitachi vendor to get multiple LUNs presented to our Linux servers. (OEL 5.4, effectively, Redhat 5.4)
The scsi_id command is returning long hex strings as expected. According to the scsi_id man page, these are the serial numbers of the LUNs. However, our Hitachi vendor let me know that there are no identifiers that she can find that match up, with anything CLOSE, to what I'm seeing. (I know scsi_id will prefix the identifier with a character) In other words, when I show her the output of scsi_id, or multipath -ll, it's meaningless to her, and she can't correlate that with a specific LUN.
Now, when doing an ls -l on /dev/disk/by-path, she recognized parts of the filesnames as identifiers corresponding to the wwn's of the individual paths (All 140+). Unfortunately, I have no knowledge of how to map that back to the LUNs and LUN id's I'm seeing in multipath / scsi_id output.
What's the best way to take the hex strings I'm seeing from scsi_id, and correlate them to the specific LUNs on the Hitachi side of things? I want to come up with useful device file names in /dev/mapper/, instead of the nebulous and generic 'mpathXX' names.
Not sure if this will help or not, but you may be able to ring a bell with Hitachi support by correlating multipath -ll output with the contents of /proc/scsi/scsi.
It possible to configuire multipath to show the LUN ID's. thats the reason to see your mulipath.conf.
If that is not possible, to morrow I can give you an example.
Regards,
Eric
I know that it's possible to see LUN ids, as reported to Linux, in multipath output. However, that does me no good, as there's nothing in the SAN interface that correlates BACK to those LUN ids.
However, I was able to take a look in /proc/scsi/scsi and come up with an apparent mapping based on channel/id/lun combinations.
and map them using partitions instead uid, of course you need fdisk and mk2fs to give them a filesystem before mounting, if you get errors because of different partitions been recognized uppon reboot or connection problems, you'll definitely need to use uid.
@larold: If you should happen to still be following this thread, does your Hitachi SAN use Storage Navigator? If so, you can match the last two (hex) bytes of Storage Navigator's LDKC:CU:LDEV to the last two (hex) bytes of the LUN's WWID as it appears in RHEL.
Let me know if that doesn't make sense. I am tacking this info on because I just had to go through reconciling Hitachi LUNs to RHEL5 this week, so glean a thing or two from my headache.
---
As for the other part of your question, you can manually manipulate the values in /var/lib/bindings to use the aliases you desire. (There are other ways to achieve the same result, BTW.)
@larold: If you should happen to still be following this thread, does your Hitachi SAN use Storage Navigator? If so, you can match the last two (hex) bytes of Storage Navigator's LDKC:CU:LDEV to the last two (hex) bytes of the LUN's WWID as it appears in RHEL.
Let me know if that doesn't make sense. I am tacking this info on because I just had to go through reconciling Hitachi LUNs to RHEL5 this week, so glean a thing or two from my headache.
---
As for the other part of your question, you can manually manipulate the values in /var/lib/bindings to use the aliases you desire. (There are other ways to achieve the same result, BTW.)
Thanks much. You're exactly right - the Hitachi rep found the same thing.
She helped me match up the Hitachi IDs against the last two hex digits
in the UUID RHEL was seeing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.