Operating System - HP-UX
1751933 Members
5015 Online
108783 Solutions
New Discussion юеВ

Re: vgcfgrestore - unable to restore config bec. of PV size???

 
SOLVED
Go to solution
cam9269
Regular Advisor

vgcfgrestore - unable to restore config bec. of PV size???

Hi Guys,

We've recently replaced a failed disk from one of our VGs which has the ff. disk assignments:
Failed disk is c6t0d0
------------------------------------

--- Physical volume groups ---
PVG Name PVG_primary
PV Name /dev/dsk/c4t8d0
PV Name /dev/dsk/c4t9d0
PV Name /dev/dsk/c4t10d0
PV Name /dev/dsk/c4t11d0
PV Name /dev/dsk/c4t12d0
PV Name /dev/dsk/c4t13d0
PV Name /dev/dsk/c4t14d0

PVG Name PVG_mirror
PV Name /dev/dsk/c6t0d0
PV Name /dev/dsk/c6t1d0
PV Name /dev/dsk/c6t2d0
PV Name /dev/dsk/c6t3d0
PV Name /dev/dsk/c6t4d0
PV Name /dev/dsk/c6t5d0
PV Name /dev/dsk/c6t6d0

--------------------------------------------

The PV's status is 'unavailable' in the vgdisplay output.

We are following instructions from the "When_Good_Disks_Go_Bad.pdf" document and the next step is to use: vgcfgrestore -n

But when we execute this, we get the ff. error messages:
----------------------------------------------
Size of Physical Volume "/dev/rdsk/c6t0d0" is smaller than the corresponding PV size in configuration backup file saved by "vgcfgbackup" command. Cannot restore.
----------------------------------------------

I know for a fact that we do have the same disk size and all... But we can't get past this issue. Would like to seek help with this one.

Thanks!
23 REPLIES 23
Kapil Jha
Honored Contributor

Re: vgcfgrestore - unable to restore config bec. of PV size???

Hi,

Since you are using PVG you have to have a disk with same or big size,

Since there are so many disk in PVG its better not to touch the config and get a disk with bigger size.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
cam9269
Regular Advisor

Re: vgcfgrestore - unable to restore config bec. of PV size???

But I am using the same disk size... wouldn't that be enough replacement?
Kapil Jha
Honored Contributor

Re: vgcfgrestore - unable to restore config bec. of PV size???

Ok so you can do one thing I suppose, do not use vgcfgrestore rather than add the disk from command line and vgsync it.
It should work.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
cam9269
Regular Advisor

Re: vgcfgrestore - unable to restore config bec. of PV size???

You mean I do:
1. vgextend
2. vgsync?
Michael Steele_2
Honored Contributor

Re: vgcfgrestore - unable to restore config bec. of PV size???

Hi

"...Size of Physical Volume "/dev/rdsk/c6t0d0" is smaller than the corresponding PV size in configuration backup file saved by "vgcfgbackup" command. Cannot restore..."

Please perform a 'diskinfo' on all your disks, obtain the product numbers for all and compare them with the old c6t0d0 product number.
Support Fatherhood - Stop Family Law
cam9269
Regular Advisor

Re: vgcfgrestore - unable to restore config bec. of PV size???

Thanks Michael, that's just what I did and found that c6t0d0 is smaller by 480bytes! So now, I am getting that disk replaced with the exact disk size as the ones already installed.

Will let you guys know how this goes.

Thanks for the replies!
Kapil Jha
Honored Contributor

Re: vgcfgrestore - unable to restore config bec. of PV size???

Yes vgextend and vgsync?


It would work, extend it with -g option is PVG.
Or enter the disk name later in /etc/lvmpvg file

BR,
Kapil+
I am in this small bowl, I wane see the real world......
AVV
Super Advisor

Re: vgcfgrestore - unable to restore config bec. of PV size???

HI,


If you have same size of disk, I would suggest a vgrestore.
Amitav
Frequent Advisor

Re: vgcfgrestore - unable to restore config bec. of PV size???

Hi,
If you have got the bigger disk now, please use vgcfgrestore to restore all the datas.