Operating System - HP-UX
1753792 Members
6983 Online
108799 Solutions
New Discussion юеВ

VG00 does not exist in LVMTAB

 
SOLVED
Go to solution
Quare
Advisor

Re: VG00 does not exist in LVMTAB

Hi Rajeev,

in this case, if i use pvcreate does it affect anything to the system like data loss or other consequences.

since i cannot reboot the server, what else can i do to make it happen?

Regdrs
Siju Vadakkan
Trusted Contributor

Re: VG00 does not exist in LVMTAB

put the details.

vgdisplay -v vg00 | grep "PV Name"
strings /etc/lvmtab
ll /etc/lvmconf
strings vg00.conf
lvlnboot -v
ioscan
ll /etc/lvmta*
Rajeev  Shukla
Honored Contributor

Re: VG00 does not exist in LVMTAB

No dont do pvcreate. If you do so you will loose all the LVM information.
OK, after you have moved the /etc/lvmtab file to say /etc/lvmtab.ori and run vgscan what error or message do you get?
Do you see a lvmtab file created after you run vgscan..if yes do a strings and see the conents of the file.
And before you do so make sure you can see all the devices which are part of vg00 using ioscan -fnCdisk
Quare
Advisor

Re: VG00 does not exist in LVMTAB

Hi Siju,

1).gst:/# vgdisplay -v vg00 | grep /dev/dsk/c1t0d0
Information in "/etc/lvmtab" differs from that in "/etc/lvmpvg".
VG "/dev/vg00" is not defined in file "/etc/lvmtab".
vgdisplay: Volume group "/dev/vg00" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "vg00".

2)gst:/# strings /etc/lvmtab
/dev/vg01
/dev/dsk/c12t0d0
/dev/dsk/c12t0d1
/dev/dsk/c14t0d0
/dev/dsk/c14t0d1
/dev/vg02
/dev/dsk/c12t0d2
/dev/dsk/c12t0d3
/dev/dsk/c14t0d2
/dev/dsk/c14t0d3
/dev/vg03
/dev/dsk/c12t0d4
/dev/dsk/c12t0d5
/dev/dsk/c14t0d4
/dev/dsk/c14t0d5
/dev/vg04
/dev/dsk/c14t0d6
/dev/dsk/c14t0d7
/dev/dsk/c12t0d6
/dev/dsk/c12t0d7

3)gst:/# ll /etc/lvmconf
total 34048
---------- 1 root root 0 Jan 6 2004 lvm_lock
-rw------- 1 root root 321536 Apr 19 2004 vg00.conf
-rw------- 1 root root 321536 Apr 19 2004 vg00.conf.old
-rw------- 1 root sys 1725440 Mar 5 15:33 vg01.conf
-rw------- 1 root sys 1724416 Mar 5 15:00 vg01.conf.old
-rw-rw-rw- 1 root sys 132 Jan 15 2004 vg01.mapfile
-rw------- 1 root sys 1725440 Mar 5 15:38 vg02.conf
-rw------- 1 root sys 1724416 Mar 5 15:38 vg02.conf.old
-rw-rw-rw- 1 root sys 132 Jan 15 2004 vg02.mapfile
-rw------- 1 root sys 1725440 Mar 5 15:41 vg03.conf
-rw------- 1 root sys 1724416 Mar 5 15:40 vg03.conf.old
-rw-rw-rw- 1 root sys 132 Jan 15 2004 vg03.mapfile
-rw------- 1 root sys 1725440 Mar 5 15:44 vg04.conf
-rw------- 1 root sys 1724416 Mar 5 15:43 vg04.conf.old
-rw-rw-rw- 1 root sys 132 Jan 15 2004 vg04.mapfile
-rw------- 1 root sys 1723392 Mar 5 15:46 vg05.conf
-rw------- 1 root sys 1181696 Nov 4 2004 vg05.conf.old

4)gst:/# strings vg00.conf
vg00.conf: No such file or directory

5)gst:/# lvlnboot -v
Current path "/dev/dsk/c14t0d0" is an alternate link, skip.
Current path "/dev/dsk/c14t0d1" is an alternate link, skip.
Current path "/dev/dsk/c14t0d2" is an alternate link, skip.
Current path "/dev/dsk/c14t0d3" is an alternate link, skip.
Current path "/dev/dsk/c14t0d4" is an alternate link, skip.
Current path "/dev/dsk/c14t0d5" is an alternate link, skip.
Current path "/dev/dsk/c12t0d6" is an alternate link, skip.
Current path "/dev/dsk/c12t0d7" is an alternate link, skip.
Current path "/dev/dsk/c12t1d0" is an alternate link, skip.

rayche
Frequent Advisor

Re: VG00 does not exist in LVMTAB

1.Could u use dd command to test the error disk first ?

dd if=/dev/dsk/cxtxdx of=/dev/null bs=1024k

2. to your question, first, I think your lvmtab corrupted, second, in fact, if your system run normally, you can move your lvmtab, this do not affect machine when the machine is running, so although your lvmtab corrupted, lvs of vg00 run normally
Quare
Advisor

Re: VG00 does not exist in LVMTAB

Hi Rajeev,

Attach is the file of vgscan.

there is nothing created on file /etc/lvmtab.

for the ioscan -knfCdisk, yes i can see all the claimed device.

Rgdrs
Rajeev  Shukla
Honored Contributor

Re: VG00 does not exist in LVMTAB

Yes there is another file /etc/lvmpvg which i beleive has wrong information and its wise to rename that as well before you do a vgscan.
So try moving both lvmtab and lvmpvg files to different names and do a vgscan. I am sure it should do the magic
Quare
Advisor

Re: VG00 does not exist in LVMTAB

Hi rajeev,

Thanks rajeev, it's really make a magic.
Now i can see at SAM that it stated VG00 and also i can see VG00 at /etc/lvmtab.

Just wanna ask you if you have an idea,why could this happen?

Is it possible it happens again if i reboot the server.

Last to ask, what is the best to do after we activate the volume group.

Thanks...
Rajeev  Shukla
Honored Contributor

Re: VG00 does not exist in LVMTAB

Glad to hear that it solved your problem but i too am not sure as why it happens, but its true that its some sort of corruption with the lvmtab file which conflicts with the running kernel and lvmpvg file. Now to Guarantee that it doesn't happen again, not sure..but yes now that it is fixed, a reboot wont cause the problem again.

Dont forget to assign points to people who put their efforts in.

Regards
Rajeev
Quare
Advisor

Re: VG00 does not exist in LVMTAB

Hi rajeev,


ok thanks..