<?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 cksum / sum problem &amp;amp; question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513080#M896594</link>
    <description>I'm using HPUX 10.20, and i have come across a situation i was hoping that someone would be able to help me with.&lt;BR /&gt;&lt;BR /&gt;sum -p &lt;FILENAME&gt; and cksum &lt;FILENAME&gt; are the same, they use the same algorithm and produce the same results.&lt;BR /&gt;&lt;BR /&gt;My problem is with doing a cksum (or a sum -p) on a directory that exists on multiple machines. If i have say, dir1 on system1, and i rcp -rp the dirtectory to another machine, so that dir2 on system2 is an exact copy of dir1 on system1, and then do a cksum on those 2 directories... why do i get a different checksum result!?&lt;BR /&gt;&lt;BR /&gt;Is there something i'm missing here? Does cksum not work on directories? Why should the checksum differ for an exact copy of the same directory on a different machine?&lt;BR /&gt;&lt;BR /&gt;Here's hoping...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Robin&lt;BR /&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;</description>
    <pubDate>Tue, 03 Apr 2001 17:45:47 GMT</pubDate>
    <dc:creator>Robin Abecasis</dc:creator>
    <dc:date>2001-04-03T17:45:47Z</dc:date>
    <item>
      <title>cksum / sum problem &amp; question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513080#M896594</link>
      <description>I'm using HPUX 10.20, and i have come across a situation i was hoping that someone would be able to help me with.&lt;BR /&gt;&lt;BR /&gt;sum -p &lt;FILENAME&gt; and cksum &lt;FILENAME&gt; are the same, they use the same algorithm and produce the same results.&lt;BR /&gt;&lt;BR /&gt;My problem is with doing a cksum (or a sum -p) on a directory that exists on multiple machines. If i have say, dir1 on system1, and i rcp -rp the dirtectory to another machine, so that dir2 on system2 is an exact copy of dir1 on system1, and then do a cksum on those 2 directories... why do i get a different checksum result!?&lt;BR /&gt;&lt;BR /&gt;Is there something i'm missing here? Does cksum not work on directories? Why should the checksum differ for an exact copy of the same directory on a different machine?&lt;BR /&gt;&lt;BR /&gt;Here's hoping...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Robin&lt;BR /&gt;&lt;/FILENAME&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Tue, 03 Apr 2001 17:45:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513080#M896594</guid>
      <dc:creator>Robin Abecasis</dc:creator>
      <dc:date>2001-04-03T17:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: cksum / sum problem &amp; question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513081#M896595</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As directories (or the contents thereof) grow, addtional blocks of disk need to be allocated to hold the additional inode information.  Once allocated, no shrinkage occurs.  However, when a copy is made, only the required space is allocated.  Often this is less than the "current" size, leading to a different checksum when examined.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Apr 2001 17:56:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513081#M896595</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-04-03T17:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: cksum / sum problem &amp; question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513082#M896596</link>
      <description>Thanks for the prompt reply...&lt;BR /&gt;&lt;BR /&gt;Can you think of any way that i can counteract this behaviour such that the checksum would be the same??&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Robin&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2001 17:59:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513082#M896596</guid>
      <dc:creator>Robin Abecasis</dc:creator>
      <dc:date>2001-04-03T17:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: cksum / sum problem &amp; question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513083#M896597</link>
      <description>The only way to counteract this issue about directories is to build them the same way.  On the source machine, create a new directory, then create the files and then copy them.  Otherwise, sum is telling that they are not identical at the bit level which is correct, but from a functional level, they are identical.</description>
      <pubDate>Tue, 03 Apr 2001 18:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513083#M896597</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-04-03T18:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: cksum / sum problem &amp; question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513084#M896598</link>
      <description>i like to do a find and then an ls -l on each file and diff the two.&lt;BR /&gt;&lt;BR /&gt;or ls -lR /top_of_tree and diff those two. they should be exactly the same.  note that cp doesn't copy setuid bits. (just as is set on the oracle binary)</description>
      <pubDate>Wed, 04 Apr 2001 02:49:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cksum-sum-problem-amp-question/m-p/2513084#M896598</guid>
      <dc:creator>Jerry U</dc:creator>
      <dc:date>2001-04-04T02:49:19Z</dc:date>
    </item>
  </channel>
</rss>

