Operating System - HP-UX
1753555 Members
5352 Online
108795 Solutions
New Discussion юеВ

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

 
Rob van Buiten
Regular Advisor

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

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


I have tride
- mv /etc/lvmtab /etc/lvmtab.save
vgscan [-a]

but dont solve problem.


but problem is c29t0d0

un0008:/root # vgscan -av
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c1t2d0":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c29t0d0":
Invalid argument

vgdisplay output is:
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 15
Act PV 14
Max PE per PV 3482
VGDA 28
PE Size (Mbytes) 4
Total PE 48608
Alloc PE 29409
Free PE 19199
Total PVG 4
Total Spare PVs 0
Total Spare PVs in use 0


I have 1 "CUR PV" to much
How to remove this item from kernel

vgreduce -f vg00 #no output, no solution

HP-UX version is 11.11

Regards
Paul Ettema
7 REPLIES 7
Tim Nelson
Honored Contributor

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

Everything you will ever need to know..

see attached white paper.
Rob van Buiten
Regular Advisor

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

Tim,

problem is c29d0t0
it is not a disk but volume group see him

ioscan -fnC disk /dev/dsk/c29t0d0
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 275 1/0/2/1/0.2.3.0.0.0.0 sdisk CLAIMED DEVICE HP DISK-SUBSYSTEM
/dev/dsk/c29t0d0 /dev/rdsk/c29t0d0

Rob van Buiten
Regular Advisor

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

There is 1 device (c29d0t0) to much in kernel

all disk are present in VG (14)


Paul Ettema
Tim Nelson
Honored Contributor

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

Post output from following.

pvdisplay -v /dev/rdsk/c29t0d0

vgdisplay -v /dev/vg00

ioscan -fnH 1/0/2/1/0.2.3.0

vgchange -a y /dev/vg00

(BTW, this is one reason to keep /dev/vg00 simple, e.g. very few disks only enough to support OS)

Rob van Buiten
Regular Advisor

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

Tim,

attached de output.

I saw now strange things "NO_HW" for de new disks ?!

some other info:
I'm migrating from XP1024 to XP24000
with mirroring (by pvg group name).

All disks c4/c11 & c8/c16 are old one from XP-A and XP-B
and disks c25/c29 are new one XP-C

I need min 4 disks for 1 mirror (fact)

I just created a 3th mirror on new disks


what I now think is that there was already a 3th mirror but broken due missing disk.

output vgcfgrestore -n vg00 -l shows 24 (old) disks and


Rob van Buiten
Regular Advisor

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


Regards
Paul Ettema
Rob van Buiten
Regular Advisor

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

Tim,

NO_HW in "ioscan -fnH 1/0/2/1/0.2.3.0"
is odd.

one part of that output is:

target 208 1/0/2/1/0.2.3.0.0.15 tgt NO_HW DEVICE
disk 412 1/0/2/1/0.2.3.0.0.15.0 sdisk NO_HW DEVICE HP DISK-SUBSYSTEM
/dev/dsk/c29t15d0 /dev/rdsk/c29t15d0


but when I do "ioscan -fn | grep 1/0/2/1/0.2.3.0.0.15" I got CLAIMED.

# ioscan -fn | grep 1/0/2/1/0.2.3.0.0.15
target 208 1/0/2/1/0.2.3.0.0.15 tgt CLAIMED DEVICE
disk 412 1/0/2/1/0.2.3.0.0.15.0 sdisk CLAIMED DEVICE HP DISK-SUBSYSTEM

I think missing c4t0d6 & c4t8d7 is the problem?

Paul Ettema.