1832906 Members
2893 Online
110048 Solutions
New Discussion

vgcfgrestore Error....

 
SOLVED
Go to solution
hboo
Frequent Advisor

vgcfgrestore Error....

Hi all.
Please I need help!

I'm making a vgcfgrestore after change a disk and the message is:

Cannot restore Physical Volume /dev/dsk/c1t0d0 Detach the PV or detactivate de VG before restoring the PV...

Also, I tried whit pvchange and vgchange and, the message is still show when execute vgcfgrestore...

This is an emergency :(
4 REPLIES 4
Yang Qin_1
Honored Contributor

Re: vgcfgrestore Error....

Do you know which VG that PV belongs to? Is that VG is still active? and may sure you do have a good backup file for that PV.

Can you run a "vgcfgrestore -n /dev/vgxx -l" to list the PVs stored in default backup file?

Yang
hboo
Frequent Advisor

Re: vgcfgrestore Error....

I tried to deactivate VG whit vgchange, and when execute

vgcfgrestore -n /dev/vgxx -l

the message is

Cannot restore Physical Volume /dev/dsk/c1t0d0 Detach the PV or detactivate de VG before restoring the PV...
IT_2007
Honored Contributor
Solution

Re: vgcfgrestore Error....

You need to do the following.

Was this a dead disk before replacement?

If so, you can just pull bad disk and put new one.
then do:
pvcreate /dev/rdsk/cXXtYYdZZ
vgcfgrestore -n /dev/vg02 /dev/dsk/cXXtYYdZZ
vgsync /dev/vg02
hboo
Frequent Advisor

Re: vgcfgrestore Error....

Thank's all.

see you
; )