<?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: file size changed using rcp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986047#M420982</link>
    <description>Hi John, &lt;BR /&gt;&lt;BR /&gt;Check #cksum &lt;FILE_NAME&gt; on both the servers. &lt;BR /&gt;&lt;BR /&gt;-Arun&lt;/FILE_NAME&gt;</description>
    <pubDate>Mon, 19 Jun 2006 05:50:11 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-06-19T05:50:11Z</dc:date>
    <item>
      <title>file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986046#M420981</link>
      <description>I am trying to copy an oracle data file from 1 server to another using rcp. The original file is approx 1.4 Gb and the copied file is approx 2.3 Gb.&lt;BR /&gt;Both systems are HP-UX 10.20 and oracle is shutdown at the time of the copy.&lt;BR /&gt;&lt;BR /&gt;Why is the file size changing ?&lt;BR /&gt;&lt;BR /&gt;Thanks John</description>
      <pubDate>Mon, 19 Jun 2006 05:48:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986046#M420981</guid>
      <dc:creator>John McWilliams_1</dc:creator>
      <dc:date>2006-06-19T05:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986047#M420982</link>
      <description>Hi John, &lt;BR /&gt;&lt;BR /&gt;Check #cksum &lt;FILE_NAME&gt; on both the servers. &lt;BR /&gt;&lt;BR /&gt;-Arun&lt;/FILE_NAME&gt;</description>
      <pubDate>Mon, 19 Jun 2006 05:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986047#M420982</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-06-19T05:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986048#M420983</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Do the filesystem block sizes differ between the source and destination volume groups?&lt;BR /&gt;&lt;BR /&gt;fstyp -v /dev/vgxx/lvolx |grep f_bsize&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 19 Jun 2006 06:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986048#M420983</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-19T06:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986049#M420984</link>
      <description>Very, very common for database files. The checksums will be the same for both files and they will contain the same data records. The difference is due to a feature of Unix filesystems: sparse files. A sparse file is one which has unwritten records inside the file.&lt;BR /&gt; &lt;BR /&gt;Consider this scenario:&lt;BR /&gt; &lt;BR /&gt;Create a file and write the first record. Then lseek(2) to the one millionth record and write it. Now close the file. The occupied space is two records. But if you copy the file, HP-UX will read all the records including the unwritten ones. The unwritten records contain nulls (zeros) which are supplied by the filesystem code. If you copy the file, the destination will ALWAYS be larger because the unwritten records are sent to the destination. The result is identical files except that one actually occupies all the space while the original doesn't use any space for undefined records.&lt;BR /&gt; &lt;BR /&gt;Depending on the 'emptiness' of the file, the difference could be as much as 100:1 or more.</description>
      <pubDate>Mon, 19 Jun 2006 08:12:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986049#M420984</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-19T08:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986050#M420985</link>
      <description>Shalom John,&lt;BR /&gt;&lt;BR /&gt;I've seen it too. Seems to be a feature(bug) of rcp.&lt;BR /&gt;&lt;BR /&gt;I did not encounter this with scp -rp, so I suggest that or tar for the transfer.&lt;BR /&gt;&lt;BR /&gt;tar preservers permissions.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 Jun 2006 08:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986050#M420985</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-19T08:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986051#M420986</link>
      <description>One additional note: fbackup is the only backup program which can reduce the size of the destination file. It does this by not writing null records to the destination. This can result in a destination that is at least as small as the original. The corner case is where an application specifically writes a record with all nulls. That record will be skipped by frecover so the destination may be slightly smaller that the original. But both files will checksum the same and applications can't tell the difference.</description>
      <pubDate>Mon, 19 Jun 2006 08:17:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986051#M420986</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-19T08:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986052#M420987</link>
      <description>If a sparse file is the culprit then ls -l filename will report the same size on both systems but utilities such as bdf which look at filesystem statistics will report very different values. Does ls -l report the same value on both systems? If not, upon what command(s) are you basing your ~1.4GiB and ~2.3GiB values?</description>
      <pubDate>Mon, 19 Jun 2006 09:28:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986052#M420987</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-06-19T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986053#M420988</link>
      <description>Thanks for all the help to everyone that replied. The file size was from ll but &lt;BR /&gt;du -sk file showed the data size.&lt;BR /&gt;We got around the size issue by increasing the filesystem size. I will now expirement with tar and fbackup for future reference.&lt;BR /&gt;Cheers John</description>
      <pubDate>Tue, 20 Jun 2006 05:39:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986053#M420988</guid>
      <dc:creator>John McWilliams_1</dc:creator>
      <dc:date>2006-06-20T05:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: file size changed using rcp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986054#M420989</link>
      <description>.</description>
      <pubDate>Tue, 20 Jun 2006 05:40:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-changed-using-rcp/m-p/4986054#M420989</guid>
      <dc:creator>John McWilliams_1</dc:creator>
      <dc:date>2006-06-20T05:40:49Z</dc:date>
    </item>
  </channel>
</rss>

