1827742 Members
3324 Online
109969 Solutions
New Discussion

vgcfgbackup error

 
SOLVED
Go to solution
Jannik
Honored Contributor

vgcfgbackup error

The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.
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.
jaton
10 REPLIES 10
Fabio Ettore
Honored Contributor

Re: vgcfgbackup error

Hi,

usually this error is due to some differenices between /etc/lvmtab and /etc/lvmconf/vgXX.conf (in this instance vg00.conf).
In order to solve this problem

# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v

and re-try the backup.

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Pete Randall
Outstanding Contributor

Re: vgcfgbackup error

vgdisplay -v vg00: how many disks does it show?
strings /etc/lvmtab: how many disk does it show for vg00?
mv /etc/lvmtab /etc/lvmtab.old
vgscan -a


Pete

Pete
Jannik
Honored Contributor

Re: vgcfgbackup error

the kernel is the one having problems:
vgreduce -f /dev/vg00
would that solv the prob?
jaton
Fabio Ettore
Honored Contributor
Solution

Re: vgcfgbackup error

yes, you can do it too; the following steps should solve your problem:

# vgreduce -f /dev/vg00
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v
# vgcfgbackup vg00

Best regards,
Ettore
WISH? IMPROVEMENT!
Jannik
Honored Contributor

Re: vgcfgbackup error

root@tm012[/] # vgreduce -f /dev/vg00
PV with key 1 sucessfully deleted from vg /dev/vg00
Repair done, please do the following steps.....:
1. save /etc/lvmtab to another file
2. remove /etc/lvmtab
3. use vgscan(1m) -v to re-create /etc/lvmtab
4. NOW use vgcfgbackup(1m) to save the LVM setup
root@tm012[/] # mv /etc/lvmtab /etc/lvmtab.old
root@tm012[/] # rm /etc/lvmtab
rm: /etc/lvmtab non-existent
root@tm012[/] # vgscan -v
Creating "/etc/lvmtab".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg00".
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument


/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0


Scan of Physical Volumes Complete.
root@tm012[/] # vgcfgbackup -u /dev/vg00
vgcfgbackup: Configuration file "/etc/lvmconf/vg00.conf" not found or is corrupted
jaton
Shahul
Esteemed Contributor

Re: vgcfgbackup error

Hi,

If your all PVs are connected and online, try

#vgdisplay -v /dev/vg00 verify CUR PVs and ACT PVs. If CUR PV is more than ACT PV, then you can give a try with vgreduce -f /dev/vg00. This will remove any missing PVs.

Keep a copy of /etc/lvmtab before doing all these.

Good luck
Shahul
Fabio Ettore
Honored Contributor

Re: vgcfgbackup error

The reason of your problem is about the change of instance numbers for some disks.
To solve this problem try

# insf -e

and then

# vgscan -v

Best regards,
Ettore
WISH? IMPROVEMENT!
Jannik
Honored Contributor

Re: vgcfgbackup error

after insf -e and vgscan -v # which worked

root@tm012[/] # vgcfgbackup -u /dev/vg00
vgcfgbackup: Configuration file "/etc/lvmconf/vg00.conf" not found or is corrupted
root@tm012[/] #
root@tm012[/] # ll "/etc/lvmconf/vg00.conf"
/etc/lvmconf/vg00.conf not found
jaton
Pete Randall
Outstanding Contributor

Re: vgcfgbackup error

Jannik,

The -u switch says to update the existing file. Try it without the -u.


Pete

Pete
Jannik
Honored Contributor

Re: vgcfgbackup error

root@tm012[/] # vgcfgbackup /dev/vg00
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

TNX All
jaton