<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic cp vs cpio in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508407#M892852</link>
    <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;Comments please.</description>
    <pubDate>Thu, 22 Mar 2001 03:53:58 GMT</pubDate>
    <dc:creator>Lai Nee Shyang_1</dc:creator>
    <dc:date>2001-03-22T03:53:58Z</dc:date>
    <item>
      <title>cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508407#M892852</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;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?&lt;BR /&gt;&lt;BR /&gt;Comments please.</description>
      <pubDate>Thu, 22 Mar 2001 03:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508407#M892852</guid>
      <dc:creator>Lai Nee Shyang_1</dc:creator>
      <dc:date>2001-03-22T03:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508408#M892853</link>
      <description>2 Tbs that's a lot&lt;BR /&gt;I use&lt;BR /&gt;find /directory -depth -print | cpio -pd /newdir&lt;BR /&gt;to copy anything bigger than 10 million bytes&lt;BR /&gt;&lt;BR /&gt;I think that find | cpio would be faster than cp</description>
      <pubDate>Thu, 22 Mar 2001 04:12:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508408#M892853</guid>
      <dc:creator>Peter Brimacombe</dc:creator>
      <dc:date>2001-03-22T04:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508409#M892854</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is the fastest way&lt;BR /&gt;- goto the source directory&lt;BR /&gt;#find . | cpio -pdumv /newdir&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2001 04:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508409#M892854</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2001-03-22T04:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508410#M892855</link>
      <description>If you are copying to another device of the exact same size e.g. using Logical Volumes of the same size, you can use dd(1) which is orders of magnitude faster (i.e. gigabytes per hour)&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;        dd if=/dev/vg05/rlvol1 of=/dev/vginf1/rlvol1 bs=2048k&lt;BR /&gt;&lt;BR /&gt;-tom</description>
      <pubDate>Thu, 22 Mar 2001 07:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508410#M892855</guid>
      <dc:creator>Tom Rosenfeld</dc:creator>
      <dc:date>2001-03-22T07:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508411#M892856</link>
      <description>hi&lt;BR /&gt;If you are going to use the find option then drop the "v" option as it will slow down the copy using verbose -&lt;BR /&gt;&lt;BR /&gt;best is find .|cpio -pudvm /&lt;NEWDIR&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula&lt;/NEWDIR&gt;</description>
      <pubDate>Thu, 22 Mar 2001 08:48:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508411#M892856</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2001-03-22T08:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508412#M892857</link>
      <description>dd is definitely the quickest method of copying sap data</description>
      <pubDate>Thu, 22 Mar 2001 12:40:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508412#M892857</guid>
      <dc:creator>Paul Williams_1</dc:creator>
      <dc:date>2001-03-22T12:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508413#M892858</link>
      <description>One thing to keep in mind is that cpio and tar do not support files over 2GB.  I would recommend dd for this.  I've also used fbackup|frecover for large copies.</description>
      <pubDate>Thu, 22 Mar 2001 13:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508413#M892858</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-03-22T13:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508414#M892859</link>
      <description>Thanks guys, &lt;BR /&gt;&lt;BR /&gt;I guess I've to test it out to see which one suits best.&lt;BR /&gt;&lt;BR /&gt;Lai</description>
      <pubDate>Fri, 23 Mar 2001 00:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508414#M892859</guid>
      <dc:creator>Lai Nee Shyang_1</dc:creator>
      <dc:date>2001-03-23T00:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508415#M892860</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2001 02:58:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508415#M892860</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-03-23T02:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508416#M892861</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;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).&lt;BR /&gt;&lt;BR /&gt;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"&lt;BR /&gt;Anything wrong with that?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Lai&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2001 03:36:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508416#M892861</guid>
      <dc:creator>Lai Nee Shyang_1</dc:creator>
      <dc:date>2001-03-23T03:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: cp vs cpio</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508417#M892862</link>
      <description>Hi,   &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2001 06:50:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cp-vs-cpio/m-p/2508417#M892862</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-03-23T06:50:41Z</dc:date>
    </item>
  </channel>
</rss>

