1837864 Members
2931 Online
110122 Solutions
New Discussion

vgdisplay and lvmtab

 
SOLVED
Go to solution
Teck Sim
Frequent Advisor

vgdisplay and lvmtab

When I did a bdf:
I see all my /dev/vg00 and /dev/vg01

but when I did a vgdisplay, it only display vg01, but not vg00?

Please help.
Thanks
8 REPLIES 8
Jeff Schussele
Honored Contributor

Re: vgdisplay and lvmtab

Hi Teck,

When you do a vgdisplay w/no parameters it will show all VGs.
I suspect the vg00 info has scrolled on up & off the screen.
Do
#vgdisplay -v | more
This will give greater detail & hold it to a screen at a time.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Patrick Wallek
Honored Contributor

Re: vgdisplay and lvmtab

I agree with Jeff.

Another method would be to do:

# vgdisplay -v > /tmp/vgdisplay.txt

# view /tmp/vgdisplay.txt

Uday_S_Ankolekar
Honored Contributor

Re: vgdisplay and lvmtab

Hello,

Instead try vgdisplay -v vg00 to get info on vg00.

vgdisplay by default will disaply information for all the VG's. If you want to see perticualr vginfo then try above method.

-USA..
Good Luck..
Teck Sim
Frequent Advisor

Re: vgdisplay and lvmtab

This is what I did:

[wally:/etc] # vgdisplay -v vg00
vgdisplay: Volume group "/dev/vg00" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "vg00".

Even with vgdisplay without any parameter, it shows only vg01, not vg00.

With bdf, this is what I get:

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 20248 115450 15% /
/dev/vg00/lvol1 83733 41925 33434 56% /stand
/dev/vg00/lvol8 512000 170470 321242 35% /var
/dev/vg00/lvol7 512000 347231 154493 69% /usr
/dev/vg01/u02 4103345 2467118 1225892 67% /u02
/dev/vg01/u01 2540465 684825 1601593 30% /u01
/dev/vg00/lvol4 65536 1128 60386 2% /tmp
/dev/vg01/redolog4 99669 41034 48668 46% /redolog4
/dev/vg01/redolog3 99669 41034 48668 46% /redolog3
/dev/vg01/redolog2 99669 41034 48668 46% /redolog2
/dev/vg01/redolog1 99669 41034 48668 46% /redolog1
/dev/vg00/lvol6 348160 64709 265742 20% /opt
/dev/vg00/lvol5 20480 2897 16531 15% /home
/dev/vg01/d0reports
977075 462170 417197 53% /d0reports
/dev/vg01/d03 16013350 10084339 4327676 70% /d03
/dev/vg01/d02 8206922 4162355 3223874 56% /d02
/dev/vg01/d01 30776631 20681348 7017619 75% /d01

Thanks.
Jeff Schussele
Honored Contributor
Solution

Re: vgdisplay and lvmtab

Hi Teck,

Sounds like the /etc/lvmtab file is corrupt or bad - do this
#mv /etc/lvmtab /etc/lvmtab.bad
#vgscan -v

This will create a new lvmtab file with the correct inof. NOTE - You must remove or rename the existing lvmtab file or vgscan will use it for reference.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: vgdisplay and lvmtab

Hi Teck:

Based on your posts the last week, I surmise that you have been updating or otherwise cold-installing your server. What was the last thing you did before you got this error?

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: vgdisplay and lvmtab

Also note that you can do what Jeff suggests while the machine is up and nothing should be impacted.
Teck Sim
Frequent Advisor

Re: vgdisplay and lvmtab

I can't exactly remember what I did the last time, but now the problem is solved. Thanks to all of you.