1829962 Members
2160 Online
109998 Solutions
New Discussion

Phantom Volume Groups

 
SOLVED
Go to solution
Rafael Casero
Regular Advisor

Phantom Volume Groups

I'm trying to remove Volume groups no longer exist.

I have tried the following commands but nothing seem to work.

vgexport vg01
vgreduce -f /dev/vg01
vgremove /dev/vg01
lvremove -f /dev/vg01/dg01


All this cammends give the same error

does not exist in the "/etc/lvmtab" file.

HELP...

These systems are a mess, I just got thrown in at it...
6 REPLIES 6
DCE
Honored Contributor
Solution

Re: Phantom Volume Groups

Rafael,

A couple of ideas/suggestions:

suggestion one
move /etc/lvmtab to /etc/lvmtab.old
vgscan -va
vgexport


suggestion two
cd /dev
rm -rf /dev/vg01
move /etc/lvmtab to /etc/lvmtab.old
vgscan -va


HTH
Dave
A. Clay Stephenson
Acclaimed Contributor

Re: Phantom Volume Groups

All that should be needed is "vgexport /dev/vg01"; that will remove any lvmtab entries and the /dev/vg01 directory and any device nodes below it. If /dev/vg01 does not exist in lvmtab then you will see the error message but that's not a problem. Do a "strings /etc/lvmtab" and that will show you what VG's are defined.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Phantom Volume Groups

Hi:

Well, what is it that you see that makes you believe that you need to do something?

If you have files in '/dev/vg01' but nothing recorded in '/etc/lvmtab' then it is possible that the volume group was previously 'vgremove'd. If that's the case, the device files ('dev/vg01') can be removed.

Regards!

...JRF...

Rafael Casero
Regular Advisor

Re: Phantom Volume Groups

Option two did it.

Thanks,
Jaime Bolanos Rojas.
Honored Contributor

Re: Phantom Volume Groups

Also you could follow the steps on this post:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1007404

Regards,

Jaime.
Work hard when the need comes out.
Rafael Casero
Regular Advisor

Re: Phantom Volume Groups

Thanks, all for your quick responce...