Operating System - HP-UX
1833796 Members
4783 Online
110063 Solutions
New Discussion

mirroring internal drives

 
SOLVED
Go to solution
MarkW_1
Regular Advisor

mirroring internal drives

Have new HP N class box. I am trying to mirror the second drive to the first in SAM. I cannot determine where this is done.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: mirroring internal drives

Mark:

An easy-to-follow procedure for mirroring can be found in the System Administration Tasks manual.

http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html

...JRF...

Alan Riggs
Honored Contributor
Solution

Re: mirroring internal drives

Don't use SAM, use the command line. Simply use lvextend -m 1 to establish the new mirror. If your vg00 resides on one disk and you want to mirror it to a second internal disk then:

pvcreate -B /dev/rdsk/c?t?d?
vgextend vg00 /dev/dsk/c?t?d?
mkboot /dev/dsk/c?t?d?
mkboot -a "hpux -lq" /dev/dsk/c?t?d?
repeat above for original root disk
for i in /dev/vg00/lvol*
do
echo lvextend -m 1 $i /dev/dsk/c?t?d?
lvextend -m 1 $i /dev/dsk/c?t?d?
done

Verify afterwards with vgdisplay -v vg00
I also recommend turning off mirror write cache and consistency for primary swap, but this can be done only in lvm maintenance mode and is not really necessary.
Madhu Sudhan_1
Respected Contributor

Re: mirroring internal drives

If you want to use SAM you can find it under
Disk and File Systems Management.

I don't think so SAM allows you to mirror onto a specific disk of your choice.

Suggest command line.

...Madhu

Think Positive
Anthony deRito
Respected Contributor

Re: mirroring internal drives

As posted in the lvextend man page,

"Mirror disk operations require the installation of the optional HP MirrorDisk/UX software, which is not included in the standard HP-UX operating system."

First check to see if you have the ability to mirror with software.

Tony
Matthias Zander
Advisor

Re: mirroring internal drives

Hi,
Be careful, that Your swap/dump volume (lvol2) is in the first 2GB of Your disk. If you have a big lvol10 in vg00, You will have trouble with the for-loop.
You can set the ALT-bootpath with "setboot -a hardwarepath_of_mirrordisk".
Larry Basford
Regular Advisor

Re: mirroring internal drives

I question the use of mirroring.
I'd rather have a good recovery tape. And use the drive space for something useful.
A disk having problems will probably corrupt the mirror.

Just my opinion. Comments welcome
Desaster recovery? Right !
Alan Riggs
Honored Contributor

Re: mirroring internal drives

Larry,
mirroring provides protection against hardware failure, pure and simple. It is essential to have a protection against drive failures in a system where availability is important. Where disk space is a concern, raid arrays provide availablity with lower overhead in terms of "wasted" disks. There is a performance degredation with raid arrays, though.

Also, while not integral to maintaining production, having data mirrors allows smooth and esay recovery options for a multitude of upgrade/testing situations.