1754350 Members
4620 Online
108813 Solutions
New Discussion юеВ

Re: Invalid LVMREC

 
LAFDAL_1
Advisor

Invalid LVMREC

Hello evrybody,
I tried the vgcfgbackup on a volume group, I have the following message:

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

Can you help me how to solve this problem.

Thanks.

Note
My machine is:
HP-UX B.11.00 A 9000/871/D270
Zidane LAFDAL
6 REPLIES 6
Ravi_8
Honored Contributor

Re: Invalid LVMREC

Hi,
check whether LANG parameter has ben set to C or not which can be seen using #locale command. if not issue #export LANG=C.
can i have the command you issued to do vgcfgbackup
never give up
LAFDAL_1
Advisor

Re: Invalid LVMREC

The command issued issued is :

vgcfgbackup vgsapdata

Actually LANG is not set.

I will set to C now to see what will give.
Zidane LAFDAL
Ravi_8
Honored Contributor

Re: Invalid LVMREC

Hi,
is vgsapdata is a VG, because in most cases all VG's are named as vg00/vg01... . i think vgsapdata which you have specified is a file system.
eg: tobackup vg00 we use #vgcfgbackup /dev/vg00. The backup destination will be default /etc/lvmconf/vg00.backup.
To force the destination to other file say /tmp
#vgcfgbackup -f /tmp/vg00.backup /dev/vg00
never give up
LAFDAL_1
Advisor

Re: Invalid LVMREC

vgsapdata is a volume group
And we are not obliged to specify /dev in the command. It will be added by default.
If the LANG is unset, It takes the the default value, i-e "C".
Zidane LAFDAL
Ravi_8
Honored Contributor

Re: Invalid LVMREC

Hi, Lafdal

This is problem is beyond my knowledge and the problems i had faced.
sorry....
never give up
Sanjay_6
Honored Contributor

Re: Invalid LVMREC

Hi,

Quote //

NOTE: If the lvlnboot or lvrmboot command returns a message about bad LVMREC, a vgcfgrestore to that disk should fix the problem as long as there is a good vgcfgbackup. The LVMREC backup files are in /etc/lvmconf and can be read or verified with the 'strings' command or `vgcfgrestore -l vgname`.

// unquote

Hope this helps.

thanks