- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Migrate data from one disk array to another
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 10:05 AM
12-18-2006 10:05 AM
- production environment
- minimize downtime
- fast and efficient
The server is part of a two-node ServiceGuard cluster running HP-UX 11i. It is connected to an XP512 which is being replaced by a Hitachi 9980. All the data resides on cluster aware VGs while the binaries are on local VGs. Appreciate any help in this regard.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 10:17 AM
12-18-2006 10:17 AM
Re: Migrate data from one disk array to another
If this is an LVM environment and you have MirrorDisk/UX, I'd use mirroring ('lvextend') to perform the replication. When done, break ('lvreduce') the mirror.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2006 10:22 AM
12-18-2006 10:22 AM
Re: Migrate data from one disk array to another
Yes this is an LVM environment and MirrorDisk/UX is installed on the server. Could you give me details (stepwise if possible) on how it can be done. Thanks for your help on this matter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 01:12 AM
12-19-2006 01:12 AM
Solutionyou need to add the new discs to the server, then initialise the discs to be physical volumes, then extend the volume group to have these discs in there, then you can either pvmove the disc blocks to the disc array (fastest method) or mirror the logical volumes onto the disc array then remove the previous data from the old array
so
populate the device table with the device files:
1) ioscan -fnC disk
2) insf -C disk
create the physical volumes:
3) pvcreate /dev/rdsk/cXtYdZ (for each disc presented by the array; referred to now as newPV1, newPV2, etc)
extend the existing volume groups on the old array, with the newly created PVs
4) vgextend /dev/vgXX /dev/dsk/newPV1 /dev/dsk/newPV2 (one long line incorporating each PV you created in (3))
now you can choose which method you prefer to move the data:
5a) pvmove /dev/dsk/oldPV /dev/dsk/newPV where here you are moving the data from the old array to the new array, so do this for each PV in the old array
5b) slightly similar to above, but allows you to control which LVs you move, pvmove -n /dev/vgXX/lvolY /dev/dsk/oldPV /dev/dsk/newPV (note that as long as there is room on the destination PV, you can move as many LVs as possible)
5c) lvextend -m 1 /dev/vgXX/lvolY /dev/dsk/newPV to copy the extents to the new array and then lvreduce -m 0 /dev/vgXX/lvolY /dev/dsk/oldPV
Finally remove the LVM structures from the old array:
6) vgreduce /dev/vgXX /dev/dsk/oldPV
In the options for (5) above, I usually choose (5b) so I would find out which LVs I have on the old array first, then manually move them across to the new array. It means I am forced to check my work as I go along and also gives me a chance to spot any old LVs that any previous admins had left behind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 02:47 AM
12-19-2006 02:47 AM
Re: Migrate data from one disk array to another
Whether or not you are directly connected to these arrays or going through a SAN switch is also important. A brocade switch, for instance, has the ability to include both XP512 and Hitachi while directly connecting to the arrays does not.
Whether going through a SAN switch or directly connecting plan on the device names of the disks to change! In the case of a single HBA and vgexporting the LVM header will still reside on the disk, you just need to clean up /etc/lvmtab and vgimport with the new device names. Once the vg is back up with the new device names, then vgcreate new volume groups with the new luns.
Either way, youâ re aiming to create temporary file system mount points to copy data into. Use the 'cp -pr' command. Once the copied, umount the temp. mount point and remount using the old mount point. Use 'cksum' and 'sdiff' to compare the temporary file system with the original file system.
Write the procedure out, its a lot of steps, and refer to a capacity planning document. In fact, you should write the capacity planning doc first planning for future growth and free vg space. When I do migrations, I target a new logical volume / file system size to be under 70%. ( USED MB / .70 = X ). Where X is your new logical volume size. I then add in another 15% to the entire vg for emergency file system extensions.
Having a monthly historical 'bdf' record of used mb is important. Some filesystems grow, so do not. Some see seasonal growth. Try to get a year's worth if possible. Failing that, get a week or a month and use sampling calculations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 03:02 AM
12-19-2006 03:02 AM
Re: Migrate data from one disk array to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 03:08 AM
12-19-2006 03:08 AM
Re: Migrate data from one disk array to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 06:02 AM
12-19-2006 06:02 AM
Re: Migrate data from one disk array to another
Will the pvmove method minimize downtime and will it be able to handle files greater than 2G in size. Any help would be greatly appreciated. I am newbie to HP-UX and don't have any experience in this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 06:12 AM
12-19-2006 06:12 AM
Re: Migrate data from one disk array to another
Be very careful if you use 'pvmove'. Any abnormal termination of an in-progress 'pvmove' can leave the logical volume in an unusable state.
The advantage to using a mirror replication is that you have at least one good copy of data on your old disk and one good one on your new disk. In fact, LVM mirroring allows *two* copies. Hence you can keep your old SAN logical volumes mirrored while *adding* a mirror copy to your new SAN. Then reduce one mirror copy from the old SAN and add that copy to the new SAN before finally severing use of the old one.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 06:34 AM
12-19-2006 06:34 AM
Re: Migrate data from one disk array to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 07:10 AM
12-19-2006 07:10 AM
Re: Migrate data from one disk array to another
We are running Oracle 9i on this server. One mount point holds all the Oracle binaries while the data and index is spread out on other mount points. The oracle related mount points are given below
/dev/vgorab/orabin 9216000 5445640 3652594 60% /opt/oracle
/dev/vgora1/oradata 1048576 378692 628062 38% /d01/data
/dev/vgora2/oradata 81920000 75233648 6675640 92% /d02/data
/dev/vgora3/oraidx 2097152 1295290 752890 63% /idx01/index
/dev/vgora5/oradata 11403264 2826640 8040712 26% /d03/data
/dev/vgora4/oraidx 2097152 1095290 1001862 48% /idx02/index
lvextend is great for Oracle data, but what about the Oracle software. Do I need to re-install the Oracle software/binaries or will lvextend take care of it.
I understand that the lvextend procedure is used for making mirrored boot drives but wanted to be sure about its usage for application binaries before proceeding. Greatly appreciate the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2006 07:39 AM
12-19-2006 07:39 AM
Re: Migrate data from one disk array to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 03:52 AM
12-21-2006 03:52 AM
Re: Migrate data from one disk array to another
You could then stop your application at an appropriate point in time, and use dd to copy from your old disk to new. Unmount all application mount points and mount up the new logical volumes and restart your app.
This is how I migrated from XP256 -> EMC array.
HTH
Berd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 04:58 AM
12-21-2006 04:58 AM
Re: Migrate data from one disk array to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 05:00 AM
12-21-2006 05:00 AM