Operating System - HP-UX
1833777 Members
2186 Online
110063 Solutions
New Discussion

Re: Replace a mirrored disk that belongs to a spanned VG

 
SOLVED
Go to solution
Daniel Robert
Frequent Advisor

Replace a mirrored disk that belongs to a spanned VG

I have read the When good disks go bad and a lot of forum discussions, but I have not come across that has this setup (and maybe it does not matter, but I want to validate that).

The way that I have it currently setup is that I have four disks in the server where the VG spans across two PV and that pair of disks is Strictly mirrored to the other. Here is the lvlnboot output:
# /usr/sbin/lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t0d0 (0/0/1/1.0.0) -- Boot Disk
/dev/dsk/c1t2d0 (0/0/1/1.2.0)
/dev/dsk/c2t0d0 (0/0/2/0.0.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0)
Boot: lvol1 on: /dev/dsk/c1t0d0
/dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c1t0d0
/dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c1t0d0
/dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c2t0d0, 0

The failing (but still active) disk is c1t2d0.

AFAIK, the procedure would be to:
1) remove the disk a few centimeters and let it spin-down
2) remove the disk and wait a few minutes before replacing it with the new one
3) vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
4) vgchange -a y /dev/vg00
5) mkboot /dev/rdsk/c1t2d0
6) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0
7) lnlnboot -R
8) vgsync /dev/vg00
9) check with lvdisplays

Is there a difference in replacing a PV that belongs a spanned VG as opposed to a single PV VG?
3 REPLIES 3
Kapil Jha
Honored Contributor
Solution

Re: Replace a mirrored disk that belongs to a spanned VG

just before step one
do
#pvchange -a N /dev/dsk/c1t2d0

and follow your steps.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Torsten.
Acclaimed Contributor

Re: Replace a mirrored disk that belongs to a spanned VG

According to the output above this disk is not a boot disk, so you don't need steps 5) and 6).

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!   
Daniel Robert
Frequent Advisor

Re: Replace a mirrored disk that belongs to a spanned VG

Ah, yes Kapil... I didn't catch that (D'oh!).

Good point Torsten, it slipped my mind that I was not replacing a boot drive, so I don't really need to do that (although it would not have hurt to do it).

That's why I like running this by the pros.