Operating System - HP-UX
1835057 Members
3026 Online
110073 Solutions
New Discussion

MirrorUX ... how to mirror?

 
SOLVED
Go to solution
FTSE SysAdmin
Frequent Advisor

MirrorUX ... how to mirror?

Hi,

I'm struggling to find a procedure to mirror two disks (including the bootable area), on HPUX11.00 and with mirrorUX.

In my case I've both disks under vg00 but just one has the bootable area and all system file-systems. I'd like to mirror this disk to the other.

If anyone has a procedure (or a link to it) or some tips regarding this mirror software please let me know. Thanks

Regards,
Miguel
Miguel Ribeiro
8 REPLIES 8
Vincent Farrugia
Honored Contributor

Re: MirrorUX ... how to mirror?

Hello,

Here are two documents about your problem.

This for file system LVs

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

This for root and swap LVs

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

HTH,
Vince
Tape Drives RULE!!!
Carlos Fernandez Riera
Honored Contributor

Re: MirrorUX ... how to mirror?

To make a disk bootable you must reduce it from its current vg, and you must be sure that ther is any space configured on that disk.


Ex: disk1 /dev/dsk/c1t0d0
disk2: /dev/dsk/c2t0d0

pvdisplay /dev/dsk/c2t0d0 | grep -i allocated

IF it is 0 , then:

vgreduce /dev/vg00 /dev/dsk/c2t0d0

pvcreate -B /dev/rdsk/c2t0d0

vgextend /dev/vg00 /dev/dsk/c2t0d0

lvextend -m 1 /dev/vg00/lvol1

lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol3


for lv in $( find /dev/vg00 -type b)
do
lvextend -m 1 $lv # 1, 2 and 3 will fail, they are mirrored yet !!
done


mkboot /dev/rdsk/c2t0d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0

lvlnboot -R




Thats all folks.....

unsupported
Ceesjan van Hattum
Esteemed Contributor

Re: MirrorUX ... how to mirror?

Lets assume vg00 is now on only 1 disk: /dev/dsk/c0t0d0.
Assume your new disk is /dev/dsk/c0t1d0:

dd if=/dev/null of=/dev/rdsk/c0t1d0 # make it clean
pvcreate -B -f /dev/rdsk/c0t1d0
vgextend /dev/vg00 /dev/dsk/c0t1d0
for i in 1 2 3 4 5 6 7 8
do
lvextend -m 2 /dev/vg00/lvol$i /dev/dsk/c0t1d0
done
mkboot -l /dev/dsk/c0t1d0
mkboot -a "hpux -lq" /dev/rdsk/c0t1d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lovl2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -R

If you would like to see if the results are correct:
lvlnboot -v
and for each lvol:
lvdisplay -v /dev/vg00/lvolX

Regards,
Ceesjan
T G Manikandan
Honored Contributor

Re: MirrorUX ... how to mirror?

check this document

XIII section

T G Manikandan
Honored Contributor

Re: MirrorUX ... how to mirror?

Paula J Frazer-Campbell
Honored Contributor

Re: MirrorUX ... how to mirror?

HI

Creating a Root mirror


You cannot create a root mirror (bootable) using SAM.
You have to use the command line options.

The first command itself is pvcreate -B (to create a bootable disk) and SAM wont use the option "-B".

HP's system Admin tasks manual chapter 7.


1> pvcreate -B /dev/rdsk/xyz

2> vgextend /dev/vg00 /dev/dsk/xyz

3> mkboot /dev/rdsk/xyz

4> mkboot -a "hpux (;0) /stand/vmunix" /dev/rdsk/xyz

-a auto_file_string If the -a option is specified, mkboot
creates an autoexecute file AUTO on
device, if none exists. mkboot deposits
auto_file_string in that file. If this
string contains spaces, it must be quoted
so that it is a single parameter.

or use

4> mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/xyz

5> lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/xyz -do this for all the lvols on root disk.

6> lvlnboot -R

7> lvlnboot -v To check if you see both the disks as boot disk.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Sebastian Galeski_1
Trusted Contributor
Solution

Re: MirrorUX ... how to mirror?

Hi
Lets assume that You want to create mirror on:c5t6d0

pvcreate -f -B /dev/rdsk/c5t6d0
vgextend /dev/vg00 /dev/dsk/c5t6d0
mkboot /dev/rdsk/c5t6d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c5t6d0
lifls -l /dev/rdsk/c5t6d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -v
mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c5t6d0
lifls /dev/rdsk/c0t6d0
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -v
for i in $(ls /dev/vg00/lvol*)
do
lvextend -m 1 $i /dev/dsk/c5t6d0
done

regards Seba
FTSE SysAdmin
Frequent Advisor

Re: MirrorUX ... how to mirror?

.
Miguel Ribeiro