Operating System - HP-UX
1753888 Members
7441 Online
108809 Solutions
New Discussion юеВ

unable to delete volume group from lvmtab

 
Md.Shahabuddin
Advisor

unable to delete volume group from lvmtab

Q. I have created a volume group vg02 under a physical disk, but i am not able to remove the volume group from lvmtab, kindly suggest me how to remove the physical disk and volume group from the lvmtab permanently, and whenever i am trying to remove it with vgreduce command i am getting an error that it is not a character device. Please put some suggestion.
4 REPLIES 4
hpuxrox
Respected Contributor

Re: unable to delete volume group from lvmtab

# vgchange -a n vg02
# vgexport vg02

Or just use sam
Robert-Jan Goossens_1
Honored Contributor

Re: unable to delete volume group from lvmtab

Hello,

# vgchange -a n /dev/vg02
# vgexport /dev/vg02

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor

Re: unable to delete volume group from lvmtab

Hi:

First, 'vgreduce' wil remove all but the last physical volume in a volume group.

If you don't want *any* volumes in a volume group the easiest way to begin again is to do:

# vgchange -a n vg02
# vgexport vg02

This will remove 'vg02' from your system; cleaning up the 'etc/lvmtab' and removing the files in '/dev'.

Regards!

...JRF...
Md.Shahabuddin
Advisor

Re: unable to delete volume group from lvmtab

Thanks Folk !!!!!!!!!