Removing LUN from Server - PowerPath for Linux - powermt issue
Hi,
I am sure a 'reboot' will be the fix for this, but I am trying to understand what the issue is or if there is some other way to correct it.
On a Linux server, I am removing a Clariion SAN presented LUN. The Storage Admin removed the LUN from the storage group to unpresent it. My log showed the path going dead. I ran 'powermt check' and said 'y' in response to the 'device path is currently dead, do you want to remove it' messages. Three of the four paths associated with the EMC PowerPath pseudo name have been removed, but one remains and I cannot remove it because PowerPath thinks it is 'in use'.
Warning: CLARiiON device path sdan is currently dead.
Do you want to remove it (y/n/a/q)? y
Cannot remove device that is in use: sdan
Kernel - Oracle Enterprise Linux (pretty much Red Hat) 5.2 - 2.6.18-92.el5
PowerPath Version - EMC powermt for PowerPath (c) Version 5.1 SP 2 (build 21)
This has occurred on three different servers. I have tried Powermt commands for 'remove' 'remove force' 'release' - all complaining that the 'device is in use'. but what makes PowerPath think the device is 'in use' if it is a dead path and no longer presented.
unfortunately i can't provide a solution but to share your frustration. We always have these issue, even on the latest 5.x RHEL boxes. The other day we had to upgrade PowerPath from 5.1 to 5.5 and PowerPath kept complaining that devices were in use, how can they be in use if all file system were un-mounted and volume groups were exported. Stopping PowerPath service would not help either. I literally had to disable ports on the switch, bounce the box and only then we were able to upgrade PowerPath. Linux after so many years is still so weak when it comes to LVM and disk subsystem. You very rarely see these issues on AIX/HPUX/Solaris ..real *nix boxes
Thank you for the responses. I have not opened a case with EMC, mostly because I suspect, based on some past experience, the answer will be reboot.
Today I made the same change on three more servers (another RAC cluster). Befor unpresenting the LUNs from the Clariion I issued the 'powermt remove' command, but the answer was -
#powermt remove force dev=emcpoweri Cannot remove device that is in use: emcpoweri
Even though there was nothing mounted on the device.
Interestingly, the issue on these three nodes is consistent with what happened on the first three. One path remains on the EMC pseudo device in a display -
# powermt display dev=emcpoweri Pseudo name=emcpoweri CLARiiON ID=APM00083101547 [bkvdwracp RAC cluster] Logical device ID=6006016072C020003E7F9D2EC585DE11 [bkvdwracp - /exports on bkvdw03p - LUN407] state=alive; policy=CLAROpt; priority=0; queued-IOs=0 Owner: default=SP A, current=SP A Array failover mode: 1 ============================================================================== ---------------- Host --------------- - Stor - -- I/O Path - -- Stats --- ### HW Path I/O Paths Interf. Mode State Q-IOs Errors ============================================================================== 0 lpfc sdh SP A4 active dead 0 1
I cannot reboot at this time, but it does not appear to be causing any issues in this state.
I have two more clusters to do this to. They are each only two nodes. Maybe I will find out more before then!
Please review the steps in the "PowerPath for Linux Installation and Administration Guide" available from PowerLink in the following breadcrumb trail:
Home > Support > Technical Documentation and Advisories > Software ~ P-R ~ Documentation > PowerPath Family > PowerPath > Installation/Configuration
Specifically skip to the section: "Dynamically removing a LUN". There are a few steps listed that you didn't mention whether or not you had performed and you may or may not be performing them in the recommended order. From the few times I've needed to do this, I've followed this specific process and don't recall seeing the behavior you are observing, but I also would have to review my projects to see what version of PowerPath (and version of Red HatI was working on when I last performed it. Based on the process, as we all agree a reboot will most likely clean it up as Linux rescans/rebuilds its pseudo devices and PowerPath rebuilds its configuration.
Thank you for all the helpful posts. i have performed the same task on eight servers in three RAC clusters, all with the same result. I have tried unpresenting the LUN's before cleaning up PowerPath and tried the 'powermt remove' before unpresenting..with no difference. PowerPath thinks one of the paths is still busy even though the filesystem is unmounted. It will removed all the dead paths for the device except for one in every case -
Thanks for your response. No these are not ASM disks, strickly LVM.
Although I am curious to see if perhaps the clusterware may be the culprit. Tomorrow I will be removing a LUN from a standalone server...although same OS and version of PowerPath.
dynamox
11 Legend
•
20419 Posts
•
87439 Points
5444
0
Posted January 14th, 2011 20:00
unfortunately i can't provide a solution but to share your frustration. We always have these issue, even on the latest 5.x RHEL boxes. The other day we had to upgrade PowerPath from 5.1 to 5.5 and PowerPath kept complaining that devices were in use, how can they be in use if all file system were un-mounted and volume groups were exported. Stopping PowerPath service would not help either. I literally had to disable ports on the switch, bounce the box and only then we were able to upgrade PowerPath. Linux after so many years is still so weak when it comes to LVM and disk subsystem. You very rarely see these issues on AIX/HPUX/Solaris ..real *nix boxes