LVM and VxVM

How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

 
Alzhy
Honored Contributor

How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

[ /root ]
root@uranus # vgdisplay /dev/master
vgdisplay: "/dev/master/group": not a character device.
vgdisplay: Cannot display volume group "/dev/master".

[ /root ]
root@uranus # ls -l /dev/master
/dev/master not found

[ /root ]
root@uranus # strings /etc/lvmtab|grep master
/dev/master


There are no mounted LVOLS from this VG...
Hakuna Matata.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

Nelson,

1. mv /etc/lvmtab /etc/lvmtab.old

2. vgscan -a


I think that should straitghten it out.


Pete

Pete
Rita C Workman
Honored Contributor

Re: How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

Do you have a mapfile of the /dev/master vg..?
If you do:
...you might try recreating it and then doing a vgimport of the mapfile...

Just a thought,
Rita
Geoff Wild
Honored Contributor

Re: How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

Was this vg removed?

Either vgscan as above, or recreate the vg.

mkdir /dev/master
mknod /dev/master/group c 64 0x480000
vgcreate -s 8 -p 255 /dev/master

then vgexport it:

vgexport /dev/master

That will also remove it from lvmtab.


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.
Pete Randall
Outstanding Contributor

Re: How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

Maybe I was mis-interpreting what you wanted. Is the VG supposed to be there? If so, then Rita's got the right idea - you need to vgimport it.

First, recreate the directory and group files.

mkdir /dev/master
mknod /dev/master/group c64 0xNN0000 (NN needs to be a unique minor number)
vgimport -s -m mapfile (if present) /dev/master


Pete

Pete
Alzhy
Honored Contributor

Re: How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

Thanks guys.

I am still trying to find out if the VG is supposed to be still on this system. When I de-present one of the component disks from the system as listed in lvmtab (using SecurePath).. it won't allow me saying the LUN is busy...

This environment uses EVA BusinessCopy -- which have been plagued with a variety of problems.

Hopefully all these problems will go away once we switch to VxVM as our volume manager on our EVA 5K LUNs..

Hakuna Matata.
Pete Randall
Outstanding Contributor

Re: How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

How's the Harley?

Pete
Alzhy
Honored Contributor

Re: How to Properly Fix: VG entry in lvmtab but VG Directory is Absent

It should be delivered within the week..
Hakuna Matata.