1834640 Members
3185 Online
110069 Solutions
New Discussion

Re: Mirrordisk

 
Roger Realsen
Occasional Contributor

Mirrordisk

We just purchased a new rp344. The system came preconfigured with two 36GB internal drives. Only one of them is being used currently. We also purchased Mirrordisk and I would like to create a mirror with these two disk. My problem, don't know how to do it or where to go for information. SO this is my first stop on what I assume will be a long journey. Any help is appreciated.
4 REPLIES 4
D Block 2
Respected Contributor

Re: Mirrordisk

Roger, I found this and have used this on an rp24xx server.


1. mirror c1t15d0 to c3t15d0 on 11.11 using LVM

## ioscan -kfnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE SEAGATE ST3146807LC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0

disk 2 0/0/2/1.15.0 sdisk CLAIMED DEVICE SEAGATE ST3146807LC
/dev/dsk/c3t15d0 /dev/rdsk/c3t15d0

2. verify the Alternate bootpath:

# setboot
Primary bootpath : 0/0/1/1.15.0
Alternate bootpath : 0/0/2/1.15.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)

3. verify the lif area on the primary boot, and can do on the alternate once
the Alternate is mirrored.

# lifcp /dev/dsk/c1t15d0:AUTO -
hpux
#

what does your swap use ?

# swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 101 -101
memory 3159 103 3056 3%
total 7255 204 7051 3% - 0 -




# mirror'ed disk is: c3t15d0
pvcreate -B /dev/rdsk/c3t15d0
mkboot /dev/rdsk/c3t15d0 # r disk
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c3t15d0
lifcp /dev/dsk/c3t15d0:AUTO - # snd AUTO string to stdout
vgextend /dev/vg00 /dev/dsk/c3t15d0


# for each lvol one through eight or nine
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t15d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t15d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t15d0
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t15d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t15d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t15d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t15d0


lvlnboot -r /dev/vg00/lvol3 # Specifies the root logical volume
lvlnboot -s /dev/vg00/lvol2 # Specifies the swap logical volume
lvlnboot -d /dev/vg00/lvol2 # Specifies the dump logical volume
lvlnboot -b /dev/vg00/lvol1 # Specifies the boot logical volume
lvlnboot -R # Recovers any BDRA info
lvlnboot -v # Verify boot, root, swap and dump settings.



Golf is a Good Walk Spoiled, Mark Twain.
宋明哲
Honored Contributor

Re: Mirrordisk

I think You need to remove the Quatua limited.

#mkboot -l /dev/rdsk/c2t0d0
#mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t0d0
I'm back, water king
Steven E. Protter
Exalted Contributor

Re: Mirrordisk

My procedure, for what its worth.

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

Thanks to all that made this doc right.

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
Raj D.
Honored Contributor

Re: Mirrordisk

Hi Roger ,

You can check out this doc , its very good explained how you can do the ROOT disk mirror.

Hope this will help,

Cheers,
Raj
" If u think u can , If u think u cannot , - You are always Right . "