Operating System - HP-UX
1834804 Members
2995 Online
110070 Solutions
New Discussion

Re: pvremove command still running after 30 mintues

 
SOLVED
Go to solution
John Jimenez
Super Advisor

pvremove command still running after 30 mintues

I vgremoved disk, and then from SAN unpresented these disks from hosts. In the past I have stopped here.

But I wanted to I found out that I have not been cleaning up as much as I should. So this time after removing I was going to pvremove and then rmsf

I issued the pvremove command and it had been running for 20 minutes. It is still running, what did I do wrong? Is it okay to kill this PID?

=> #ps -ef | grep pvremove
root 3975 14636 0 10:07:11 pts/4 0:00 pvremove /dev/rdsk/c19t2d0
root 13854 4112 0 10:36:56 pts/6 0:00 grep pvremove
root@diamond.iehp.org:/var/adm/syslog>
=> #date
Tue Jun 23 10:37:01 PDT 2009
Hustle Makes things happen
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: pvremove command still running after 30 mintues

I suspect that it is waiting on the I/O to complete and it never will because you unpresented the disks. You're going to have to re-present the disks or kill the pvremove (which probably won't work, because it's waiting for the I/O - which means reboot).


Pete

Pete
TTr
Honored Contributor

Re: pvremove command still running after 30 mintues

>...then from SAN unpresented these disks
If you unpresented the disks, pvremove is trying to access a disk that is not there. You should have run it before you unpresented the LUNs.
James R. Ferguson
Acclaimed Contributor

Re: pvremove command still running after 30 mintues

Hi:

The 'pvremove' command erases the LVM headers on a physical disk and should be a very quick process.

Since you "unpresented" the physical disk there it is doing nothing but waiting for the disk. You can try a 'kill -9' but this may not work since the command is waiting on a higher priority event. A reboot may now be your fastest solution (and then learn from what you have done).

Regards!

...JRF...
John Jimenez
Super Advisor

Re: pvremove command still running after 30 mintues

Thank you very much Pete. I still had it on the SAN. Like you said as soon as I presented it. the command finished.

So then I do the "rmsf" command, then I unpresent the LUN?
Hustle Makes things happen
Pete Randall
Outstanding Contributor

Re: pvremove command still running after 30 mintues

Yes.


Pete

Pete
John Jimenez
Super Advisor

Re: pvremove command still running after 30 mintues

I forgot to rmsf the 3 other associated paths before unpresenting the disk. But it looks like it let me remove those other 3 paths after the fact.

But I thought I better ask....Is there any issues doing the rmsf after rather then before removing the disks?
Hustle Makes things happen
James R. Ferguson
Acclaimed Contributor

Re: pvremove command still running after 30 mintues

Hi (again) John:

> Is there any issues doing the rmsf after rather then before removing the disks?

No.

Regards!

...JRF...
John Jimenez
Super Advisor

Re: pvremove command still running after 30 mintues

Super! thanks again for your help
Hustle Makes things happen