<?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 Re: 'tar' &amp;amp; 'cpio' backup to DLT tape - different time recorded but both too slow in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475291#M17352</link>
    <description>Hello Rita,&lt;BR /&gt;&lt;BR /&gt;You could also have a look at the pax(1) command, as it can backup your data in either cpio or tar (more precisely 'extended tar format') formats.&lt;BR /&gt;&lt;BR /&gt;Thanks to pax, you can overcome the tar blocking size limit (10240), and set it to a maximum value of 32256 in increments of 512.&lt;BR /&gt;&lt;BR /&gt;I recently switched one of my backup methods from tar to pax (running on a DLT7000), and I saved a lot of time !&lt;BR /&gt;&lt;BR /&gt;I hope this helps !&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;Fred.</description>
    <pubDate>Tue, 19 Dec 2000 12:22:07 GMT</pubDate>
    <dc:creator>Frederic Soriano</dc:creator>
    <dc:date>2000-12-19T12:22:07Z</dc:date>
    <item>
      <title>'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475286#M17347</link>
      <description>new HP9000 L1000 Enterprise server, HP-UX 11.0, HP DLT8000 tape drive - set w/ hw data compression on, same DLT type IV tape used&lt;BR /&gt;&lt;BR /&gt;test w/ backup a file system of ~3GB&lt;BR /&gt;&lt;BR /&gt;1. w/ cpio&lt;BR /&gt;&lt;BR /&gt;a. backup to tape w/ this command :&lt;BR /&gt;&lt;BR /&gt;cd &amp;amp;&amp;amp; (/bin/find ./develop -depth -print) | /bin/cpio -oBc &amp;gt; /dev/rmt/1m&lt;BR /&gt;&lt;BR /&gt;requires 67 mins to finish&lt;BR /&gt;&lt;BR /&gt;b. list tape w/ this commad :&lt;BR /&gt;/bin/cpio -iBvtc &amp;lt; /dev/rmt/1m&lt;BR /&gt;&lt;BR /&gt;requires 40 mins to finish&lt;BR /&gt;&lt;BR /&gt;2. w/ tar&lt;BR /&gt;&lt;BR /&gt;a. backup to tape w/ this command :&lt;BR /&gt;&lt;BR /&gt;cd &amp;amp;&amp;amp; tar cvf /dev/rmt/1m -C /develop/*&lt;BR /&gt;&lt;BR /&gt;requires 30 mins to finish&lt;BR /&gt;&lt;BR /&gt;b. list tape w/ this command :&lt;BR /&gt;&lt;BR /&gt;tar tvf /dev/rmt/1m &lt;BR /&gt;&lt;BR /&gt;requires 20 mins to finish&lt;BR /&gt;&lt;BR /&gt;I can't understand :&lt;BR /&gt;Q1 : why 'tar' takes 1/2 backup/list time compare w/ 'cpio', what parameter in my cpio is set wrong?&lt;BR /&gt;Q2 : 'tar' is taking ~6G/hr vs 'cpio' is taking ~3G/hr to backup to the DLT tape, both slow compare w/ the 20G/hr (native non compressed mode) as claimed, w/ hw compression on, I am still expecting a rate of 10-12G/hr&lt;BR /&gt;&lt;BR /&gt;Pls shed me light on this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;-Rita</description>
      <pubDate>Tue, 19 Dec 2000 05:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475286#M17347</guid>
      <dc:creator>Rita Li</dc:creator>
      <dc:date>2000-12-19T05:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475287#M17348</link>
      <description>Hi Rita,&lt;BR /&gt;&lt;BR /&gt;This is easy to understand, once you know how tar and cpio are 'blocking' data.&lt;BR /&gt;tar uses a default block size of 20x512=10240 characters, cpio uses 5120 characters when given the 'B' flag. This explains why tar is faster in this case (larger chunks of data)&lt;BR /&gt;&lt;BR /&gt;Your DLT is a streaming device, which will work a lot better when receiving a continuous stream of data, or when really large blocks are written.&lt;BR /&gt;&lt;BR /&gt;You could try bypassing this 'limitation' the following way:&lt;BR /&gt;&lt;BR /&gt;cd &amp;amp;&amp;amp; (/bin/find ./develop -depth -print) | tar cf - | dd bs=64k of=/dev/rmt/1m&lt;BR /&gt;&lt;BR /&gt;This forces writing 64K blocks, you may try different values and see if it works faster.&lt;BR /&gt;&lt;BR /&gt;The same should work with cpio.&lt;BR /&gt;&lt;BR /&gt;Keep in mind that, as the blocking factor isn't the standard tar blocking factor, you'll have to use 'dd' to read it, like this:&lt;BR /&gt;dd if=/dev/rmt/1m bs=64k | tar xf -&lt;BR /&gt;&lt;BR /&gt;Let me know if it improves your tape creation speed.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2000 05:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475287#M17348</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-19T05:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475288#M17349</link>
      <description>Instead of piping, try the following:&lt;BR /&gt;&lt;BR /&gt;find ./develop -cpio /dev/rmt/1m&lt;BR /&gt;&lt;BR /&gt;Should be more efficient (acc. to man cpio)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2000 08:12:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475288#M17349</guid>
      <dc:creator>Tommy Palo</dc:creator>
      <dc:date>2000-12-19T08:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475289#M17350</link>
      <description>Rita,&lt;BR /&gt;&lt;BR /&gt;To identify what the blocking factor is, try the following:&lt;BR /&gt;&lt;BR /&gt;time dd if=/develop of=/dev/rmt/1m bs=64k count=5000&lt;BR /&gt;time dd if=/develop of=/dev/null bs=64k count=5000&lt;BR /&gt;&lt;BR /&gt;time dd if=/develop of=/dev/rmt/1m bs=256k count=5000&lt;BR /&gt;time dd if=/develop of=/dev/null bs=256k count=5000&lt;BR /&gt;&lt;BR /&gt;By giving different Block-sizes you can test which blocksize is the best to keep your tape-drive in streaming mode. Writing to /dev/null will check I/O speed on disk.&lt;BR /&gt;You can test the following aswell.&lt;BR /&gt;time dd if=/dev/dsk/c?t?d? of=/dev/null bs=64k count=5000&lt;BR /&gt;etc.</description>
      <pubDate>Tue, 19 Dec 2000 08:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475289#M17350</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2000-12-19T08:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475290#M17351</link>
      <description>tar has it own blocking factor, the default is 20.  But when used thru a pipe it is set to 1.  The max is 64; ignore the man page, enter tar cvfb /dev/null 65 /tmp to enter a wrong value and get the true max value.&lt;BR /&gt;I don't know if adding a blocking factor of 64 would help when using standard input, the man page states:&lt;BR /&gt;     If the name of the file is -,  tar writes to standard output&lt;BR /&gt;     or reads from standard input, whichever is appropriate,&lt;BR /&gt;     and the default blocking factor becomes 1.&lt;BR /&gt;But I don't always believe the man pages!&lt;BR /&gt;&lt;BR /&gt;Also up'ing the blocking factor may only help with big files, the man pages state files over 2 gig can not be backed up, this I can believe!! or does anybody know better?</description>
      <pubDate>Tue, 19 Dec 2000 11:38:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475290#M17351</guid>
      <dc:creator>Pete Ellis</dc:creator>
      <dc:date>2000-12-19T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475291#M17352</link>
      <description>Hello Rita,&lt;BR /&gt;&lt;BR /&gt;You could also have a look at the pax(1) command, as it can backup your data in either cpio or tar (more precisely 'extended tar format') formats.&lt;BR /&gt;&lt;BR /&gt;Thanks to pax, you can overcome the tar blocking size limit (10240), and set it to a maximum value of 32256 in increments of 512.&lt;BR /&gt;&lt;BR /&gt;I recently switched one of my backup methods from tar to pax (running on a DLT7000), and I saved a lot of time !&lt;BR /&gt;&lt;BR /&gt;I hope this helps !&lt;BR /&gt;&lt;BR /&gt;Best regards.&lt;BR /&gt;&lt;BR /&gt;Fred.</description>
      <pubDate>Tue, 19 Dec 2000 12:22:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475291#M17352</guid>
      <dc:creator>Frederic Soriano</dc:creator>
      <dc:date>2000-12-19T12:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475292#M17353</link>
      <description>Pete,&lt;BR /&gt;&lt;BR /&gt;I agree with you when you're saying that pipe uses a default blocking factor of 1 when writing to a pipe.&lt;BR /&gt;&lt;BR /&gt;But, in the example given, that blocking factor will only impact the standard input of 'dd' and shouldn't impact the blocksize of what is written to the tape.&lt;BR /&gt;&lt;BR /&gt;Rita,&lt;BR /&gt;&lt;BR /&gt;The 64k blocksize is an example, you could try with higher values and see if it gives better writing stream.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2000 15:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475292#M17353</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-19T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475293#M17354</link>
      <description>Dan,&lt;BR /&gt;&lt;BR /&gt;Sorry; my comment about tar's limitation was just in relation to tar itself; you are right about dd writing in 64k blocks in your example and it can go much higher.&lt;BR /&gt;&lt;BR /&gt;Rita,&lt;BR /&gt;&lt;BR /&gt;fbackup is quicker than tar or cpio, but files cannot be restored on non-HPUX systems, is this why you are using it?&lt;BR /&gt;Also with dd you can't restore individual files or dirs, I don't know if you can with pax.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2000 16:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475293#M17354</guid>
      <dc:creator>Pete Ellis</dc:creator>
      <dc:date>2000-12-19T16:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475294#M17355</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;No need to be sorry.&lt;BR /&gt;It was no more than a clarification point.&lt;BR /&gt;If your name appeared at the top, it was to help Rita in seeing to what message this answer was related. &lt;BR /&gt;&lt;BR /&gt;You were right, I said it ! &lt;BR /&gt;&lt;BR /&gt;Cheers ;-)&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2000 17:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475294#M17355</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-19T17:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: 'tar' &amp; 'cpio' backup to DLT tape - different time recorded but both too slow</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475295#M17356</link>
      <description>Thanks everyone for the great idea contributed. I have found solution to my problem &amp;amp; also found using 'pax -x cpio' gives me the best time with a block size of 32256. Dump files to tape is ~20G/hr now.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;-Rita</description>
      <pubDate>Wed, 27 Dec 2000 07:03:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-amp-cpio-backup-to-dlt-tape-different-time-recorded-but-both/m-p/2475295#M17356</guid>
      <dc:creator>Rita Li</dc:creator>
      <dc:date>2000-12-27T07:03:48Z</dc:date>
    </item>
  </channel>
</rss>

