Operating System - HP-UX
1829773 Members
7435 Online
109992 Solutions
New Discussion

Cannot remove vg. Physical device not part of vg.

 
Craig A. Sharp
Super Advisor

Cannot remove vg. Physical device not part of vg.

I have a vg that is existing in the lvmtab file. I am not able to remove the vg as the physical volume that is shown in the lvmtab is not part of the volume group. If I try to remove the volume I get:

# vgremove /dev/vg19
vgremove: Volume group not activated.

If I try to activate the vg I get:

# vgchange -a y /dev/vg19

vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c6t11d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c6t11d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vg19":
Quorum not present, or some physical volume(s) are missing.

HELP?

Thanks,

Craig
7 REPLIES 7
Helen French
Honored Contributor

Re: Cannot remove vg. Physical device not part of vg.

Hi Craig:

You can do a 'vgexport' on that VG:

# vgexport /dev/vg19

HTH,
Shiju
Life is a promise, fulfill it!
Paula J Frazer-Campbell
Honored Contributor

Re: Cannot remove vg. Physical device not part of vg.

Hi

If the export fails then

mv lvmtab to lvmtab.bak

vgscan -a to recreate the lvmtab

SEE MAN VGSCAN first.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Mark Greene_1
Honored Contributor

Re: Cannot remove vg. Physical device not part of vg.

sounds like you have a similar issue to what I just dealt with. check the replys here:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xef6442308663d611abdb0090277a778c,00.html

HTH
mark
the future will be a lot like now, only later
Mladen Despic
Honored Contributor

Re: Cannot remove vg. Physical device not part of vg.

vgreduce -f vgxx
Geetha Alagappan
Regular Advisor

Re: Cannot remove vg. Physical device not part of vg.

PS try vgexport vgname. Then if it still doesn't work do a vgscan -v to recreate lvmtab.
hercules
Jon Finley
Honored Contributor

Re: Cannot remove vg. Physical device not part of vg.

Rule of thumb:

If the volume group is activated you can reduce out the disk with: vgreduce -f

If the volume group is NOT activated, you can remove the disk with: vgexport


Jon
"Do or do not. There is no try!" - Yoda
Sanjay_6
Honored Contributor

Re: Cannot remove vg. Physical device not part of vg.

Hi Craig,

Try this link on how to remove a ghost / non-existant disk,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=8484ada61a7103eed4/screen=ckiDisplayDocument?docId=200000060353714

Hope this helps.

Regds