1836433 Members
2648 Online
110100 Solutions
New Discussion

MirrorUX / disk mirrors

 
Derek_52
Advisor

MirrorUX / disk mirrors

Hi,
I have an HP-UX 11i system with 6 physical disks. How do I tell if they are mirror? Is there somewhere in SAM to automate mirroring? Could anybody point me to a good informational reference for MirrorUX?

Thank you.

Derek Striemer
13 REPLIES 13
RAC_1
Honored Contributor

Re: MirrorUX / disk mirrors

with mirror-ux, mirroring is done at lvol level. You can check if it has been done or not.

lvdisplay -v /dev/vgxx/lvolxx.

Check for mirror copies.
Mirroring is done as follows.

lvextend -m 1 /dev/vgxx/lvolxxx /dev/dsk/cxtxdx

The root disk is done as follows.

Note the following example is using the disk c1t6d0 as the

mirrored boot disk and c0t6d0 as the boot disk.

1) Initialize the disk and make it bootable

pvcreate -B /dev/rdsk/c1t6d0

Note: the -B parameter tell pvcreate that this will be a

bootable disk.

2) Add the physical volume to the volume group

vgextend /dev/vg01 /dev/dsk/c1t6d0

3) Use mkboot to place the boot utilities in the boot area and add

the AUTO file.

mkboot /dev/dsk/c1t6d0

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

4) Use mkboot to update the AUTO file on the primary boot

disk.

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

5) Mirror the stand, root and swap logical volumes

lvextend -m 1 /dev/vg00/lvol1

lvextend -m 1 /dev/vg00/lvol2

lvextend -m 1 /dev/vg00/lvol3

Note: LVM will resynchronize the new mirror copies. This step will

takes several minutes

Repeat the lvextend for all other logical volumes on the boot

mirror.

6) Modify your alternate boot path to point to the mirror copy of the

boot disk.

setboot -a 8/8.6.0 # Use the Hardware path for your new

boot disk.


Anil
There is no substitute to HARDWORK
G. Vrijhoeven
Honored Contributor

Re: MirrorUX / disk mirrors

Hi Derek,With lvm mirroring works on lvols so:To view if disks are mirrored you can use the lvdisplay command. If mirror copies = 1 you have a active mirror.To create mirrors you need the mirror ux software, ( not for free) if you have the license you can use SAM to mirror your disks.Info can be found on docs.hp.comHTHGideon
Lorenzo Facello
Valued Contributor

Re: MirrorUX / disk mirrors

Hi,
first of all
if you make a vgdisplay -v vgxx | more
you see:
lvols an pv (at the end) in vg
if see for example:
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 512
Used PV 2


you notice that Current PE are 256
and Allocated PE 512 ....so this lvol.. it's mirrored

also if you type
lvdisplay -v /dev/vg00/lvol5| more
LV Name /dev/vg00/lvol5
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC ....

Regds
L.
Derek_52
Advisor

Re: MirrorUX / disk mirrors

So, vgdisplay will show me the lvol's on the mirrored disk? Does the disk need to be bootable? Thanks for the information :)U da man.
Geoff Wild
Honored Contributor

Re: MirrorUX / disk mirrors

To see if a lvol is mirrored:

lvdisplay /dev/vgXX/lvolX

Look at line: Mirror copies - if 1 or more- then it is mirrored..

See
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=5187-2216&service=hpux&path=00/00/54&title=Managing%20Systems%20and%20Workgroups%3A%20A%20Guide%20for%20HP-UX%20System%20Administrators


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Patrick Wallek
Honored Contributor

Re: MirrorUX / disk mirrors

Last question first -- The only time the disk needs to be bootable is if you are mirroring your vg00 disk and want to be able to boot from the mirrored disk. If you are mirroring data disks only, then no the disk does not need to be made bootable.

vgdisplay will show you what disks and what LVOLs are contained within each specific VG.

If you want to see what is on each specific disk on your system you can use the 'pvdisplay' command. That will list all LV's that are on the given disk.

If you want to see if an LVOL is mirrored use the 'lvdisplay' command. If you do 'lvdisplay -v /dev/vg01/lvol1' you will see a line that says "Mirror Copies". If that value is greater than 0 then that LVOL is mirrored. If you go through more of the lvdisplay output you will be able to see which disks contain that LVOL.
Tom Smith_9
Frequent Advisor

Re: MirrorUX / disk mirrors

Derek,
You need to use the "lvlnboot -v" command to verify that you have a mirrorored boot disk.

When you issue the command you should see output similiar to the following.

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0

Note that in VG00 there are two devices marked as "Boot".

I have attached the procedure I use to mirror a root VG.

Hope this helps.
Patrick Wallek
Honored Contributor

Re: MirrorUX / disk mirrors

The 'lvlnboot -v' command will only tell you if your ROOT disk is mirrored. It will not tell you anything about your DATA disks.

Lorenzo Facello
Valued Contributor

Re: MirrorUX / disk mirrors

it you need to make a mirror bootable disk
only for vg00
with lvlnboot -v
you see your bootable disk.
Do you want to create a mirror of your boot disk (vg00)?
follow this
pvcreate -B /dev/rdsk/cxtxdx
mkboot /dev/dsk/cxtxdx
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/dsk/cxtxdx
vgextend /dev/vg00 /dev/dsk/cxtxdx
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtxdx
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cxtxdx
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/cxtxdx
... and go on until lvol8...
then
lvlnboot -R vg00

L.
Lorenzo Facello
Valued Contributor

Re: MirrorUX / disk mirrors

oh!
obviously to type commands
lvextend -m 1 /dev/vg00....

you must install MirrorUX by the Applications Software

Hope this helps
L.
Derek_52
Advisor

Re: MirrorUX / disk mirrors

Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.Thank you all.

Your answers have help me out alot. :) The help is appreciated.

Thanks again.

Derek Striemer
Geoff Wild
Honored Contributor

Re: MirrorUX / disk mirrors

Derek - just a little thought - saying thanks is great - but also don't forget to assign points to those that help - it's just good form. :)

Thanks...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tom Smith_9
Frequent Advisor

Re: MirrorUX / disk mirrors

Patrick,
Yes, I agree, lvlnboot -v does only show the ROOT vg and no other VG's, I should have been clearer in my reply. What I should have said is that all the prior posts are correct, except for checking to see if your ROOT is mirrored properly.

-Tom