1755430 Members
3187 Online
108832 Solutions
New Discussion юеВ

vgcfgrestore

 
SOLVED
Go to solution
bond007
Advisor

vgcfgrestore


Hi,

Should i deactivate the VG before runnning vgcfgrestore, got doubt!

Thanks nd regards,

Bond
7 REPLIES 7
Patrice Le Guyader
Respected Contributor
Solution

Re: vgcfgrestore

Hello,


It's not from me, only from the man page.

Regards
Pat
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
melvyn burnard
Honored Contributor

Re: vgcfgrestore

well it depends what you are restoring.
If, for example, you had replaced a PV that was used to mirror another PV, then you could vgcfgrestore just that PV without deactivating the VG.
If you need to restore the whole VG, then this would definitely require the VG to be deactivated.
Read the man page for more info
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Torsten.
Acclaimed Contributor

Re: vgcfgrestore

If you replacing a bad disk and your system is at a current patch level, you must deactivate the physical volume (HDD) prior to restore the configuration:

e.g.

pvchange -a n /dev/dsk/c0t6d0
vgcfgrestore ...
pvchange -a y ...


In every case you have to activate the VG after this, e.g.

vgchange -a y vg01

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
rodh_z
Advisor

Re: vgcfgrestore

For defective Disk (non-mirrored)
1.ioscan -fnC disk > ioscan.txt
2. replaced disk if hot swap disk
3. vgcfgrestore -n vg01 /dev/rdsk/cxtxdx
4. vgchange -a y
5. newfs -F vxfs /dev/vg01/lvol_name

For defective disk (mirrored)
1. vgcfgrestore -n vg01 /dev/rdsk/cxtxdx
2. vgchange -a y vg01
3. vgsync vg01

this will help.

rodh_z
Advisor

Re: vgcfgrestore

For defective Disk (non-mirrored)
1.ioscan -fnC disk > ioscan.txt
2. replaced disk
3. vgcfgrestore -n vg01 /dev/rdsk/cxtxdx
4. vgchange -a y
5. newfs -F vxfs /dev/vg01/lvol_name

For defective disk (mirrored)
1. replaced disk
2. vgcfgrestore -n vg01 /dev/rdsk/cxtxdx
3. vgchange -a y vg01
4. vgsync vg01

this will help.

Sivakumar TS
Honored Contributor

Re: vgcfgrestore

Hi,

It is not mantatory to deactivate the VG.

there is an option -R to do a forceful restore too.

Regards,

Siva.
Nothing is Impossible !
Sivakumar TS
Honored Contributor

Re: vgcfgrestore


Bond,

we run,

3. vgcfgrestore -n vg01 /dev/rdsk/cxtxdx
4. vgchange -a y

vgchange -a y after restore just to resynchronyse the LVs.

Regards,

Siva.
Nothing is Impossible !