1754279 Members
2886 Online
108813 Solutions
New Discussion юеВ

Internal disk Mirroring

 
SOLVED
Go to solution
Walker_3
Frequent Advisor

Internal disk Mirroring

Hi all,

I am configuring a rp3440 server with two 36.4 GB internal disks and 8 GB physical memory. Only one disk is used currently. I have mirror s/w and online JFS installed. I need to create additional swap volumes and mirror all volumes to another disk.

Can anybody help me doing this?
Regards
Mostafa

 

P.S. This thread has been moved from  HP-UX Technical Documentation to  LVM and VxVM. -HP Forum Moderator

8 REPLIES 8
RAC_1
Honored Contributor
Solution

Re: Internal disk Mirroring

Create one more lvol for additional swap.
lvcreate -C y -r n /dev/vg00
Note it down.
(Better to create it on a different disk than the primary swap and set priority same as primary swap)

Update it in /etc/fstab file
/dev/vg00/lvolx . swap pri=x 0 0

Mirroring.

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/vg0o /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
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p HPUX -p AUTO -p LABEL -p PAD
/dev/rdsk/c1t6d0
updatediaglif2 it is 64 bit kernel.

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.
There is no substitute to HARDWORK
Adisuria Wangsadinata_1
Honored Contributor

Re: Internal disk Mirroring

Hi,

To add additional swap, check the url below (docID : KBRC00002148) about 'how to increase system swap'.

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000079993798

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080021750

For your system, I refer you to create another file system as swap file system.

To mirror the boot disk, check the url below (docID : LVMKBRC00005103) about 'How to create a Mirrored Boot Disk on PA-RISC Systems - Cookbook'

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080811535

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Robert-Jan Goossens
Honored Contributor

Re: Internal disk Mirroring

Devender Khatana
Honored Contributor

Re: Internal disk Mirroring

Hi,


The links provide perfect methods to achive the mirroring. For creating the additional swap you can create LVOL either through command line or using SAM. It will e easy do do this through SAM while creating in usage select usage as swap.


Another point to note will be to update AUTO file of both disks to contain "hpux -lq" so that both can boot independently without interruption.

Also mirror the swap as well onto both disks.

HTH,
Devender
Impossible itself mentions "I m possible"
Walker_3
Frequent Advisor

Re: Internal disk Mirroring

Hi,

Could you please tell me what is the purpose of the following command? Can I skip it?

#mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p HPUX -p AUTO -p LABEL -p PAD
/dev/rdsk/c1t6d0
Luk Vandenbussche
Honored Contributor

Re: Internal disk Mirroring

Hi,

In attachment you find a good script to mirror your boot disk
Muthukumar_5
Honored Contributor

Re: Internal disk Mirroring

Boot area storage of LIF (logical interchange format) has to be updated with new disk details. For a device to be bootable, the LIF volume on that device must contain at least the ISL (the initial system loader) and HPUX (the HP-UX bootstrap utility) LIF files. mkboot is doing that job.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Internal disk Mirroring

As RAC specified,mkboot is used to install or update boot programs on the specified device file. Its always good run since you are doing Internal mirroring.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"