Start a Conversation

Unsolved

This post is more than 5 years old

5520

February 11th, 2008 06:00

Tricks to keep Linux PowerPath devices in sequence

I think I know the answer to this question already (tough luck) but does anyone have any tricks to keep PowerPath devices under RHEL the same based on LUN number?

It appears that the newer versions of PowerPath do not use the LUN/TARGET ordering any longer which has caused some heartburn for our Linux administrators when installing newer versions of PowerPath. I found some articles to work-around this emc113184 and emc119345 and verified that this appears to be "known" behavior.

My question is does anyone have a slick way to get around this "feature" and make some Linux admins happy?

Since this is known behavior I am reluctant to open an official case on this design quirk.

341 Posts

January 22nd, 2009 00:00

I don't know of any plans to implement emcpadm on AIX at the moment :(

341 Posts

March 6th, 2009 02:00

Hi All, some good news:

Starting with PowerPath 5.3 on AIX the emcpadm utility is now supported, please see emc166911 for full steps on how to use emcpadm utility

1 Rookie

 • 

20.4K Posts

March 16th, 2009 11:00

power devices will remain persistent, no need to change them after reboot. That's why you want to use power devices in you logical volumes instead of native devices.

12 Posts

March 16th, 2009 11:00

Gah... I had thought about that and decided that since this is Linux that I was better than those Windows fellas...

I guess that's my next step... I'll let you know how it goes.

I gotta admit, it feels kinda dirty...

12 Posts

March 16th, 2009 11:00

Am I correct in understanding that, even using the mapping file, you might have to run the command to rename the devices every time you boot the server? Is there no way to keep this device mapping permanently across reboots?

1 Rookie

 • 

20.4K Posts

March 16th, 2009 11:00

very strange indeed, your steps look good to me. This is exactly what i do on my Redhat RAC nodes. Is it just this one node that scrambles its power device names upon reboot ?

12 Posts

March 16th, 2009 11:00

Dynamox,

Thanks for the quick reply. I have a SUSE10.2 server where the devices are not remaining consistent. It is part of a 5 node Clusterware cluster being built. The disks assigned to it are exactly the same as the other servers in the cluster. I have seen this server rebooted and keep the device names but most times it does not.

I exported the cluster disk names using the emcpadm utility and imported the names just fine. I have also manually reassigned these names using the emcpadm utility. I have removed the /etc/powermt.custom file and then performed a 'powermt save' command to rebuild the file. It looks good but after a reboot on Friday the disks came in as differnt emcpower* names.

Am I missing something?

1 Rookie

 • 

20.4K Posts

March 16th, 2009 11:00

if it's just this one node, have you tried the "brute force windows" approach of re-installing PowerPath ?

12 Posts

March 16th, 2009 11:00

Yes. What's even more kooky is that it doesn't necessarily do it every time. The last time I rearranged the devices it kept over two reboots. Then the DBA setting up the cluster reboots the server and they change...

1 Rookie

 • 

20.4K Posts

March 16th, 2009 12:00

i know :) ..don't tell your Windows guys if it fixes your issue.

142 Posts

March 16th, 2009 13:00

As a workaround, create your own devices:
#mknod /u02/oradata/css c 162 1
#mknod /u02/oradata/ocr c 162 2
#mknod /u02/oradata/asm/lun1 c 162 3
#mknod /u02/oradata/asm/lun2 c 162 4
#mknod /u02/oradata/asm/lun3 c 162 5
#mknod /u02/oradata/asm/lun4 c 162 6
where the major/minor numbers are the same as the power devices.

12 Posts

March 16th, 2009 15:00

A reinstall of PowerPath did not help this issue. The /dev/emcpower* names stayed consistent over one reboot but changed around after a second test reboot. This is also overwriting the /etc/powermt.custom file as well as the information there changes.

Any ideas?

12 Posts

March 16th, 2009 18:00

Just wanted to give an update before going home. I rebooted this server 12 different times and only twice did the logical names stay the same over a reboot. I definitely see the /etc/powermt.custom file being changed somehow between the time I issue the shutdown command until the time the server is back up. I have opened a case with EMC about this and we'll see where it goes.

12 Posts

April 24th, 2009 13:00

Just for closure's sake...

I worked with EMC techs on this issue for a number of weeks. I installed a number of debug versions of PowerPath to try to capture the issue but we had no luck. Eventually after removing the debug version and reinstalling the original version of PowerPath on the server the disks aren't changing logical device names anymore.

EMC's response is that this is a known but rare issue that seems to have something to do with Oracle or Clusterware and that it can be resolved by uninstalling and reinstalling the software. I will update this thread if/when I learn anything else.
No Events found!

Top