1748128 Members
3640 Online
108758 Solutions
New Discussion юеВ

Re: Mirror

 
SOLVED
Go to solution
KINGSLEY_1
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
Johnson Punniyalingam
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
R.K. #
Honored Contributor

Re: Mirror

Hi..

Try with s2:

#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0s2
Don't fix what ain't broke
Hakki Aydin Ucar
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.
KINGSLEY_1
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
R.K. #
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
KINGSLEY_1
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
Bijeesh
Respected Contributor

Re: Mirror

hi,
Please try,

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

Bijeesh

KINGSLEY_1
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".
Bijeesh
Respected Contributor

Re: Mirror

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

#vgsync /dev/vg00