<?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: Question about directories. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594826#M828487</link>
    <description>This is correct.  The number won't reduce.  &lt;BR /&gt;This number isn't the size of the file space used in the directory, it's the size of the file structure. Directory structures just grow.  If you remove most of the files in the directory, the structure would remain the same size, overly simplified as just full of null pointers (instead of pointers to inodes).&lt;BR /&gt;&lt;BR /&gt;If they want to see that size of the CONTENTS of the directory is smaller - then do a du -sk logsWaitingToRemove.  You'll see that the size of files used by the directory does reduce, just not the size of the directory structure, which is just a bunch of pointers.&lt;BR /&gt;&lt;BR /&gt;If you want to reduce the size of the dir structure, then make another directory (sibling directory) and move everything into the new directory (wont take but a second), remove the logsWaitingToRemove directory, then rename the new directory to logsWaitingToRemove.&lt;BR /&gt;&lt;BR /&gt;mkdir temp&lt;BR /&gt;mv logsWaitingtoRemove/* temp&lt;BR /&gt;rmdir logsWaitingtoRemove&lt;BR /&gt;mv temp logsWaitingtoRemove&lt;BR /&gt;</description>
    <pubDate>Tue, 02 Aug 2005 10:43:35 GMT</pubDate>
    <dc:creator>TwoProc</dc:creator>
    <dc:date>2005-08-02T10:43:35Z</dc:date>
    <item>
      <title>Question about directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594823#M828484</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;11.11&lt;BR /&gt;vxfs&lt;BR /&gt;patch bundle december 2004&lt;BR /&gt;&lt;BR /&gt;Need a sanity check on what i see in a ls output;&lt;BR /&gt;&lt;BR /&gt;drwxr-xrwx   2 psoft      gpsoft     22945792 Aug  2 10:50 logsWaitingToRemove&lt;BR /&gt;# cd logsWaitingToRemove&lt;BR /&gt;# ll | wc -l&lt;BR /&gt;6324&lt;BR /&gt;# bdf .&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvpsoft  94044160 80080196 13803424   85% /psoft&lt;BR /&gt;&lt;BR /&gt;Cust reports that the 22945792 number rarely changes. even if he reduces the file count to 2k or less. Want to know what this number represents.... thats just a representation of pointers, right?&lt;BR /&gt;&lt;BR /&gt;Just need to explain this to the cust so they dont flip out over nothing.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 10:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594823#M828484</guid>
      <dc:creator>Richard Pereira_1</dc:creator>
      <dc:date>2005-08-02T10:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594824#M828485</link>
      <description>That is the size of the directory file itself.  Mind you it is NOT the total size of the contents of the directory.&lt;BR /&gt;&lt;BR /&gt;You will see that grow as needed as files get added to a directory.  However, when you remove files from a directory, that size does *NOT* shrink.&lt;BR /&gt;&lt;BR /&gt;The only way to shrink it is to remove it and recreate it.</description>
      <pubDate>Tue, 02 Aug 2005 10:27:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594824#M828485</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-08-02T10:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Question about directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594825#M828486</link>
      <description>As mentioned in post above, the inode block are not released. The only way is to rebuild the directory.&lt;BR /&gt;I came across same issue (with log directory too !). If you can take it offline that should not take too long.&lt;BR /&gt;&lt;BR /&gt;also check thread :&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619233" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619233&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Tue, 02 Aug 2005 10:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594825#M828486</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-08-02T10:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question about directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594826#M828487</link>
      <description>This is correct.  The number won't reduce.  &lt;BR /&gt;This number isn't the size of the file space used in the directory, it's the size of the file structure. Directory structures just grow.  If you remove most of the files in the directory, the structure would remain the same size, overly simplified as just full of null pointers (instead of pointers to inodes).&lt;BR /&gt;&lt;BR /&gt;If they want to see that size of the CONTENTS of the directory is smaller - then do a du -sk logsWaitingToRemove.  You'll see that the size of files used by the directory does reduce, just not the size of the directory structure, which is just a bunch of pointers.&lt;BR /&gt;&lt;BR /&gt;If you want to reduce the size of the dir structure, then make another directory (sibling directory) and move everything into the new directory (wont take but a second), remove the logsWaitingToRemove directory, then rename the new directory to logsWaitingToRemove.&lt;BR /&gt;&lt;BR /&gt;mkdir temp&lt;BR /&gt;mv logsWaitingtoRemove/* temp&lt;BR /&gt;rmdir logsWaitingtoRemove&lt;BR /&gt;mv temp logsWaitingtoRemove&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2005 10:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594826#M828487</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-08-02T10:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about directories.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594827#M828488</link>
      <description>Thanks guys, I wont recreate (as i expect it to fluctuate often) but I want to confirm its indeed the structures and its normal that the number doesnt reduce. Thanks for the sanity check.</description>
      <pubDate>Tue, 02 Aug 2005 11:08:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-directories/m-p/3594827#M828488</guid>
      <dc:creator>Richard Pereira_1</dc:creator>
      <dc:date>2005-08-02T11:08:28Z</dc:date>
    </item>
  </channel>
</rss>

