Operating System - HP-UX
1834601 Members
3883 Online
110069 Solutions
New Discussion

Re: /etc/lvmtab is out of date

 
smg_atlas
Frequent Advisor

/etc/lvmtab is out of date

Hi Guys,
When I tried to make 2nd mirror copy I got the following error messages:

lvextend -m2 -A y /dev/vgextpr01/sapdb /dev/dsk/c5t0d0

Logical volume "/dev/vgextpr01/sapdb" has been successfully extended.
vgcfgbackup:/etc/lvmtab is out of date with the running kernel:Kernel indicates 9 disks for "/dev/vgextpr01"; /etc/lvmtab has 8 disks.
Cannot proceed with backup.

I looked at some of the threads mentioning to mv /etc/lvtab /etc/lvmtab.bak
and
vgscan -av
vgcfgbackup vgextpr01

But before going through these steps I checked my /etc/lvmtab file and can see

/dev/vgextpr01
/dev/dsk/c4t0d0
/dev/dsk/c4t6d0
/dev/dsk/c5t6d0
/dev/dsk/c5t0d0

Does it mean that I dont need to do vgscan and vgcfgbackup........

Pls help.........

regards
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: /etc/lvmtab is out of date

All you know is that you have a vg backup at some point im time of the VG in question.

Do a vgdisplay -v /dev/vgextpr01 and make sure that all disks listed are "available". Make sure that all LVOL's in the VG display a "current" rather than "stale" status.
If it ain't broke, I can fix that.
smg_atlas
Frequent Advisor

Re: /etc/lvmtab is out of date

There are 4 physical volumes.
the PV status for all of them are available.

But one thing puzzles me is that....
VG Name /dev/vgextpr01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 6
Open LV 6
Max PV 16
Cur PV 5
Act PV 4
Max PE per PV 8683
VGDA 8
PE Size (Mbytes) 4
Total PE 34724
Alloc PE 32366
Free PE 2358
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

The Cur PV and Act PV are not matching?
Any suggestions?

Thanks
smg_atlas
Frequent Advisor

Re: /etc/lvmtab is out of date

My LV status are all available/syncd
Mridul Shrivastava
Honored Contributor

Re: /etc/lvmtab is out of date

If everything is fine and there is discrepency in kernel and lvmtab disk entries then you can execute the following command to resolve the issue:

vgreduce -f /dev/vgextpr01

This will remove the disk entries from the kernel for the disk which is not present in lvmtab.

Please update the result once done.
Time has a wonderful way of weeding out the trivial
Mridul Shrivastava
Honored Contributor

Re: /etc/lvmtab is out of date

I noticed that you have assigned points to 0 of 13 responses. Please spend sometime to assign the points so the person gets credit in terms of point for the time they have sepnt for answering your questions.

Thanks a lot for the understanding.
Time has a wonderful way of weeding out the trivial