- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Data Migration?
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
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
08-24-2005 05:09 AM
08-24-2005 05:09 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:14 AM
08-24-2005 05:14 AM
Solutionmkdir /destination
mount /dev/vgxx/lvolyy /destination
cd /sourcedir
find . | cpio -pudlmv /destination
NOTE: this is good for any size directory but limited to 2Gb files or less (cpio limit). Otherwise, and fbackup/frecover pipe would be faster than tar due to the multiple reader/writer processes and fbackup handles unlimited file sizes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:15 AM
08-24-2005 05:15 AM
Re: Data Migration?
Hope you got both the SAN/LUN filesystems mounted , so you can use
# cp -r -p /san1fs1/* /san2/fs1/
This is simple and reliable too.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:17 AM
08-24-2005 05:17 AM
Re: Data Migration?
I migrate a storage last July, I used LVM mirror, it worked without any problems.
-It's safe.
-You can do it on-line, no downtime.
You have some contraints, depending on how the VG was created:
-You must add the new PV to the VG, and you have a limit for that, MAX PV
-If the VG is in shared mode you can't do it.
-If the lvol is LVM stripedd you can't do it.
Enjoy :)
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:26 AM
08-24-2005 05:26 AM
Re: Data Migration?
We have transfered near about 200GB SAP data , from EMC DMX2000 to IBM DS800 storage recently with cp and script.
Cheers.
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:37 AM
08-24-2005 05:37 AM
Re: Data Migration?
vxdump 0f - /${FS} | (cd /n${FS} ; vxrestore xf -)
we just prepended the filesystem name with a letter "n" to easily distinguish between the old and the new filesystems at the time of recounstructing the fstab.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:39 AM
08-24-2005 05:39 AM
Re: Data Migration?
we are migrating/moving from a 2405 striped disk array (badly striped) to both xiotech SAN and IBM Shark SAN.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 05:43 AM
08-24-2005 05:43 AM
Re: Data Migration?
1. Create filesystems with new LUNS on New storage.
2. Mount the new filesystems
3. Bring down SAP and Oracle .
6. Copy Data from old file systems to new file systems. [ using cp -rpi , and script ]
7. Unmount old file systems
8. Move New filesystems to correct names.
9. Start SAP and Oracle
-------------------------------
may this helps..
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 07:38 AM
08-24-2005 07:38 AM
Re: Data Migration?
cd /sourcedir
find . -xdev -depth | cpio -pdmvu /newdir
I like this as it restricts the gathering of data to the current mount point, and unlike cp maintains permissions AND ownerships correctly. "cp" also likes to create real files out of symbolic links, instead of recreating the links for you.
And per Mel's suggestion on vxdump, I've tried it, and he's right - it's really fast.
There's also tar for getting this done.
cd sourcedir
tar cvf - . | (cd /destdir; tar xvf - )
I like this because it keeps permissions and ownerships really well for you, and seems faster than cpio. But, mainly I like it b/c I like the display. What I don't like about it is that it will happily traverse mount points.
Picking my favorite of those, I almost always go for the find/cpio method b/c although I don't have nested mount points on mount points, I like being really confident that all I'm getting is what is on a single lvol. It always correctly restores permissions, ownerships, symbolic links, hard links, and even special files.
If you're going for throughput though - don't pass up giving Mel's advocated vxdump method a timed trial.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 08:29 AM
08-24-2005 08:29 AM
Re: Data Migration?
personally if would mirror if that was an option. its very easy.
outside of that, I have been doing tons of migrations this year, and been using the trusty
( cd $source_fs ; find . -xdev -print | cpio -pdumv $dest_fs )
I find it to be very fast.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2005 08:34 AM
08-24-2005 08:34 AM