Operating System - HP-UX
1752797 Members
5583 Online
108789 Solutions
New Discussion

data migration in hp unix

 
amol nagtilak
Occasional Advisor

data migration in hp unix

hi all,
i want to migrate data from SAN storage to inter hard disk of the server.
hp unix version: 11.31i

thanks and regards,

amol nagtilak
1 REPLY 1
Matti_Kurkela
Honored Contributor

Re: data migration in hp unix

Is the "data" a filesystem, or some form of a raw database?

LVM or VxVM?
Do you have MirrorDisk?

Are the internal hard disk(s) you plan to use currently unallocated, or are you going to use the system disks (vg00)?

If these are basic filesystems on LVM and you have MirrorDisk, and the local disks are currently unallocated, one possible procedure is:

1.) use pvcreate to prepare the unallocated disk for LVM

2.) use vgextend to join the local disk to the VG that holds the SAN disks you wish to migrate

3.) use "lvextend -m 1 " to mirror the LV from the SAN storage to local disk

4.) when mirroring is complete, use "lvreduce -m 0
" to remove the mirror half that is on the SAN storage.

5.) Repeat steps 3 and 4 to all the LVs still on the SAN storage.

6.) Use "vgreduce" to remove the SAN disks from the VG.

7.) If you have other VGs on SAN storage, repeat steps 1-6 as necessary.

8.) Clean up: if required by your site policy, overwrite the SAN storage with zeroes, then disconnect the system from SAN and use rmsf to tell the system those disk devices are intentionally gone.

If you don't have MirrorDisk, you can use pvmove for the data migration instead of the "lvextend -m 1"/"lvreduce -m 0" pair.

MK
MK