<?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: Script to Create 600MB file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356003#M193243</link>
    <description>Use the prealloc command to create files of a given size. No need for scripts on this one unless you're going to make a lot of said files all at once. :)</description>
    <pubDate>Thu, 12 Aug 2004 13:22:28 GMT</pubDate>
    <dc:creator>Jeff_Traigle</dc:creator>
    <dc:date>2004-08-12T13:22:28Z</dc:date>
    <item>
      <title>Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356002#M193242</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;We are planning to transfer some of the dump data (600MB each file approx. 80GB data) from US to Europe using the FTP protocol.&lt;BR /&gt;&lt;BR /&gt;Before we do this task, we have decided to perform some test data transfer.&lt;BR /&gt;&lt;BR /&gt;Can you give me some script to create some test data in a file of size 600MB?&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;Touch data1.ftp&lt;BR /&gt;if the file size &amp;lt; 600MB&lt;BR /&gt;   then&lt;BR /&gt;       Add "this is line 1" &amp;gt;&amp;gt; data1.ftp&lt;BR /&gt;   else&lt;BR /&gt;       echo "File created of size 600MB"&lt;BR /&gt;endif.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee</description>
      <pubDate>Thu, 12 Aug 2004 13:16:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356002#M193242</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2004-08-12T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356003#M193243</link>
      <description>Use the prealloc command to create files of a given size. No need for scripts on this one unless you're going to make a lot of said files all at once. :)</description>
      <pubDate>Thu, 12 Aug 2004 13:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356003#M193243</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-08-12T13:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356004#M193244</link>
      <description>Use prealloc to create a 600MB file.&lt;BR /&gt;&lt;BR /&gt;# prealloc 600MBFile 629145600&lt;BR /&gt;&lt;BR /&gt;Note that prealloc uses the number of BYTES for the file size.</description>
      <pubDate>Thu, 12 Aug 2004 13:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356004#M193244</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-08-12T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356005#M193245</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;dd bs=1024K count=600 if=/dev/null of=your-big-file&lt;BR /&gt;&lt;BR /&gt;Or if=/dev/random if you have that?&lt;BR /&gt;&lt;BR /&gt;Or if=/dev/rdsk123&lt;BR /&gt;&lt;BR /&gt;Or if=/oracle/data/somebigfile.dbf&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Aug 2004 13:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356005#M193245</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-08-12T13:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356006#M193246</link>
      <description>If you are going to do some benchmarking (and will be using some compression on both ends) - then "prealloc" created file will not do justice.&lt;BR /&gt;&lt;BR /&gt;Use either:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/random of=data1.ftp bs=8k count=76800&lt;BR /&gt;&lt;BR /&gt;or dd if=/oramount/dbinstance.dmp of=data1.ftp bs=8k  count=76800&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Aug 2004 13:40:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356006#M193246</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2004-08-12T13:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356007#M193247</link>
      <description>Hi Nikee,&lt;BR /&gt;&lt;BR /&gt;I'm not sure a prealloc file will do the trick for you. It's what's termed a sparse file &amp;amp; ftp *may* not send all the null space between the start &amp;amp; ending block. And if it does, sending all zeroes won't be a real world test.&lt;BR /&gt;A better idea maybe to use dd to read any old disk with more than 600MB of data on it &amp;amp; write it to a file - like:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/dsk/cXtYdZ of=/path/to/600mb_file bs=512k count=1200&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 12 Aug 2004 13:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356007#M193247</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-08-12T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356008#M193248</link>
      <description>The read() system will definitely fill in the NUL's for a sparse file and will send it all 600MB's of NUL's. ANY application will treat the read of a sparse file like that including backup programs like fbackup, OmniBack (DataProtector), and Netbackup. Note that all of these can restore a sparse file (though possibly not precisely as it was) but that do that on the restoring side. The restores do it by noting that a whole herd of NUL's has been seen so that lseeks() are done within the file to "re-sparse" the file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Aug 2004 14:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356008#M193248</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-08-12T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356009#M193249</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response.&lt;BR /&gt;&lt;BR /&gt;Well, if I use the dd command, how can I verify the file after the FTP transfer?&lt;BR /&gt;I mean, data is good inside the file and the &lt;BR /&gt;checksum is good and the integrity?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Aug 2004 14:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356009#M193249</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2004-08-12T14:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Create 600MB file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356010#M193250</link>
      <description>You can use cksum, md5.. whatever suits you..</description>
      <pubDate>Thu, 12 Aug 2004 14:35:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-create-600mb-file/m-p/3356010#M193250</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2004-08-12T14:35:47Z</dc:date>
    </item>
  </channel>
</rss>

