1752777 Members
6132 Online
108789 Solutions
New Discussion юеВ

configure mirror disks

 
SOLVED
Go to solution
Antonio Cardoso_1
Trusted Contributor

configure mirror disks

Hi,
I've a rp4440 box with 2x36Gb internal + 2x36Gb external on MSA30.
Is it correct to build vg00 with c2t1d0 mirrored on c4t0d0 and build vg01 with c3t0d0 mirrored on c4t1d0, so that both VGs have mirrors using different interface cards?

thanks.

Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
disk 1 0/1/1/1.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 2 0/2/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 4 0/2/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GMAS3367NC
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
8 REPLIES 8
Devender Khatana
Honored Contributor
Solution

Re: configure mirror disks

Hi,

You can mirror within internal disks itself as I am not sure you will be able to boot of the MSA30 disk. There are some additional settings and compatibility to boot off a MSA30 disk, if you meet them then it seems a good option. Also as both internal and external model are same what is the drive RPM for internal and external drives if they also match you can mirror like this otherwisr what simply is followed is mirror OS onto internal and data onto extenral.

HTH,
Devender
Impossible itself mentions "I m possible"
Arunvijai_4
Honored Contributor

Re: configure mirror disks

Hello,

Yes, you can go ahead and do that. Also, take a look at this guide,

http://docs.hp.com/en/B2355-90950/B2355-90950.pdf

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: configure mirror disks

Shalom Antonio,

You can mirror across controllers. It is recommended to do so, so your system will continue running after a controller failure.

Here is a guide to completely mirroring your vg00(boot) disk under lvm. It is good at least up to 11i v1

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

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
Antonio Cardoso_1
Trusted Contributor

Re: configure mirror disks

I will configure it this way, and check that system correctly boots on second device (on MSA30) if I remove the first one.

What is the purpose of command :
mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
compared to : mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0

?

Steven E. Protter
Exalted Contributor

Re: configure mirror disks

Shalom again.

Both commands are needed. One sets up the LIF area of the disk and this is a required part of the boot process.

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
Arunvijai_4
Honored Contributor

Re: configure mirror disks

This thread can help you to understand better,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=892534

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mridul Shrivastava
Honored Contributor

Re: configure mirror disks

The first mkboot is for copy all ode except the ones mentioned with -p option.
the second mkboot is to update AUTO file with hpux -lq so system will boot even if quorum is not resent.
I hope this answers ur query.
Time has a wonderful way of weeding out the trivial
Devender Khatana
Honored Contributor

Re: configure mirror disks

Hi,

As mentioned earlier the command os a part of complete root mirror procedure. It will exactly copy the contents of LIF to second volume. You can have a look at complete OS mirroring procedure here

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

See page 24.

HTH,
Devender
Impossible itself mentions "I m possible"