Operating System - HP-UX
1834802 Members
2382 Online
110070 Solutions
New Discussion

Migrate raw devices from XP storage to EMC

 
maurizio_6
Occasional Contributor

Migrate raw devices from XP storage to EMC

Hi,
I got some raw devices configurated in a vg on Xp storage, and i will migrate this devices in another vg on EMC storage. In the past, when i've migrated the file system, i've created a EMC vg similar to XP vg, and then i've copied whith cp command the data, in the end i've modified the fstab with the new vg name and mount the new file systems.
Now, how can i do?
I should create a new EMC vg, and then copy (throught the dd command) the raw devices, but the oracle's istance does not startup, because new link is on a different vg.
Can i solve this problem, with the vg export and then vg import?

Regards
Maurizio
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: Migrate raw devices from XP storage to EMC

yes, once youve copied to the new EMC vg vgexport the old XP vg and reimport the new EMC vg as the same vgname and lvol names as the old XP vg - this means your filesystems are the same as before so oracle will work.

or, get your oracle dba to do a simple piece of sql to rename the locations for the databases files from the old XP vg to the new EMC vg. This is what we do as its so simple.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Jean-Luc Oudart
Honored Contributor

Re: Migrate raw devices from XP storage to EMC

Would HP MirrorUX be the solution ?

mirror to the new storage
sync
break the mirror

JL
fiat lux
Jeff Schussele
Honored Contributor

Re: Migrate raw devices from XP storage to EMC

I'm with Jean-Luc.

Mirror the XP LVs to the EMC, then when you're convinced all is well & stable, break off the XP LVs.
Of course the LUN size would need to be the same.
Has the added benefit of not needing to change VG name(s).

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
tommy_28
Frequent Advisor

Re: Migrate raw devices from XP storage to EMC

Hi,

I have a simular case here, and each VG has more than one PVs.

I plan to mirror all LVs with below steps:

0. Connect both Storage subsystems, define PVs with same size of old PVs.
1. Close all applications use storage subsystem
2. Add new PVs to VG that I would mirror
3. modify VG propertiy, seperate old and new PVs to two PVGs.
4. modify LV mirror policy to use PVG.
5. modify each LV's mirror number to 1
6. split off each LV
7. remove all current LVs
8. mv lv*copy to lv*, and mv rlv*copy to rlv*
9. mount necessary file systems

I've tested above steps in a trial environment, and gonna implement it on customer site.

Is there anything inappropriate?

Thanks&Regards.
Tommy
Tim D Fulford
Honored Contributor

Re: Migrate raw devices from XP storage to EMC

RolandH
Honored Contributor

Re: Migrate raw devices from XP storage to EMC

As I remeber, if you run Oracle with raw devices the lvol must belong to the oracle user, too

HTH
Roland
Sometimes you lose and sometimes the others win