<?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 Incorrect file size reported in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777819#M390655</link>
    <description>&lt;BR /&gt;Hello,&lt;BR /&gt;I have the following disk layout&lt;BR /&gt;vg00&lt;BR /&gt; lvol1&lt;BR /&gt;  /mnt1&lt;BR /&gt;vg01&lt;BR /&gt; lvol2&lt;BR /&gt;  /mnt2&lt;BR /&gt;&lt;BR /&gt;I'm trying to copy all the data from /mnt1 to /mnt2, i've noticed when copying an 800mb tar archive from /mnt1 it reports the file is 2GB on /mnt2. All files copied from /mnt1 to /mnt2 seem to have this problem.&lt;BR /&gt;&lt;BR /&gt;11.31&lt;BR /&gt;vxfs v6&lt;BR /&gt;20GB lv's&lt;BR /&gt;&lt;BR /&gt;Any ideas. This is driving me insane, /mnt1 is about 10GB but because its making them large on /mnt2 i'm unable to copy the entire contents.&lt;BR /&gt;&lt;BR /&gt;Any help would be great.&lt;BR /&gt;Thank you.</description>
    <pubDate>Fri, 15 Apr 2011 05:04:15 GMT</pubDate>
    <dc:creator>user001</dc:creator>
    <dc:date>2011-04-15T05:04:15Z</dc:date>
    <item>
      <title>Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777819#M390655</link>
      <description>&lt;BR /&gt;Hello,&lt;BR /&gt;I have the following disk layout&lt;BR /&gt;vg00&lt;BR /&gt; lvol1&lt;BR /&gt;  /mnt1&lt;BR /&gt;vg01&lt;BR /&gt; lvol2&lt;BR /&gt;  /mnt2&lt;BR /&gt;&lt;BR /&gt;I'm trying to copy all the data from /mnt1 to /mnt2, i've noticed when copying an 800mb tar archive from /mnt1 it reports the file is 2GB on /mnt2. All files copied from /mnt1 to /mnt2 seem to have this problem.&lt;BR /&gt;&lt;BR /&gt;11.31&lt;BR /&gt;vxfs v6&lt;BR /&gt;20GB lv's&lt;BR /&gt;&lt;BR /&gt;Any ideas. This is driving me insane, /mnt1 is about 10GB but because its making them large on /mnt2 i'm unable to copy the entire contents.&lt;BR /&gt;&lt;BR /&gt;Any help would be great.&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 15 Apr 2011 05:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777819#M390655</guid>
      <dc:creator>user001</dc:creator>
      <dc:date>2011-04-15T05:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777820#M390656</link>
      <description>&lt;P&gt;how did you copy it? I think these are sparse files, that's why you end up with much bigger files on /mnt2.&lt;BR /&gt;&lt;BR /&gt;use dd or pax to move them, see also this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/System-Administration/How-can-I-copy-a-sparse-file/m-p/4859869#M396243" target="_blank"&gt;http://h30499.www3.hp.com/t5/System-Administration/How-can-I-copy-a-sparse-file/m-p/4859869#M396243&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 15:45:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777820#M390656</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-08-17T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777821#M390657</link>
      <description>&lt;P&gt;here is a way of identifying a sparse file:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/System-Administration/Find-sparse-file/m-p/3875418#M279127" target="_blank"&gt;http://h30499.www3.hp.com/t5/System-Administration/Find-sparse-file/m-p/3875418#M279127&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2011 21:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777821#M390657</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-07-11T21:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777822#M390658</link>
      <description>&lt;BR /&gt;i tried dd but it never ended :(&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg00/lvol1 of=/dev/vg01/lvol2 vs=1024&lt;BR /&gt;&lt;BR /&gt;this seem to go forever, the new partition is slightly larger but that shouldn't be a problem. Is there a way to monitor dd?&lt;BR /&gt;&lt;BR /&gt;i have tried cpio, mv, cp, fbackup, snapshot + those commands (in case).&lt;BR /&gt;&lt;BR /&gt;i wasn't aware of pax, i noticed someone else commented that it doesn't support files larger than 2GB?&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Fri, 15 Apr 2011 07:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777822#M390658</guid>
      <dc:creator>user001</dc:creator>
      <dc:date>2011-04-15T07:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777823#M390659</link>
      <description>&amp;gt; i tried dd but it never ended :(&lt;BR /&gt;&lt;BR /&gt;or you just couldn't wait till the end of it. :)&lt;BR /&gt;you can also copy it on a file level like this:&lt;BR /&gt;&lt;BR /&gt;# dd if=/mnt1/file1 of=/mnt2/file1 bs=1024&lt;BR /&gt;&lt;BR /&gt;AFAIK dd can handle files &amp;gt;2gig</description>
      <pubDate>Fri, 15 Apr 2011 08:03:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777823#M390659</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-04-15T08:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777824#M390660</link>
      <description>&lt;BR /&gt;I left it run over night, i thought this would have been enough for dd. &lt;BR /&gt;&lt;BR /&gt;I'll give pax a try first, this sounds like it could do the job. failing that i'll try dd again.&lt;BR /&gt;&lt;BR /&gt;i'll update the thread / points tomorrow when i get to try it out.&lt;BR /&gt;&lt;BR /&gt;thanks for the suggestions.</description>
      <pubDate>Fri, 15 Apr 2011 08:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777824#M390660</guid>
      <dc:creator>user001</dc:creator>
      <dc:date>2011-04-15T08:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777825#M390661</link>
      <description>&amp;gt;I've noticed when copying an 800mb tar archive from /mnt1 it reports the file is 2GB on /mnt2.&lt;BR /&gt;&lt;BR /&gt;Hmm.  I wouldn't expect tar to be smart enough to create sparse files?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I noticed someone else commented that it doesn't support files larger than 2GB?&lt;BR /&gt;&lt;BR /&gt;No, pax(1) can support &amp;gt; 8 Gb.  After all, after fbackup(1m) is obsoleted, pax is its replacement.</description>
      <pubDate>Sat, 16 Apr 2011 11:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777825#M390661</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-04-16T11:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777826#M390662</link>
      <description>&amp;gt;I tried dd(1) but it never ended :(&lt;BR /&gt;dd if=/dev/vg00/lvol1 of=/dev/vg01/lvol2 vs=1024&lt;BR /&gt;&lt;BR /&gt;Your blocksize is too small.  Try bs=1024k</description>
      <pubDate>Sat, 16 Apr 2011 11:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777826#M390662</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-04-16T11:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777827#M390663</link>
      <description>Hmmm.&lt;BR /&gt;From my testing, it seems that neither 'tar' , 'fbackup', nor pax support sparse files.&lt;BR /&gt;I'm surprised a little.&lt;BR /&gt;&lt;BR /&gt;Just for grins, why don't you untar (watch out for absolute pathnames -- be sure to use the -C option) the tar archive into /mnt2 and see what the stuff *looks* like and actually *is*.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Sun, 17 Apr 2011 12:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777827#M390663</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-04-17T12:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777828#M390664</link>
      <description>Can we take a few steps back and get a clear problem statement with details?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I'm trying to copy all the data from /mnt1 to /mnt2,&lt;BR /&gt;&lt;BR /&gt;Which tool(s) used for the copy? cp? details?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; i've noticed when copying an 800mb tar archive from /mnt1 it reports the file is 2GB on /mnt2. &lt;BR /&gt;&lt;BR /&gt;Best I know there is no tool called 'it' on HPUX, although that would be neat to maximize confusion!&lt;BR /&gt;&lt;BR /&gt;So what tool did you use to report the size? ls? du? df? options used for those?&lt;BR /&gt;Did you try alternatives? What did they all report?&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All files copied from /mnt1 to /mnt2 seem to have this problem.&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Apr 2011 13:49:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777828#M390664</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-04-17T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777829#M390665</link>
      <description>&lt;BR /&gt;Viktor Balogh is the champion, 100% sparse files they were and pax worked a treat.&lt;BR /&gt;&lt;BR /&gt;I only half expected it to work but when it did wow was i happy.&lt;BR /&gt;&lt;BR /&gt;thanks for everyones help much appreciated.&lt;BR /&gt;&lt;BR /&gt;cheers.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Apr 2011 08:14:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777829#M390665</guid>
      <dc:creator>user001</dc:creator>
      <dc:date>2011-04-18T08:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect file size reported</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777830#M390666</link>
      <description>&lt;!--!*#--&gt;Wow.&lt;BR /&gt;That's interesting.&lt;BR /&gt;When I tested it, as I said, I could not get 'pax', 'tar', or 'fbackup' to *CREATE* an archive of sparse files that was small.&lt;BR /&gt;A 'du' of the archive was always as large as the sparse files showed in 'll', not 'du'.&lt;BR /&gt;&lt;BR /&gt;I did the testing on both 11.23 and 11.31.&lt;BR /&gt;&lt;BR /&gt;HOWEVER, when I *extracted* from the 'pax' archive, it DID restore a sparse file !!! ('tar' did not), even though the archive itself was large !?!?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, I'm wondering how your archive got created as such a small size in the first place.&lt;BR /&gt;&lt;BR /&gt;bv&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;((((((((((((((((((((((((((((((&lt;BR /&gt;&lt;BR /&gt;Here is my testing:&lt;BR /&gt;&lt;BR /&gt;create a sparse file:&lt;BR /&gt;&lt;BR /&gt;## dd if=/dev/zero of=/tmp/sparsefile seek=1024000 count=1 bs=1024&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check sizes:&lt;BR /&gt;&lt;BR /&gt;## ll /tmp/sparsefile ; du -k /tmp/sparsefile&lt;BR /&gt;  -rw-r--r--   1 root       sys        1048577024 Apr 18 08:41 /tmp/sparsefile&lt;BR /&gt;  8      /tmp/sparsefilep/sparsefile&lt;BR /&gt;&lt;BR /&gt;So, 'll' reports 1G, while the actual 'du' size is 8K&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create archives with 'pax', 'tar', 'fbackup' :&lt;BR /&gt;&lt;BR /&gt;## (cd /tmp ; pax -w -f pax1 sparsefile)&lt;BR /&gt;## (cd /tmp ; tar cf tar1 sparsefile)&lt;BR /&gt;## (cd /tmp ; fbackup -f fb1 -i sparsefile)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check sizes:&lt;BR /&gt;&lt;BR /&gt;## ( for F in   /tmp/pax1  /tmp/tar1  /tmp/pax1 &lt;BR /&gt;     do   ll  $F; du -k $F&lt;BR /&gt;     done&lt;BR /&gt;   )&lt;BR /&gt;  -rw-r--r-- 1 root  sys   1048586240 Apr 18 09:10 /tmp/pax1&lt;BR /&gt;  1032440       /tmp/pax1&lt;BR /&gt;  -rw-r--r-- 1 root  sys   1048586240 Apr 18 09:11 /tmp/tar1&lt;BR /&gt;  1024016       /tmp/tar1&lt;BR /&gt;  -rw-r--r-- 1 root  sys   1048586240 Apr 18 09:10 /tmp/pax1&lt;BR /&gt;  1032440       /tmp/pax1&lt;BR /&gt;&lt;BR /&gt;All archives show 1G with BOTH 'll' and 'du'.&lt;BR /&gt;&lt;BR /&gt;Now, extract:&lt;BR /&gt;&lt;BR /&gt;## mkdir /tmp/td&lt;BR /&gt;## (cd /tmp/td ; pax -rv &amp;lt; /tmp/pax1 ; ll sp* ; du -sk sp* ; rm sp*)&lt;BR /&gt;  USTAR format archive&lt;BR /&gt;  sparsefile&lt;BR /&gt;  -rw-r--r--   1 root       sys        1048577024 Apr 18 09:09 sparsefile&lt;BR /&gt;  8       sparsefile&lt;BR /&gt;&lt;BR /&gt;So, the recovered file *is* sparse, even though the archive was 1G !?!?!?!&lt;BR /&gt;&lt;BR /&gt;)))))))))))))))))))))))))))))))))))))))))</description>
      <pubDate>Mon, 18 Apr 2011 12:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-file-size-reported/m-p/4777830#M390666</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-04-18T12:48:33Z</dc:date>
    </item>
  </channel>
</rss>

