Operating System - HP-UX
1833346 Members
2902 Online
110051 Solutions
New Discussion

Mirror using LVM to migrate to another SAN - RAC w/ MC SG

 
ECUse
Advisor

Mirror using LVM to migrate to another SAN - RAC w/ MC SG

Hi, I have been reading a number of posts on the forums about using LVM to mirror the disks from one SAN to another. I believe that this could work for myself as well. However, I would like to clarify a couple of things.

I have a HPUX 11.11 MC SG cluster which is running Oracle RAC 9g. There are 3 RAC vg's which are setup in a server/client scenario between the 2 HPUX servers in the MC SG cluster. There is a lot of lv's in each vg all RAW.

So, my plan is to assign disks from the new SAN to both servers in the cluster. Probably would make more sense to create the new disks the same size as the old ones.

On the first server do the following....

pvcreate /dev/rdsk/cxtxdx
vgextend /dev/vg_rac1 /dev/dsk/cxtxd1 /dev/dsk/cxtxd2
lvextend -m 1 /dev/vg_rac1/lvol1 /dev/dsk/cxtxd1

Some disks have spanned disks so I believe I can mirror to multiple disks like?
lvextend -m 1 /dev/vg_rac2/lvol2 /dev/dsk/cxtxd1 /dev/dsk/cxtxd2

On the second server would I just run a vgscan? or do something else?

The cluster config has the "FIRST_CLUSTER_LOCK_PV" set so I would assume that I would have to change this to the new disk before I break the mirror to the new disks?

To break the mirror. On the first server issue.

lvreduce -m 0 /dev/vg_rac1/lvol1 /dev/dsk/c1txdx
lvreducd -m 0 /dev/vg_rac1/lvol1 /dev/dsk/c1txdx /dev/dsk/c2txdx
vgreduce /dev/vg_rac1 /dev/dsk/c1txdx /dev/dsk/c2txdx
pvremove /dev/rdsk/c1txdx
pvremove /dev/rdsk/c2txdx

On the second server again do a vgscan?

I would assume that all of these steps should be done with the cluster stopped?