Start a Conversation

Unsolved

This post is more than 5 years old

29712

January 13th, 2011 08:00

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'.

[root@bkvdw01da bin]# powermt display dev=emcpowerk

Pseudo name=emcpowerk

CLARiiON ID=APM00083101547 [bkvdwracda RAC cluster]

Logical device ID=6006016072C02000A6C87186920DDE11 [bkvdwracda - /exports on bkvdw01da - LUN375]

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

==============================================================================

1 lpfc sdan SP A5 active dead 0 1

[root@bkvdw01da bin]# powermt check

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.

Thanks!

1 Message

June 15th, 2011 15:00

You should flush all i/o from the device before removal.

For Red Hat I do:

$ sudo blockdev -–flushbufs /dev/emcpowerv # if copy and paste is used the two "--" will not format properly

note: I know the post is a few months old, but maybe it will help someone

No Events found!

Top