Operating System - HP-UX
1748246 Members
3735 Online
108760 Solutions
New Discussion юеВ

Mirroring the rootvg and more...

 
SOLVED
Go to solution
uadm26
Super Advisor

Mirroring the rootvg and more...

I have a system with 1 disk. On this disk i have the rootvg.
in rootvg i have oracle server aplication.
I upgrade the storage to more 2 disks, one equal of the vg00.
I wan't to create a mirror in vg00, and transfer the oracle server
aplication to the another disk.
How can i do it? Whats the best pratises.
4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: Mirroring the rootvg and more...

From stirage, create another VG. Create appropriate lvols on new VG. Take care of sizes, PEs in new vg.

Bring down the oracle. Now copy the data
from old lvols to new lvols. You can use dd/vxdump/cpio for this.

If copy is successful, start the oracle from new lvols.

Backup the old data onto the tapes, so that if required, you will have it.

Delete the old lvols.

For mirroring the root vg, you will have to install mirror-ux software(licensed). Once installed, you will have to add one mode disk to the root vg.

The procedure to create the mirror is 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
uadm26
Super Advisor

Re: Mirroring the rootvg and more...

Hi,

What's the best thing to do about the others logical volumes, like /home, /opt, /opt/oracle, to chage for new disk, do change to single user, umount the FS's create new lvols in other vg em mount the directories in the new lv's, That's it. Then make a copy?

Thanks
RAC_1
Honored Contributor

Re: Mirroring the rootvg and more...

What exactly you want??

1. Move oracle from vg00 to new vg.
2. Mirror root vg

Right??

If you had installed oracle in /opt/oracle(this was bad idea then) move it to new vg as given in earlier reply.

Then add a disk to root vg and mirror the root disk. There is no need to move /home /opt etc.

Anil
There is no substitute to HARDWORK
uadm26
Super Advisor

Re: Mirroring the rootvg and more...

You're right, that's no need to copy the others fs, just the data of oracle, not binarys.
Thanks for everyting.