Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unable to remove disk after migratepv

Status
Not open for further replies.

shane2

MIS
Jun 16, 2009
3
US
Last night I started a migratepv hdisk93 to hdisk10. Over night, my session ended and I don't know for sure if the migratepv command was successful. I assume it was because hdisk10 is full, hdisk93 has nothing on yet. Also reducevg was successful in reoving hdisk93. But when I try rmdev -dl hdisk93, it fails saying the device is busy. This is on AIX 6100-05. lsvg -M shows; hdisk 93:1-618. Any sugestions of how to remove this disk?

Shane
 
Just off the top, of my slightly dazed and confused, head...

Check for monitoring software that might be holding the disk open / busy
Check things like migratepv are not showing in the ps -ef output
Use fuser or lsof to check what might be using /dev/hdisk93
If in doubt then it's probably a power out - reboot - to free it up...


HTH ;0)

 
Thanks for repling Duke,I tried all those things, except the reboot. I was afraid it would come to that. The reason for the migrate was moving off an old san. Ths was weird and I still don't really know why it worked, but I migrated back to the orignal disk and removed the disk I migrated to in the first place. Then I requested a new disk and migrated to that disk and then I could remove the disk that was busy. I ran the migrate command from Cron so losing my vpn connection would not effect the command. Caulk that one up.

Shane
 
sometime nmon process running with -d can lock the disk (even if not assigned to any vg). if so, stop nmon and try again.

also, try lsof - you should see nmon locking disk if this is the case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top