1834391 Members
1838 Online
110066 Solutions
New Discussion

MIrroring system disks

 
SOLVED
Go to solution
Joe Profaizer
Super Advisor

MIrroring system disks

I just finished mirroring my logical volumes for my system disk (lvextend -m 1 ......). Do you have to mirror the swapfile(s) (/dev/vg00/lvol2) also?
4 REPLIES 4
Vincenzo Restuccia
Honored Contributor
Solution

Re: MIrroring system disks

Yes,I think you mirror lvol2 otherwise the mirror not boot.
Shannon Petry
Honored Contributor

Re: MIrroring system disks

TO be safe, the answer is yes. If you are going to spend the system resources to run mirroring, you may as well do it right. All of the volumes in vg00 should be mirrored. Dont forget to make the mirror disk bootable before you mirror the volume group.

Regards,
Shannon
Microsoft. When do you want a virus today?
Bill McNAMARA_1
Honored Contributor

Re: MIrroring system disks

yes,
remember that when your pri disk fails, and you've got some disactivate process in swap, you will switch pv.
If you switch and the disactivated process is not paged in, because swap is not mirrored, you'll probably end up getting a panic.
You will boot up and reinit swap though, although you could have avoided the panic by mirroring everything.

Later,
Bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: MIrroring system disks

Heres an example script to setup a mirror on a disk c1t5d0

# pvcreate -B /dev/rdsk/c1t5d0
# vgextend vg00 /dev/dsk/c1t5d0
# mkboot -l /dev/rdsk/c1t5d0
# mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c1t5d0
# for LVOL in /dev/vg00/lv*
> do
> echo $LVOL
> lvextend -m 1 $LVOL
> done

Later,
Bill
It works for me (tm)