LVM and VxVM

/etc/lvmtab is out of date with the running kernel

 
DHINESHBABU
Advisor

/etc/lvmtab is out of date with the running kernel

# vgreduce -f vg00
Not all extents are free. i.e. Out of 4340 PEs, only 4339 are free.
You must free all PEs using lvreduce/lvremove before the PV can be removed.
Example: lvreduce -A n -m 0 /dev/vg01/lvol1.
lvremove -A n /dev/vg01/lvol1
Here's the map of used PEs

--- Logical extents ---
LE LV PE Status 1
0000 . 3265 stale






# lvlnboot -R /dev/vg00
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 3 disks for "/dev/vg00"; /etc/lvmtab has 2 disks.
Cannot proceed with backup.
12 REPLIES 12
TTr
Honored Contributor

Re: /etc/lvmtab is out of date with the running kernel

What do these commands show?
vgdisplay -v /dev/vg00
strings /etc/lvmtab
ioscan -fnC disk

Is there an LVM command dettached and still running?
Raj D.
Honored Contributor

Re: /etc/lvmtab is out of date with the running kernel

Dineshbabu,

Check this out:
Seems to be you have 1 ghost disk in vg00, or the disk is missing or failed. vg00 has 3 disk now it can scan only 2.

Check out this doc for disk replacement procedure and rebuilding lvmtab after removing the ghost disk from lvmtab:
Doc attached: When_Good_Disks_Go_Bad.pdf


HTH,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
SoorajCleris
Honored Contributor

Re: /etc/lvmtab is out of date with the running kernel

HI,

vgcfgbackup: /etc/lvmtab is out of date with the running kernel:
Kernel indicates # disks for "/dev/vgname"; /etc/lvmtab has # disks.
Cannot proceed with backup.
Cause:
The number of current and active physical volumes, printed by vgdisplay as Cur PV and Act PV, are not the same. Cur PV and Act PV must always agree for the volume group. This error also indicates that the /etc/lvmtab file, which is used to match physical volumes to a volume group, is out of date with the LVM data structures in memory and on disk.
Recommended Action:
Try to locate any missing disks. For each of the disk in the volume group, use ioscan and diskinfo to confirm that the disk is functioning properly.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Steven E. Protter
Exalted Contributor

Re: /etc/lvmtab is out of date with the running kernel

Shalom,

The way to go here is to locate the disk and then take action.

vgreduce can be used to fix the problem if a disk has gone missing.

vgchange can be used.

Sometimes this:

cd /etc
mv lvmtab lvmtab.save
vgscan -a

The action depends on the cause of the problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
DHINESHBABU
Advisor

Re: /etc/lvmtab is out of date with the running kernel

#Vgdisplay
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 13
Open LV 12
Max PV 16
Cur PV 3
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8680
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0




#pvdisplay for c1t2d0

---

03265 current ??? 00000
03266 current /dev/vg00/lvol13 00000
03267 current /dev/vg00/lvol13 00001
03268 current /dev/vg00/lvol13 00002
03269 current /dev/vg00/lvol13 00003
03270 current /dev/vg00/lvol13 00004
03271 current /dev/vg00/lvol13 00005
03272 current /dev/vg00/lvol13 00006
03273 current /dev/vg00/lvol13 00007

How to clear this PE?
DHINESHBABU
Advisor

Re: /etc/lvmtab is out of date with the running kernel

Vgscan failed to create new lvmtab, we have only two disks running hpux 11.23 on rp5405.
Kanagaraj
Regular Advisor

Re: /etc/lvmtab is out of date with the running kernel

Hi Dinesh,

vgdisplay logs says..

current PV 3
and A.PV 2 --> one PV may bad.


vgdisplay -v vg00
strings /etc/lvmtab
ioscan -fnC disk
Kanagaraj
Regular Advisor

Re: /etc/lvmtab is out of date with the running kernel

just paste above given command output
DHINESHBABU
Advisor

Re: /etc/lvmtab is out of date with the running kernel

Hi Knag,

find rar file attachhed