Operating System - HP-UX
1748180 Members
3864 Online
108759 Solutions
New Discussion юеВ

Re: HP/UX 11.0 REPLACE BAD BOOT MIRROR DRIVE

 
Mike Jungert
New Member

HP/UX 11.0 REPLACE BAD BOOT MIRROR DRIVE

I have two physical boot volumes in vg00.
Primary Boot /dev/dsk/c1t15d0 and Mirror Boot /dev/dsk/c1t14d0. The mirror dirve went
bad. I replaced the mirror with a new drive, but now I need to set it up for mirroring.
Does anyone have a step by step procedure for
this.
I'D rather be flying
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: HP/UX 11.0 REPLACE BAD BOOT MIRROR DRIVE

remove bad drive
put in new drive

# pvcreate -B /dev/rdsk/c?t?d?
# vgcfgrestore -n vg00 /dev/rdsk/c?t?d?
# mkboot /dev/rdsk/c?t?d?
# mkboot -a "hpux -lq (;)/stand/vmunix" /dev/rdsk/c?t?d?
# vgchange -a y vg00
# vgsync vg00
Steven E. Protter
Exalted Contributor

Re: HP/UX 11.0 REPLACE BAD BOOT MIRROR DRIVE

Before Patrick's procedure, you MIGHT need to run ioscan.

after I'd run lvlnboot -v to display the information so things came out the way they are supposed to.

Example

[2779#] lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0


Good Luck,

Regards,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
twang
Honored Contributor

Re: HP/UX 11.0 REPLACE BAD BOOT MIRROR DRIVE

vg00 consists of two 2g disks with one being a mirror. To replace
both 2G disks with new disks. Run lvreduce -m 0 /dev/vg00/lvol # pv path to remove the mirrored extents from each logical volume in vg00 from the mirror disk.
Run vgreduce /dev/vg00 pv path to remove the mirror disk from vg00.
Shutdown the system and replace the mirror disk with the 4g disk.
Boot the box as normal.
To mirror vg00 to the new 4g disk. Be certain to set the alternate boot path to this 4g disk.
Shutdown and boot from the newly mirrored 4g disk.
Run lvreduce -m 0 /dev/vg00/lvol# pv path to remove the mirrored extents from each logical volume in vg00 where pv path is the remaining 2g disk.
Run vgreduce /dev/vg00 pv path to remove the 2g disk from vg00.
Shutdown the system and replace the remaining 2g disk with the 4g disk.
Boot the box normally.
To mirror vg00 to the new 4g disk.
Shutdown the system and boot from this just mirrored 4g disk.