Operating System - HP-UX
1833059 Members
2604 Online
110049 Solutions
New Discussion

vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

 
SOLVED
Go to solution
M.J. van der Meer
Frequent Advisor

vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

Hi,

When running make_recovery for backup it fails. I've tried to recreate the lvmtab, but no solution. Message: "The Volume Group /dev/vg11/group was not matched with any Physical Volumes". The message in /var/opt/ignite/logs: "vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3".
Any suggestions?

Thanks
Martijn
9 REPLIES 9
Rainer_1
Honored Contributor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

try to restore LVM information

vgcfgrestore -n vg11
Darrel Louis
Honored Contributor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

Martijn,

It seems that there is a corruption in your lvm.
Check the following, if it?s correct:
- strings /etc/lvmtab|grep vg11
- strings /etc/lvmconf/vg11.conf
- vgdisplay -v /dev/vg11 ### Couldn?t query ???

If it?s correct you can?t make a backup(vgcfgbackup) of /dev/vg11!!!!

Does the disk belong to the Volume Group?
M.J. van der Meer
Frequent Advisor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

Hi Rainer,

Can I use this command without risking data loss? It is still an active mountpoint.

Martijn
M.J. van der Meer
Frequent Advisor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

Hi Darrel,

My lvmtab does not include vg11

Martijn
Rainer_1
Honored Contributor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

check the default backed up LVM data with

vgcfgrestore -f /etc/lvmconf/vg11.conf -l

If it looks good you could make vgcfgrestore
Darrel Louis
Honored Contributor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

Martijn,

Is /dev/vg11 mounted?
- If yes it could be that /etc/lvmtab is corrupt.
- vgdisplay does not give a error?

If not, can you mount it?
Anthony deRito
Respected Contributor
Solution

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

It is important to understand the concepts involved when trying to troubleshoot an LVM problem. Each LVM disk (a non-bootable LVM disk) layout has the following components:

--- Physical Volume Reserve Area (PVRA) ---
--- Volume Group Reserve Area (VGRA) ----
--- User Data Area ---
--- Bad Block Relocation Pool (BDRA) ---

When you manually run vgcfgrestore, or when it is run by default when executing any LVM command, a copy of the disk headers PVRA and VGRA are written to the /etc/lvmconf directory. If there is ever a problem suspected of the actual LVM disk headers on the physical disk, vgcfgrestore is the primary tool used to recover those disk headers from /etc/lvmconf back to disk. If your headers are corrupted and you do not have a good backup in /etc/lvmconf... you are SOL. The only other option (sort of... see below) is to find a good backup from your daily system backups.

Now the /etc/lvmtab file is simply an ASCII file used to keep track of your LVM configuration. You do not need it to run your system. However, almost all LVM commands use the contents of this file when they execute. This is why this file must be present and kept up-to-date. If you suspect an incomplete, corrupt or out-of-date /etc/lvmtab file, rebuilding it with vgscan is the way to go. Error messages from LVM commands can be simply an indication of an incomplete (or corrupt) ASCII file like lvmtab and not a problem with the LVM disk itself.

As far as the message from Ignite relating to an invalid LVMREC on physical volume /dev/rdsk/c3t1d3... not knowing how Ignite is coded... probably refers to the PVRA of that disk. What you need to determine is vg11 a volume group you want to keep on your system? What do you know of this volume group?

If you cannot do without vg11, and you need the data in that vg then you will need to get back those headers. Like I said before, if your LVM headers that are backed up in /etc/lvmconf are corrupt and you cannot find a good backup, you are SOL.... except for the last resort commands, vgexport and vgimport. vgexport will completely remove the VG from the LVM configuration and vgimport will add them back into the LVM configuration by reading the headers from the disk. It will also back up a good copy of the headers to /etc/lvmconf and add it to your /etc/lvmtab file. The successful completion of vgimport is entirely dependent on its being able to read the LVM disk headers.

I know this was a lot of information and I hope that I did not bore you, but my attempt was to give you an understanding of some of these concepts that are oftentimes misunderstood.

Tony

M.J. van der Meer
Frequent Advisor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

Hi all,

Thanks for your replies. Vgexport/import was the solution.

Martijn
leelangco_1
Frequent Advisor

Re: vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c3t1d3

tony's reply is wonderful!