HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

 
SOLVED
Go to solution
Tariq Hasan_1
Frequent Advisor

vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

Hi

Me again!

I have been re-mirroring root disk in vg00 onto a new, blank PV in vg00, and althgough the mirroring has been successful, I am getting the following:

vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/vg00"; /etc/lvmtab has 3 disks

can you help?
12 REPLIES
Jupinder Bedi
Respected Contributor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

can you please let me know the steps , what to followed during disk replacement

and also you can try

rm /etc/lvmtab
vgscan -a
All things excellent are as difficult as they are rare
Kanagaraj
Regular Advisor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

Mr Bedi said it right.

rename or remove the /etc/lvmtab file.
Then run vgscan -av
Tariq Hasan_1
Frequent Advisor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

There is no entry for vg00

SERVER_NAME(root):/etc#vgscan -av

Creating "/etc/lvmtab".

Couldn't stat physical volume "/dev/dsk/c0t0d0":

Invalid argument

Physical Volume "/dev/dsk/c8t0d3" contains no LVM information

Physical Volume "/dev/dsk/c8t2d1" contains no LVM information

Physical Volume "/dev/dsk/c12t0d3" contains no LVM information

Physical Volume "/dev/dsk/c12t2d1" contains no LVM information

Physical Volume "/dev/dsk/c10t0d3" contains no LVM information

Physical Volume "/dev/dsk/c10t2d1" contains no LVM information

Physical Volume "/dev/dsk/c14t0d3" contains no LVM information

Physical Volume "/dev/dsk/c14t2d1" contains no LVM information



vgscan: has no correspoding valid raw device file under /dev/rdsk.

Verification of unique LVM disk id on each disk in the volume group

/dev/vg00 failed.





/dev/vgrep03

/dev/dsk/c8t0d0

/dev/dsk/c12t0d0

/dev/dsk/c10t0d0

/dev/dsk/c14t0d0







/dev/vgrep04

/dev/dsk/c8t0d1

/dev/dsk/c12t0d1

/dev/dsk/c10t0d1

/dev/dsk/c14t0d1







/dev/vgrep05

/dev/dsk/c8t0d2

/dev/dsk/c12t0d2

/dev/dsk/c10t0d2

/dev/dsk/c14t0d2







/dev/vg01

/dev/dsk/c8t0d4

/dev/dsk/c12t0d4

/dev/dsk/c10t0d4

/dev/dsk/c14t0d4







/dev/vg05

/dev/dsk/c8t0d5

/dev/dsk/c12t0d5

/dev/dsk/c10t0d5

/dev/dsk/c14t0d5







/dev/vg06

/dev/dsk/c8t0d6

/dev/dsk/c12t0d6

/dev/dsk/c10t0d6

/dev/dsk/c14t0d6







/dev/vg07

/dev/dsk/c8t0d7

/dev/dsk/c12t0d7

/dev/dsk/c10t0d7

/dev/dsk/c14t0d7







/dev/vg04

/dev/dsk/c8t1d0

/dev/dsk/c12t1d0

/dev/dsk/c10t1d0

/dev/dsk/c14t1d0







/dev/vg02

/dev/dsk/c8t1d1

/dev/dsk/c12t1d1

/dev/dsk/c10t1d1

/dev/dsk/c14t1d1







/dev/vgrep06

/dev/dsk/c8t1d2

/dev/dsk/c12t1d2

/dev/dsk/c10t1d2

/dev/dsk/c14t1d2







/dev/vgrep07

/dev/dsk/c8t1d3

/dev/dsk/c12t1d3

/dev/dsk/c10t1d3

/dev/dsk/c14t1d3







/dev/vgrep08

/dev/dsk/c8t1d4

/dev/dsk/c12t1d4

/dev/dsk/c10t1d4

/dev/dsk/c14t1d4







/dev/vgrep02

/dev/dsk/c8t1d5

/dev/dsk/c12t1d5

/dev/dsk/c10t1d5

/dev/dsk/c14t1d5







/dev/vg08

/dev/dsk/c8t1d6

/dev/dsk/c12t1d6

/dev/dsk/c10t1d6

/dev/dsk/c14t1d6







/dev/vg09

/dev/dsk/c8t1d7

/dev/dsk/c12t1d7

/dev/dsk/c10t1d7

/dev/dsk/c14t1d7







/dev/vg10

/dev/dsk/c8t2d0

/dev/dsk/c12t2d0

/dev/dsk/c10t2d0

/dev/dsk/c14t2d0







/dev/vg03

/dev/dsk/c8t2d2

/dev/dsk/c12t2d2

/dev/dsk/c10t2d2

/dev/dsk/c14t2d2







/dev/vgrep01

/dev/dsk/c8t2d3

/dev/dsk/c12t2d3

/dev/dsk/c10t2d3

/dev/dsk/c14t2d3





Scan of Physical Volumes Complete.

*** LVMTAB has been created successfully.

*** If PV links are configured in the system.

*** Do the following to resync information on disk.

*** #1. vgchange -a y

*** #2. lvlnboot -R


Also, I cannot vgdisplay vg00 becuase of this:

SERVER_NAME(root):/etc#vgdisplay -v vg00

vgdisplay: Volume group "/dev/vg00" does not exist in the "/etc/lvmtab" file.

vgdisplay: Cannot display volume group "vg00"

Jupinder Bedi
Respected Contributor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

have you saved the copy of previous lvmtab file . if yes than its ok

now try with

ioscan -fnC disk
and than
vgscan -a
All things excellent are as difficult as they are rare
Jupinder Bedi
Respected Contributor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

and also do insf -e before ioscan
All things excellent are as difficult as they are rare
Vishu
Trusted Contributor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

Hi Tariq,

The cause of this problem is that 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.

What you can do is to 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. when you found that bad disk just do.

# vgreduce -f

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

It seems that the 4th disk is nothing but the ghost disk, You should have removed it by -k option in lvreduce.
Now lvmtab is not existing so you need to recover it from backup if you have.


Sr Tech Lead
Tech Mahindra
Data Canter Tubli Bahrain
Tariq Hasan_1
Frequent Advisor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

Vishu

The vgeduce -f vg00 worked, I was then asked to move lvmtab, and vgscan.

I now have a fully working lvmtab.

Thanks everyone.
Vishu
Trusted Contributor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

you are welcome always.

But assigning points a good way to thanks to everyone who come forward to help you out.
Tariq Hasan_1
Frequent Advisor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

how do i do that?
Vishu
Trusted Contributor
Solution

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v

Just assign the points from the drop down menu in every reply and after that click on SUBMIT POINTS button in the bottom of the page.

Viktor Balogh
Honored Contributor

Re: vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 4 disks for "/dev/v