cancel
Showing results for 
Search instead for 
Did you mean: 

vgcfgrestore doesn't work..

 
UnixT
Frequent Advisor

vgcfgrestore doesn't work..

HI Gurus,

I hv an hp ux rx260-18 B.11.23, in that I mirrored the root disk with another disk. now I did a pvchange -a n altdisk. now I want to vgcfgrestore the same configuration to a new disk which is on a new path. I tried the below but could not. can any one help me in this.


[rx260-18]/etc/lvmconf
# vgcfgrestore -f /etc/lvmconf/vg00.conf -o /dev/rdsk/c2t1d0 /dev/rdsk/c2t0d0
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c2t0d0",
Detach the PV or detactivate the VG, before restoring the PV.
[rx260-18]/etc/lvmconf
#

# vgcfgrestore -n /dev/vg00 -o /dev/dsk/c2t1d0 /dev/dsk/c2t0d0
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c2t0d0",
Detach the PV or detactivate the VG, before restoring the PV.
[rx260-18]/etc
5 REPLIES
Hakki Aydin Ucar
Honored Contributor

Re: vgcfgrestore doesn't work..

Try this way:

vgchange -a n vg00
vgcfgrestore -n /dev/vg00 -o /dev/dsk/c2t1d0 /dev/dsk/c2t0d0
Michael Steele_2
Honored Contributor

Re: vgcfgrestore doesn't work..

Hi

Try two things

a) /usr/sbin/vgcfgrestore -n vg_name -l

See the disks in the map

http://docs.hp.com/en/B2355-90692/vgcfgrestore.1M.html

b) vgscan -p -a -v

Message to all disks, read their lvm headers, verify the metadat

-p preview

-a all controllers

-v verbose

Note: If you DON'T use -p you will over write your /etc/lvmtab. Make a backup first just in case.

Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: vgcfgrestore doesn't work..

http://docs.hp.com/en/B2355-90692/vgscan.1M.html
Support Fatherhood - Stop Family Law
Kapil Jha
Honored Contributor

Re: vgcfgrestore doesn't work..

How many alternate paths you have, if you have more than one try
#pvchange -a N altdisk

N deactivates all the paths....

then try
vgcfgrestore -n /dev/vg00 -o /dev/dsk/c2t1d0 /dev/dsk/c2t0d0

BR,
Kapil+


I am in this small bowl, I wane see the real world......
R.K. #
Honored Contributor

Re: vgcfgrestore doesn't work..

Hi..

Hope you are doing pvchange on the new disk that is on a new path.

Then try,
# vgcfgrestore -n /dev/vg00 -o /dev/dsk/c2t1d0 /dev/dsk/c2t0d0

old path: c2t1d0
Don't fix what ain't broke