Operating System - HP-UX
1833587 Members
3694 Online
110061 Solutions
New Discussion

Re: Cant create a new Volume Group

 
martin clarke_1
Occasional Advisor

Cant create a new Volume Group

When I try to create a new volume group for a new disk pack SAM hangs and I had to kill it.
After some help from the guys on this forum I found that /dev/lvmtab has already got an entry for the physical device under vg02 but sam doesnt seem to detect any volume groups apart from vg00. Originally there were three volume groups VG00,01 an 02. I removed 01 and 02 which pointed to an old small disk pack.
I notice that the /dev.lvmtab file is read only.
How do I remove the vg02 entry.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Cant create a new Volume Group

Martin,

mv /etc/lvmtab /etc/lvmtab.old
vgscan -a

This will scan the system for existing vg's and re-create the lvmtab with what it finds.

(not sure what /dev/lvmtab is??)


Pete

Pete
martin clarke_1
Occasional Advisor

Re: Cant create a new Volume Group

Probably just a typo on my part
Franky_1
Respected Contributor

Re: Cant create a new Volume Group

Hi,

just mv the lvmtab file to lvmtab.sav and then submit a "vgscan -av" command which will create a new lvmtab file with actual entries

Regards

Franky
Don't worry be happy
Prashant Zanwar_4
Respected Contributor

Re: Cant create a new Volume Group

Recreate lvmtab as mentioned. and check if still SAM hangs.
Revert back with further information
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Geoff Wild
Honored Contributor

Re: Cant create a new Volume Group

After recreating your lvmtab with vgscan as noted in above posts, create the vg from the command line:

mkdir /dev/vg02
mknod /dev/vg02/group group c 64 0x020000

vgcreate -s 8 -p 128 /dev/vg02 /dev/dsk/cXtXdX /dev/dsk/cXtXdX

where cXtXdX is/are the devices for the disks you want to add to this vg.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
F Verschuren
Esteemed Contributor

Re: Cant create a new Volume Group

if vg02 is stil a volume group first do a vgexport on vg02. so it is removed from the system