Operating System - HP-UX
1832574 Members
4730 Online
110043 Solutions
New Discussion

pvremove will not remove the pv

 
SOLVED
Go to solution
Timothy P. Jackson
Valued Contributor

pvremove will not remove the pv

hello everyone,

I reinstalled on of my systems. I am trying to set up the mirroring for the root/boot drive. When I try to do a pvcreate it tells me that the pv already belongs to a volume group. So if try to do a pvremove it tells me that it can't do it because it can't find the volume group information. this would be true because I just did a clean install. Is there some way to force the pvremove?

system - rp4440
OS - HP-UX 11.11

Any help would be greatly appreciated!

Thanks
Tim
4 REPLIES 4
Torsten.
Acclaimed Contributor
Solution

Re: pvremove will not remove the pv

Is this the old mirror? Use pvcreate -f, but with care!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Fabian Briseño
Esteemed Contributor

Re: pvremove will not remove the pv

Hello Timothy.

If you are absolutely sure that you do not need the info on the disks, do a pvcreate -f

pvcreate -f /dev/rdsk/cxtxdx

-f Force the creation of a physical volume (thus deleting any file system or volume manager information present) without first requesting confirmation.

then do a pvremove

that should solve your problem.
Knowledge is power.
Timothy P. Jackson
Valued Contributor

Re: pvremove will not remove the pv

Hi Torsten,

Yes it is the old mirror. I used the -f option on the pvcreate and it seems to have worked.

Thanks!

Tim
Timothy P. Jackson
Valued Contributor

Re: pvremove will not remove the pv

see above thread.