<?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 Why directory size are diffrent in 2 diff server having same file size. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334581#M189593</link>
    <description>I have some interesting issue. du reports widely diffrent size in diffrent servers..&lt;BR /&gt;&lt;BR /&gt;I have 2 N calss HPUX 11.00 servers. I create a directory "DDD" in server-A and put a file "abc" in that. Did the exact same in server-B. File size is exactly same in both server. But when i do a #du -k ./DDD the size differes. Server-B reports 3 to 5 times more size  than server-A.&lt;BR /&gt;&lt;BR /&gt;I checked the VxFS filesystem block size, both are 8K. &lt;BR /&gt;Any help is appreciated and will give points. ?</description>
    <pubDate>Sun, 18 Jul 2004 16:21:51 GMT</pubDate>
    <dc:creator>GIRIJA SWAIN</dc:creator>
    <dc:date>2004-07-18T16:21:51Z</dc:date>
    <item>
      <title>Why directory size are diffrent in 2 diff server having same file size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334581#M189593</link>
      <description>I have some interesting issue. du reports widely diffrent size in diffrent servers..&lt;BR /&gt;&lt;BR /&gt;I have 2 N calss HPUX 11.00 servers. I create a directory "DDD" in server-A and put a file "abc" in that. Did the exact same in server-B. File size is exactly same in both server. But when i do a #du -k ./DDD the size differes. Server-B reports 3 to 5 times more size  than server-A.&lt;BR /&gt;&lt;BR /&gt;I checked the VxFS filesystem block size, both are 8K. &lt;BR /&gt;Any help is appreciated and will give points. ?</description>
      <pubDate>Sun, 18 Jul 2004 16:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334581#M189593</guid>
      <dc:creator>GIRIJA SWAIN</dc:creator>
      <dc:date>2004-07-18T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why directory size are diffrent in 2 diff server having same file size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334582#M189594</link>
      <description>HI,&lt;BR /&gt;See if the thread below helps. Hopefully you remove something from DDD directory of Server B but the processes are still running.&lt;BR /&gt;Do # fuser -cu ./DDD on both the server, you could found out something there.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=628841" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=628841&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Jul 2004 17:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334582#M189594</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-07-18T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why directory size are diffrent in 2 diff server having same file size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334583#M189595</link>
      <description>How about the fragment size? Also do a cksum on the file. may be do a fsck on both filesystems. how big is the abc file? Does the fstyp -v of both logical vol match? Just do du ./ddd instead of du -k and see what is the difference. can you give exact output?&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Jul 2004 17:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334583#M189595</guid>
      <dc:creator>monasingh_1</dc:creator>
      <dc:date>2004-07-18T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why directory size are diffrent in 2 diff server having same file size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334584#M189596</link>
      <description>Hi,&lt;BR /&gt;following are #fstyp -v output. I can see following diffrence, What needs to be done now ?&lt;BR /&gt;&lt;BR /&gt;Server-A: f_frsize: 1024&lt;BR /&gt;Server-B: f_frsize: 8192</description>
      <pubDate>Sun, 18 Jul 2004 18:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334584#M189596</guid>
      <dc:creator>GIRIJA SWAIN</dc:creator>
      <dc:date>2004-07-18T18:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why directory size are diffrent in 2 diff server having same file size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334585#M189597</link>
      <description>Usually when you newfs -F vxfs -b 8192 ..., the file fragment size gets set at 8192 also. It should not be a problem at all if you are going to have large files (like database files) in the filesystem. Otherwise you are going to have files of a size of ~1K then you should create a new filesystem again with newfs -F vxfs -b 1024 so that your block size and fragment size become 1024. &lt;BR /&gt;&lt;BR /&gt;hope this helps...</description>
      <pubDate>Sun, 18 Jul 2004 19:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334585#M189597</guid>
      <dc:creator>monasingh_1</dc:creator>
      <dc:date>2004-07-18T19:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why directory size are diffrent in 2 diff server having same file size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334586#M189598</link>
      <description>Also, if you do just newfs -F vxfs /dev/vg/lvol then you will have&lt;BR /&gt;f_bsize as 8192 and f_frsize as 1024 for the new filesystem and that may server your purpose. &lt;BR /&gt;&lt;BR /&gt;Just try different variation of newfs to come up with what you need. That is when you can newfs at all, otherwise you will need to go to backup/newfs/restore procedure.&lt;BR /&gt;&lt;BR /&gt;And if this filesystem is going to be used for big database files, I will not worry about it at all....</description>
      <pubDate>Sun, 18 Jul 2004 19:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334586#M189598</guid>
      <dc:creator>monasingh_1</dc:creator>
      <dc:date>2004-07-18T19:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why directory size are diffrent in 2 diff server having same file size.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334587#M189599</link>
      <description>The file you are storing may be a sparse file, very common in databases. A sparse file is one that was created with missing records, or more accurately, empty records that were never written. The sparse file will automatically supply a string of nulls  when reading the missing records. If you copy the file, the string of zeros will be stored in the destination and du will show the larger space. Both files will show the same results with ll and wc, and will behave exactly the same way.</description>
      <pubDate>Sun, 18 Jul 2004 20:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-directory-size-are-diffrent-in-2-diff-server-having-same/m-p/3334587#M189599</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-07-18T20:34:40Z</dc:date>
    </item>
  </channel>
</rss>

