1836582 Members
1564 Online
110102 Solutions
New Discussion

etc/lvmtab

 
SOLVED
Go to solution
bassey essien_2
Occasional Contributor

etc/lvmtab

iam trying to free up a disk for another volume group, i did vgreduce , also copied etc/lvmtab to etc/lvmtab.old, then ran vgscan with an option. When i proceed to create a new volume group from the available disk, it says that "vg04 failed". what should i do to free up
the disk from the etc/lvmtab, since the vgscan already has etc/lvmtab entries of vg04 recorded.Fuser did not seem to work.
Any help will be appreciated.
thanks.
unix
3 REPLIES 3
MARTINACHE
Respected Contributor
Solution

Re: etc/lvmtab

Hi,

If vg04 should not exist on your system and you want to remove it on order to recreate it, do :
vgexport /dev/vg04

Then :
mkdir /dev/vg04
mknod /dev/vg04/group c 64 0x??0000
vgcreate /dev/vg04 /dev/dsk/cXtYdZ

Regards,

Patrice.
Patrice MARTINACHE
bassey essien_2
Occasional Contributor

Re: etc/lvmtab

Hi Patrice, i ran the vgexport to recreate vg04, also created new device file with mknod command, strangely the disk is claimed back, but there are still vg04 entry in the etc/lvmtab. vgdisplay shows no volume group associated with the disk, vgcreate command and SAM keeps failing when recreating vg04, even
when changing volume group name.I renamed etc/lvmtab to etc/lvmtab.old, also ran vgscan -a to rebuild lvmtab. What else should i do, I have created volume groups from reduced disk before.
thanks.
unix
Jaimin Parikh
Frequent Advisor

Re: etc/lvmtab

Hi,

Try using 'vgreduce -f' or 'vgremove' commands.

Before reducing or removing volume group you have to remove logical volumes loaded using 'lvremove' command.

Regards,
Jaimin Parikh
JAIMIN PARIKH : Share your knowledge and help those who need your help!!