cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Mirror

 
SOLVED
Go to solution
Regular Advisor

Mirror

Dear Sirs,

A lost the alternate harddisk beloning to my VG00 volume group in my rx8640 running hp-ux 11.23. I have replaced it and trying to restore the mirror.

when i get to the command

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0

I get the following response:

Configuration info for Physical Volume "/dev/rdsk/c2t6d0" not found
in "/etc/lvmconf/vg00.conf" :
Character-special file for PV not supplied on command line, OR
PV did not belong to Volume Group /dev/vg00 when configuration file was created.
You have mail in /var/mail/root.

The content of /etc/lvmconf/vg00.conf is as follows:

#strings /etc/lvmconf/vg00.conf
CONFIG01
/dev/vg00
/dev/rdsk/c0t6d0s2
/dev/rdsk/c2t6d0s2
LVMREC01
HPLVMBDRE
LVMREC01
HPLVMBDRE
VGDA0001
VGSA0001E
fisdbpro:/#


i am locked so i need your urgent help.

Thank you very much.

Kingsley

11 REPLIES 11
Honored Contributor

Re: Mirror

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
Problems are common to all, but attitude makes the difference
Honored Contributor

Re: Mirror

Hi..

Try with s2:

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0s2
Don't fix what ain't broke
Honored Contributor

Re: Mirror

# strings /etc/lvmtab

show your device ?

if not you can try;

# vgchange -a y /dev/vg00

then ,

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0

again.
Regular Advisor

Re: Mirror

Hi Sirs,

I did what you directed and the following is the response:

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0s2
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c2t6d0s2",
Detach the PV or detactivate the VG, before restoring the PV.

#vgchange -a y /dev/vg00
Volume group "/dev/vg00" has been successfully changed.

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0
Configuration info for Physical Volume "/dev/rdsk/c2t6d0" not found
in "/etc/lvmconf/vg00.conf" :
Character-special file for PV not supplied on command line, OR
PV did not belong to Volume Group /dev/vg00 when configuration file was created.

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0s2
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c2t6d0s2",
Detach the PV or detactivate the VG, before restoring the PV.

Thank you.

Kingsley
Honored Contributor
Solution

Re: Mirror

# pvchange -a n /dev/dsk/c2t6d0s2
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0s2
# pvchange -a y /dev/dsk/c2t6d0s2
Don't fix what ain't broke
Regular Advisor

Re: Mirror

Dear All

Thanks for all your contributions. Now my last hurdle is, when i do the command below, i get the attached response.

#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0

lvextend: Physical volume "/dev/dsk/c2t6d0" does not belong
to volume group "/dev/vg00".

Someone should help me.

Thanks.

Kingsley
Respected Contributor

Re: Mirror

hi,
Please try,

#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0s2

Bijeesh

Regular Advisor

Re: Mirror

This is the result.

#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t6d0s2

lvextend: "MirrorCopies" parameter "1" must be larger than existing number "1".
Respected Contributor

Re: Mirror

Ooops...!!
Sicne you are REPLACING the mirror disk,this step is not required.
Just do

#vgsync /dev/vg00