Failed Mirror in 11.11 (376 Views)
Reply
Super Advisor
Nyck_1
Posts: 224
Registered: ‎01-07-2005
Message 1 of 5 (376 Views)

Failed Mirror in 11.11

Hello,

 

I have a server which has has it's mirror disk fail, the disk has now been replaced but I'm still having issues getting the mirroring set back up. Can someone let me know the process for this task please?

 

lvreduce -m 0 -A n /dev/vg00/lvol1 /dev/dsk/c2t0d0

lvreduce: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":

The specified path does not correspond to physical volume attached to

this volume group

lvreduce: Warning: couldn't query all of the physical volumes.

lvreduce: Physical volume "/dev/dsk/c2t0d0" does not belong

to volume group "/dev/vg00".

Logical volume "/dev/vg00/lvol1" is not reduced.

milcon01:/#

milcon01:/# vgreduce vg00 /dev/dsk/c2t0d0

vgreduce: Couldn't query physical volume "/dev/dsk/c2t0d0":

The specified path does not correspond to physical volume attached to

this volume group

milcon01:/#

milcon01:/# pvcreate -B /dev/rdsk/c2t0d0

pvcreate: The physical volume "/dev/dsk/c2t0d0" is already recorded in the "/etc/lvmtab" file.

milcon01:/#

milcon01:/# strings /etc/lvmtab

/dev/vg00

/dev/dsk/c2t0d0

/dev/dsk/c2t1d0

 

cheers

 

nick

 

 

Honored Contributor
Patrick Wallek
Posts: 13,786
Registered: ‎06-21-2000
Message 2 of 5 (365 Views)

Re: Failed Mirror in 11.11

If you can find the "When Good Disks Go Bad" whitepaper, that is an immense help when replacing a disk.

 

In your situation, the steps I would do are:

 

--Verify the disk is CLAIMED in 'ioscan -fnC disk'

 

# vgcfgrestore -n vg00 /dev/rdsk/c2t0d0

# vgchange -a y vg00

# vgdisplay -v vg00

(check and make sure /dev/dsk/c2t0d0 shows as 'available' in the output)

# mkboot /dev/rdsk/c2t0d0

# mkboot -a "hpux -lq" /dev/rdsk/c2t0d0

# vgsync vg00

 

The vgsync will resync the mirrors between your 2 disks.

Honored Contributor
Robert_Jewell
Posts: 1,239
Registered: ‎06-26-2001
Message 3 of 5 (362 Views)

Re: Failed Mirror in 11.11

Here is a link to the document Patrick referenced:

 

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf

 

-Bob

Acclaimed Contributor
Torsten.
Posts: 23,450
Registered: ‎10-02-2001
Message 4 of 5 (359 Views)

Re: Failed Mirror in 11.11

You maybe rebooted with the bad disk, so this disk is not listed in "vgdisplay" at all. Likely you performed some steps to remove the disk already (usually not needed at all).

Perform the suggested steps and do

# vgdisplay -v vg00

# lvlnboot -v

and post.



If you have problems to do a "vgcfgrestore", you need to do a "pvchange -a n ..." first.

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!   
Super Advisor
Nyck_1
Posts: 224
Registered: ‎01-07-2005
Message 5 of 5 (350 Views)

Re: Failed Mirror in 11.11

Hello,

 

I'm not sure what happened with this server as I was not the first port of call to fix it as it's in our US data center, but we managed to get it working using the below syntax:-

 

# vgcfgrestore -n vg00 /dev/rdsk/c2t0d0

      This will restore the LVM headers to the new disk.

 

Next proceed to re-activate the VG:

  # vgchange -a y vg00

      You should now see the disk as part of the VG again.

 

Assuming this is a mirrored boot disk then proceed with the mkboot commands:

      # mkboot -l /dev/rdsk/c2t0d0

      # mkboot -a "hpux -lq" /dev/rdsk/c2t0d0

 

Reset the root/boot/dump/swap assignments:

      # lvlnboot -R

      # lvlnboot -v     (view to confirm)

 

Start the sync of any mirrored logical volumes:

      # vgsync /dev/vg00

 

Thanks to all who responded :-)

 

cheers

 

nick

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.