- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cp vs cpio
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
03-21-2001 07:53 PM
03-21-2001 07:53 PM
I need to copy about 2.4 Tb of sapdata from 1 storage system to another storage system seen on the same host (with 10 CPU). I've been using "cp -pr", but someone suggest that I use cpio. May I know what are the benefits of using cpio over cp. Some say that cpio can be multi-threaded, meaning it will fully utilize available CPU during copy. Is that true?
Comments please.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 08:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 08:20 PM
03-21-2001 08:20 PM
Re: cp vs cpio
This is the fastest way
- goto the source directory
#find . | cpio -pdumv /newdir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2001 11:31 PM
03-21-2001 11:31 PM
Re: cp vs cpio
For example:
dd if=/dev/vg05/rlvol1 of=/dev/vginf1/rlvol1 bs=2048k
-tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 12:48 AM
03-22-2001 12:48 AM
Re: cp vs cpio
If you are going to use the find option then drop the "v" option as it will slow down the copy using verbose -
best is find .|cpio -pudvm /
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 04:40 AM
03-22-2001 04:40 AM
Re: cp vs cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 05:43 AM
03-22-2001 05:43 AM
Re: cp vs cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 04:36 PM
03-22-2001 04:36 PM
Re: cp vs cpio
I guess I've to test it out to see which one suits best.
Lai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 06:58 PM
03-22-2001 06:58 PM
Re: cp vs cpio
What kind of storage systems are you using? If you are migrating eg. from a Hitachi box to an XP512, you can make use of Remote Copy to copy from one RAID array to another over ESCON links. In this case, cut-over downtime is minimized because data on both RAID arrays are synchronized at all times until the cut-over when the ESCON links are disconnected.
Are there differences between the filesystems residing on both storage systems? If you are copying at the OS level, do note that a difference in block size between the source filesystem and destination filesystem does matter, especially so when you have multiple small files. The default block size for vxfs is 1 kb while the default block size for hfs is 8 kb.
As for choice of OS-level copying tools, I would use one that allows me to continue an interrupted copying process (eg. network got disconnected) where I left off, rather than recopying everything again, especially so if I am going to copy 2 TB at one go.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 07:36 PM
03-22-2001 07:36 PM
Re: cp vs cpio
I'm migrating data from a XP512 box to a XP256 box frequently (about once per fortnight), both seen on the same hosts powered by 10 CPUs. We did ask HP about Remote copy via Escon link but it will take roughly 2 full days to do a complete resync and they cannot promise a delta resync after spliting. So I've to resort to copying. Both source and destination are using same block size (both for sapdata).
I've tried copying a 2Gig sapdata via cp, cpio and dd with "time" cmd to get the process timing. The cp took 51.3s and cpio took 58.5. I've problem with the dd command. Here's the syntax "time dd if=/dev/vgd02/testing of=/dev/vgd01/testing2 bs=1024k"
Anything wrong with that?
Thanks
Lai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2001 10:50 PM
03-22-2001 10:50 PM
Re: cp vs cpio
The character special (raw) device file should always be used for devices. Try using the raw device file /dev/vgp01/rtesting instead of the block device file /dev/vgp01/testing etc. instead.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com