1753882 Members
7789 Online
108809 Solutions
New Discussion юеВ

Re: Mirrordisk/UX

 
Learn_1
Regular Advisor

Mirrordisk/UX

Hi Everyone,
running hp-ux 11i on hp rp7410 server.have installed Mirrprdisk/UX software for disk mirroring.want to mirror local system disk with 2nd local disk.i am writing down the script for mirroring procedure.if there is any mistake then please do let me know so that i may correct this mistake before applying it to live system.Please mention precaution before mirroring disks.
also i do need some explainination which i will mention in this email.

#pvcreate -Bf /dev/rdsk/c?t?d?
(i will mention this address after checking it with ioscan command))

#vgcreate /dev/vg00 dev/rdsk/c?t?d?
(here should we use rdsk or dsk in all the following locations)

#mkboot dev/rdsk/c?t?d?

#mkboot -a "hp-ux -lq(;0)/stand/vmunix" /dev/rdsk/c?t?d?
(here will you please explain the function of 0 and also if we specify -lq then should we specify the alternate boot path or not?)

#vgextend vg00 /dev/rdsk/c?t?d
#lvextend -m 1 /dev/vg00/lvol1 /dev/rdsk/c?t?d?
#lvextend -m 1 /dev/vg00/lvol2 /dev/rdsk/c?t?d?
#lvextend -m 1 /dev/vg00/lvol3 /dev/rdsk/c?t?d?
(Here does lvol1,lvol2,lvol3 refer to roor,boot,swap volumes.if i am wrong then please explain and correct)

# /usr/sbin/lvlnboot -b /dev/vg00/lvol1
# /usr/sbin/lvlnboot -s /dev/vg00/lvol2
# /usr/sbin/lvlnboot -r /dev/vg00/lvol3
# lvlnboot -v
(here -b=for boot volume,-r=for root,-s=for swap volume,-v=for print verbose messages)

#vgcfgbackup /dev/vg00
2 REPLIES 2
twang
Honored Contributor

Re: Mirrordisk/UX

The following steps for creating mirror boot disk:

/dev/dsk/c2t2d0 will be the disk we want to
create a mirror copy for the existing root disk
(/dev/dsk/c1t2d0) inside the same vg, vg00

1) pvcreate -B /dev/rdsk/c2t2d0
2) mkboot -l /dev/rdsk/c2t2d0
3) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0
4) vgextend /dev/vg00 /dev/dsk/c2t2d0
5) lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
lvextend -m
..(all LVs on vg00)
6) pls check for if:
lvol1 on /stand (this is boot lv)
lvol3 on / (this is root lv)
lvol2 is swap lv

7) lvlnboot -r /dev/vg00/lvol3 (root on /)
8) lvlnboot -s /dev/vg00/lvol2 (swap)
lvlnboot -d /dev/vg00/lvol2 (dump) (optional)
9) lvlnboot -R /dev/vg00
10) lvlnboot -v (to confirm all correct)
11) vgcfgbackup /dev/vg00
melvyn burnard
Honored Contributor

Re: Mirrordisk/UX

A: read the replies in your previous post:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcf783f9a15add711abdc0090277a778c,00.html

B: Read the manual at:
http://docs.hp.com/hpux/pdf/B2355-90742.pdf
and especially Chapter 6, subsection Managing Mirrored File Systems. It is all in htere
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!