Operating System - HP-UX
1752725 Members
5733 Online
108789 Solutions
New Discussion

Re: Failed Mirror in 11.11

 
Nyck_1
Super Advisor

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

 

 

4 REPLIES 4
Patrick Wallek
Honored Contributor

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.

Robert_Jewell
Honored Contributor

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

----------------
Was this helpful? Like this post by giving me a thumbs up below!
Torsten.
Acclaimed Contributor

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!   
Nyck_1
Super Advisor

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