Operating System - HP-UX
1833056 Members
2461 Online
110049 Solutions
New Discussion

step-by-step procedure to mirror using SAM

 
SOLVED
Go to solution
Santhosh.H
Frequent Advisor

step-by-step procedure to mirror using SAM

to mirror using Mirrordisk/ux using SAM
Be a true Professional
5 REPLIES 5
eran maor
Honored Contributor

Re: step-by-step procedure to mirror using SAM

Hi

i have to say that i dont how to do it with sam but with command line yes .

i saw that you are new with hp-ux and my advise is to get use to used the command line that is much better then the SAM .

here is for creating a mirror logical volume .

1. first you need to have 2 disk in the voulme greoup that you made .

In the following example a logical volume is created with standard name. Let us assume that the new logical volume is /dev/vg05/lvol4. This logical volume is extended on physical volume /dev/dsk/cAtAdA and mirrored to another physical volume /dev/dsk/cBtBdB.

# lvcreate vg05
# lvextend -1 /dev/vg05/lvol4 /dev/dsk/cAtAdA
# lvextend -m 1 /dev/vg05/lvol4 /dev/dsk/cBtBdB
# lvextend -L new_size_MB /dev/vg05/lvol4


if you use the command lvcreate with the option -l you will not have to use the lvextend in line 2 but this is the exam. that you ask ( i hope )

if you want to mirror your system disk i can also give you the guide line how to do it .

love computers
Santhosh.H
Frequent Advisor

Re: step-by-step procedure to mirror using SAM

yes very much i wanted to mirror systems disk can u please help me.
Be a true Professional
James R. Ferguson
Acclaimed Contributor
Solution

Re: step-by-step procedure to mirror using SAM

Hi:

To mirror your boot disk, do the following:

# pvcreate -B /dev/rdsk/cXtYdZ
# vgextend /dev/vg00 /dev/dsk/cXtYdZ
# mkboot /dev/rdsk/cXtYdZ
# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/cXtYdZ
# for N in 1 2 3 4 5 6 7 8
> do
> lvextend -m 1 /dev/vg00/lvol{N} /dev/dsk/cXtYdZ
done

NOTE: that the logical volumes are mirrored IN ORDER (at least lvol1, lvol2 and lvol3 (/stand, primary swap & "/", respectively)).

NOTE: the low-quorum (lq) in the 'mkboot' command.

To verify all is well, check with:

# lvlnboot -v

Regards!

...JRF...
Santhosh.H
Frequent Advisor

Re: step-by-step procedure to mirror using SAM

Ok guys here is the steps
SAM->disk&FileSystems->Logical volumes->Select logicalvolume->actions->change no of mirror copies

Prequisite are:-
The dsk u want to mirror should be made physical volume using pvcreate
than add that Physical volume into the Volumegroup of the primary VG i.e vg00
Be a true Professional
harry d brown jr
Honored Contributor

Re: step-by-step procedure to mirror using SAM

Santhosh,

TO create mirrors, using sam, you must first add the available disk to the VG, which you can do in sam:

sam->
disks and file systems->
Volume Groups->
"from menu bar"-->Actions->
extend->
Select Volume Group->(choose VG)
Select Disks->(choose an available disk)

live free or die
harry
Live Free or Die