1832487 Members
4185 Online
110043 Solutions
New Discussion

ERROR VGCFGBACKUP

 
SOLVED
Go to solution
Miguel Carabano_1
Regular Advisor

ERROR VGCFGBACKUP

Hi,

When execute:

#vgcfgbackup /dev/vg02
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicate.
Cannot proceed with backup.

As I can resolve this problem?

I have used vgexport and vgimport and continuous the problem.

Thanks.
11 REPLIES 11
Mel Burslan
Honored Contributor

Re: ERROR VGCFGBACKUP

did you use the exact command as

vgcfgrestore -n vg02 /dev/rdsk/cXtXdX ??
________________________________
UNIX because I majored in cryptology...
Stephen Keane
Honored Contributor

Re: ERROR VGCFGBACKUP

Can you run

# vgdisplay

and

# vgdisplay /dev/vg02

baiju_3
Esteemed Contributor

Re: ERROR VGCFGBACKUP

You can try the below ,

1)backup current lvmtab using

cp -p /etc/lvmtab /etc/lvmtab.org

2)rm /etc/lvmtab

3)vgscan -v

Vgscan will create the new LVM tab with all the VGs.

4)compare the o/p of strings /etc/lvmtab and strings /etc/lvmtab.org

If everything looks good try the vgcfgresore on vg02 again .If succeful the you are set .


In case of any issues replace /etc/lvmtab with /etc/lvmtab.org backup file and try to fix the vg02 problem, you may export and import it again.


thx,
bl.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Miguel Carabano_1
Regular Advisor

Re: ERROR VGCFGBACKUP

Hi,

After of aplly command:
Server1:/etc>vgscan -v
Creating "/etc/lvmtab".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg0.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg0.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/sap.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/sap.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg0.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/sap.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/sap.
Couldn't stat physical volume "/dev/dsk/c4t2d0":
Invalid argument


/dev/sapdpq4
/dev/dsk/c0t0d0
/dev/dsk/c0t1d0
/dev/dsk/c0t2d0
/dev/dsk/c0t8d0
/dev/dsk/c0t10d0
/dev/dsk/c0t12d0
/dev/dsk/c1t0d0
/dev/dsk/c1t1d0
/dev/dsk/c1t3d0
/dev/dsk/c1t6d0
/dev/dsk/c1t9d0



/dev/vg01
/dev/dsk/c0t3d0
/dev/dsk/c0t4d0
/dev/dsk/c0t5d0



/dev/sapdpq3
/dev/dsk/c0t6d0
/dev/dsk/c1t5d0


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t11d0


/dev/sapvg2
/dev/dsk/c0t13d0



/dev/vg02
/dev/dsk/c0t14d0
/dev/dsk/c1t4d0
/dev/dsk/c1t12d0
/dev/dsk/c1t13d0



/dev/sapdpq2
/dev/dsk/c1t2d0
/dev/dsk/c1t8d0



/dev/vg00
/dev/dsk/c1t10d0
/dev/dsk/c1t11d0


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
Server1:/etc>vgchange -a y
Volume group "/dev/sapdpq4" has been successfully changed.
Volume group "/dev/vg01" has been successfully changed.
Volume group "/dev/sapdpq3" has been successfully changed.
Volume group "/dev/sapvg2" has been successfully changed.
Volume group "/dev/vg02" has been successfully changed.
Volume group "/dev/sapdpq2" has been successfully changed.
Volume group "/dev/vg00" has been successfully changed.
Server1:/etc>lvlnboot -Rv
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t10d0 (10/4/4.10.0)
/dev/dsk/c1t11d0 (10/4/4.11.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t11d0
Root: lvol3 on: /dev/dsk/c1t11d0
Swap: lvol2 on: /dev/dsk/c1t11d0
Dump: lvol2 on: /dev/dsk/c1t11d0, 0

Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.cof
Volume Group configuration for /dev/sapdpq2 has been saved in /etc/lvmconf/sapdf
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicate.
Cannot proceed with backup.
Server1:/etc>


As I can resolve this problem?

Thanks.
Sreedhar Nathani
Valued Contributor
Solution

Re: ERROR VGCFGBACKUP

Hi,

Can you paste the vgdisplay -v output. You might see a difference in ACT PV and CUR PV

Thanks
Sreedhar
Devender Khatana
Honored Contributor

Re: ERROR VGCFGBACKUP

Hi,

Any recent changes ? Perhaps some disk has been changes recently ?

Can you post "strings /etc/lvmtab" For current and old lvmtab file.

HTH,
Devender
Impossible itself mentions "I m possible"
Miguel Carabano_1
Regular Advisor

Re: ERROR VGCFGBACKUP

Hi,

#vgdisplay -v vg02
--- Volume groups ---
VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 5
Act PV 4
Max PE per PV 1016
VGDA 8
PE Size (Mbytes) 4
Total PE 2032
Alloc PE 1158
Free PE 874
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg02/lvol1
LV Status available/syncd
LV Size (Mbytes) 2500
Current LE 625
Allocated PE 625
Used PV 3

LV Name /dev/vg02/lvol2
LV Status available/syncd
LV Size (Mbytes) 2024
Current LE 506
Allocated PE 506
Used PV 1

LV Name /dev/vg02/lvol3
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0

LV Name /dev/vg02/lvol4
LV Status available/syncd
LV Size (Mbytes) 2024
Current LE 506
Allocated PE 506
Used PV 2

LV Name /dev/vg02/lv_temp
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 25
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t14d0
PV Status available
Total PE 508
Free PE 0

PV Name /dev/dsk/c1t4d0
PV Status available
Total PE 508
Free PE 372

PV Name /dev/dsk/c1t12d0
PV Status available
Total PE 508
Free PE 502

PV Name /dev/dsk/c1t13d0
PV Status available
Total PE 508
Free PE 0

********************************************

#strings /etc/lvmtab
/dev/sapdpq4
`H96
/dev/dsk/c0t0d0
/dev/dsk/c0t1d0
/dev/dsk/c0t2d0
/dev/dsk/c0t8d0
/dev/dsk/c0t10d0
/dev/dsk/c0t12d0
/dev/dsk/c1t0d0
/dev/dsk/c1t1d0
/dev/dsk/c1t3d0
/dev/dsk/c1t6d0
/dev/dsk/c1t9d0
/dev/vg01
/dev/dsk/c0t3d0
/dev/dsk/c0t4d0
/dev/dsk/c0t5d0
/dev/sapdpq3
/dev/dsk/c0t6d0
/dev/dsk/c1t5d0
/dev/sapvg2
/dev/dsk/c0t13d0
/dev/vg02
`H9;
/dev/dsk/c0t14d0
/dev/dsk/c1t4d0
/dev/dsk/c1t12d0
/dev/dsk/c1t13d0
/dev/sapdpq2
/dev/dsk/c1t2d0
/dev/dsk/c1t8d0
/dev/vg00
`H99N7
/dev/dsk/c1t10d0
/dev/dsk/c1t11d0

Miguel
Devender Khatana
Honored Contributor

Re: ERROR VGCFGBACKUP

Hi,

The problem here is quite clear and it describes that one of the disk was replaced in vg02 recently. That is the reason in vgdisplay output it is showing 5 PV's whereas in lvmtab and currently active PV's are only four.

If this was the case you can reduce the VG from the extra disk (Old one allready replaced)by

#vgreduce -f /dev/vg02

HTH,
Devender
Impossible itself mentions "I m possible"
Sreedhar Nathani
Valued Contributor

Re: ERROR VGCFGBACKUP

Hi,

vgdisplay -v
Cur PV 5
Act PV 4

** Kernel thinks this volume group has 5 disks, but lvmtab contains only 4 disks.

/dev/vg02
/dev/dsk/c0t14d0
/dev/dsk/c1t4d0
/dev/dsk/c1t12d0
/dev/dsk/c1t13d0

Incase if you don't have any problem with the filesystem mounting in this volume group
and no ??? marks against the lvdisplay -v /dev/vg02/ then you can do this

#cp /etc/lvmtab
#vgreduce -f /dev/vg02
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -av

>> After that you can take vgcfgbackup



Thanks
Miguel Carabano_1
Regular Advisor

Re: ERROR VGCFGBACKUP

Hi Sreedhar,

Thanks so much!

#vgcfgbackup vg02
Volume Group configuration for /dev/vg02 has been saved in /etc/lvmconf/vg02.con
f

Thanks

Miguel
Devender Khatana
Honored Contributor

Re: ERROR VGCFGBACKUP

Hi Miguel,

If the problem is resolved, take some time to assign points to the answers to your questions. Your profile shows you have not been doing that regularly. Here are your earlier posts for which you still need to do that.

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA869896&listType=unassigned&forumId=1

It will also give you prompt responses in future.

Regards,
Devender
Impossible itself mentions "I m possible"