- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fastest way to copy tons of data ?
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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-19-2002 01:10 AM
тАО05-19-2002 01:10 AM
Ive got to copy hundreds of GB of lvm stuff from one set of disks to some others, whats the fastest way to do it ??
cpio, tar, pax, gtar, cp, mv ??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2002 01:35 AM
тАО05-19-2002 01:35 AM
Solutiondd is the fastest way as it bypasses the unix driver and goes straight to the disks (if you use raw lvols to copy). But, if your logical volumes are on average < 50% used it wont be quicker to use dd, use cpio instead.
eg, to use dd do;
dd if=/dev/vgXX/rlvolY of=/dev/vgNEW/rlvolZ bs=1024k
You should even run many at once, spawn them off in the background with & this will make your copy even faster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2002 02:56 AM
тАО05-19-2002 02:56 AM
Re: fastest way to copy tons of data ?
Document Id : CJW9304231450 Old but good!
.: dd is only an option if you copy a simple filesystem with no LVM, from one disk to another disk with identical size as it copies HDD blocks. In LVM dd is slower.
.: Make sure that you are not copying files that are larger than 2GB as only dd (and fbackup) over-throw this constrain.
.: tar command uses pax, & it is widely accepted to perform data migration try this:
# cd dir_from; tar cf - . |(cd dir_to;tar xf -i)
tar cf - means send data to stdout, & it tells tar xf to look to stdin for data.
G'd luck
T??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2002 03:03 AM
тАО05-19-2002 03:03 AM
Re: fastest way to copy tons of data ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2002 04:09 AM
тАО05-19-2002 04:09 AM
Re: fastest way to copy tons of data ?
Whats that bit in the Knowledgebase document that says; in LVM dd is slower ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2002 05:16 AM
тАО05-19-2002 05:16 AM
Re: fastest way to copy tons of data ?
nothing to worry about. It means if you use dd instead of cp to copy a logical volume without using the raw lvol. ie;
dd if=/dev/vgXX/lvolY ...
To get the performance benefit of dd use the raw lvol (/dev/vgXX/rlvolY) - but only if the source and destination lvol sizes are identical.
I dont like articles like this one where they state something which is unclear and can be misleading. It should be comprehensive and categorically state that dd'ing of raw lvols is the fastest method to copy (as long as you dont have <50% of it with date on, in which case cpio or tar may be faster).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2002 07:36 AM
тАО05-19-2002 07:36 AM
Re: fastest way to copy tons of data ?
I presume that you want to "move" the data from one set of disk to another.
If this is the case, and you have MirrorDisk/UX (and I hope you do), and the disk you want to copy is LVM-based, then you can avoid downtime while copying your data from the old to the new disk.
Start by 'lvcreate'ing each logical volume to be transfered on the new disk. Do the creation with a zero-size to be able to choose the physical volume on which you want to allocate the logical extents with 'lvextend'.
Now use 'lvmerge' to merge the two volumes into one. This process resynchronizes data previously contained in the destination path with data in the source path, destroying the data in the destination path.
Finally, use 'lvreduce' to remove the original logical volume from the original disk.
I have used this process serveral times to migrate data from one EMC SAN to another with a minimum of downtime.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2002 12:54 AM
тАО05-20-2002 12:54 AM
Re: fastest way to copy tons of data ?
We solved this another way - using mirrordir!
We also wanted to move large amounts of data from an old EMC Symm to a new one with the minimum of downtime.
We couldn't use LVM to mirror the old volumes to the new ones because the old ones were striped - HP's Support Centre advised that this isn't possible.
We decided to compile a Linux tool on HP-UX and use it to mirror one filesystem to another. The first time it runs it takes a several hours but the second time it only transfers the differences - a matter of minutes!
We've since used this on Solaris 2.6 and SuSE Linux and it was the key tool to complete our migration.
Have a look at http://mirrordir.sourceforge.net/mirrordir.php
Damian