Operating System - HP-UX
1834504 Members
2914 Online
110068 Solutions
New Discussion

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

 
John McWilliams_1
Frequent Advisor

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

We had a disk fail on a L1000 connected to an EMC symmetrix. Before I was notified the failed disk was replaced.

I am now unable to get the new disk working. ioscan shows the disk and it is listed in the vgdisplay.
I have tried pvcreate but get an error about needing the whole disk.
How do I remove the disk from the volume group and recreate it now the original is gone?

thanks John
8 REPLIES 8
Joseph Loo
Honored Contributor

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

hi,

check this post:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=456266

regards.
what you do not see does not mean you should not believe
Slawomir Gora
Honored Contributor

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

Hi,

I think you should run vgcfgrestore command.

vgcfgrestore -f /dev/your_vgname pv_path

for details look at man page.
mirco_1
Valued Contributor

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

use :

# vgreduce vgXX /dev/dsk/c6t11d2

# pvcreate -f /dev/rdsk/c6t11d2

# vgextend vgXX /dev/rdsk/c6t11d2

end then vgchange and vgcfgrestore
hy

Mirco Destro
Slawomir Gora
Honored Contributor

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

Hi,

of course vgcfgrestore -n instead of -f
Himanshu_3
Valued Contributor

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

Hi John,

One more better way of doing it is to boot the system in single user mode then run vgcfgrestore.

Rgds,
Himanshu
Venkatesan_5
Frequent Advisor

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

hi,

please do the following steps you can use the disk....

1. vgreduce /dev/vgxx /dev/dsk/c6t11d2

2. pvcreate -f /dev/rdsk/c6t11d2

3. vgextend /dev/vgxx /dev/dsk/c6t11d2


thats it.. then you can create lvol's and use it...


regds
Venkatesan.
John McWilliams_1
Frequent Advisor

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

Hello All. thank you for your replys.
I was missing one vital step.
First I had to do lvremove to all the logical volumes on the reported disk. Then I was able to do a vgreduce to remove the disk from the volume group.

Next I did pvremove on the disk.

I was then able to do the following steps

pvcreate
vgextend
lvcreate - to make the 3 missing logical volumes
newfs to put the file systems back on.

Regards John
John McWilliams_1
Frequent Advisor

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

The key to fixing this was the lvremove