<?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 bdf and du differing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063853#M737076</link>
    <description>Gurus,&lt;BR /&gt;&lt;BR /&gt;I have a file system full on my system on /var&lt;BR /&gt;&lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3     204800   86104  117816   42% /&lt;BR /&gt;/dev/vg00/lvol1     295024   45160  220360   17% /stand&lt;BR /&gt;/dev/vg00/lvol8    1298432 1298432       0  100% /var&lt;BR /&gt;/dev/vg00/lvol7    1581056 1043912  533032   66% /usr&lt;BR /&gt;/dev/vg00/lvol4     204800   33584  169936   17% /tmp&lt;BR /&gt;/dev/vg00/lvol6    1236992 1185672   50984   96% /opt&lt;BR /&gt;/dev/vg00/lvol5    2097152 1127048  962656   54% /home&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i tried to get the culprits for this and see if i can delete the files by using&lt;BR /&gt;&lt;BR /&gt;du -akr /var | sort -n -k 1,1&lt;BR /&gt;&lt;BR /&gt;and delte the appropriate files.&lt;BR /&gt;&lt;BR /&gt;but when i do du -s /var itself, i find the output of bdf.&lt;BR /&gt;&lt;BR /&gt;# du -s /var&lt;BR /&gt;276752  /var&lt;BR /&gt;&lt;BR /&gt;My unix version is as follows.&lt;BR /&gt;# uname -a&lt;BR /&gt;HP-UX braces B.11.11 U 9000/800 2002499995 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Your help in solving my issue would be highly appreciated</description>
    <pubDate>Mon, 20 Aug 2007 06:57:01 GMT</pubDate>
    <dc:creator>Satya Prasad Nemana</dc:creator>
    <dc:date>2007-08-20T06:57:01Z</dc:date>
    <item>
      <title>bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063853#M737076</link>
      <description>Gurus,&lt;BR /&gt;&lt;BR /&gt;I have a file system full on my system on /var&lt;BR /&gt;&lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3     204800   86104  117816   42% /&lt;BR /&gt;/dev/vg00/lvol1     295024   45160  220360   17% /stand&lt;BR /&gt;/dev/vg00/lvol8    1298432 1298432       0  100% /var&lt;BR /&gt;/dev/vg00/lvol7    1581056 1043912  533032   66% /usr&lt;BR /&gt;/dev/vg00/lvol4     204800   33584  169936   17% /tmp&lt;BR /&gt;/dev/vg00/lvol6    1236992 1185672   50984   96% /opt&lt;BR /&gt;/dev/vg00/lvol5    2097152 1127048  962656   54% /home&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i tried to get the culprits for this and see if i can delete the files by using&lt;BR /&gt;&lt;BR /&gt;du -akr /var | sort -n -k 1,1&lt;BR /&gt;&lt;BR /&gt;and delte the appropriate files.&lt;BR /&gt;&lt;BR /&gt;but when i do du -s /var itself, i find the output of bdf.&lt;BR /&gt;&lt;BR /&gt;# du -s /var&lt;BR /&gt;276752  /var&lt;BR /&gt;&lt;BR /&gt;My unix version is as follows.&lt;BR /&gt;# uname -a&lt;BR /&gt;HP-UX braces B.11.11 U 9000/800 2002499995 unlimited-user license&lt;BR /&gt;&lt;BR /&gt;Your help in solving my issue would be highly appreciated</description>
      <pubDate>Mon, 20 Aug 2007 06:57:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063853#M737076</guid>
      <dc:creator>Satya Prasad Nemana</dc:creator>
      <dc:date>2007-08-20T06:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063854#M737077</link>
      <description>See this&lt;BR /&gt;&lt;A href="http://www.unix.com/hp-ux/26934-what-to-do-when-file-system-of-hp-ux-box-is-full.html" target="_blank"&gt;http://www.unix.com/hp-ux/26934-what-to-do-when-file-system-of-hp-ux-box-is-full.html&lt;/A&gt;</description>
      <pubDate>Mon, 20 Aug 2007 07:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063854#M737077</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-08-20T07:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063855#M737078</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The difference between bdf and du involve how they report files handles locked where the file is deleted.&lt;BR /&gt;&lt;BR /&gt;If you delete a file to save space but there is still an open file handle, bdf will not report the space as released because in fact it is not released.&lt;BR /&gt;&lt;BR /&gt;du will under the same circumstances report different free space.&lt;BR /&gt;&lt;BR /&gt;bdf is not based on du and does it calculations differently.&lt;BR /&gt;&lt;BR /&gt;It is quite frequent that files in the /var system will be locked because they are log files and syslog and other deamons need to keep them locked.&lt;BR /&gt;&lt;BR /&gt;You might find that stopping and starting the syslog daemon will release the space.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/syslogd stop&lt;BR /&gt;/sbin/init.d/syslogd start&lt;BR /&gt;&lt;BR /&gt;If you have deleted or trimmed log files manually tell us what their names are and we can identify which daemon needs to be stopped in order to have the space clear.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 20 Aug 2007 07:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063855#M737078</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-08-20T07:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063856#M737079</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;There are three comments I need to make. &lt;BR /&gt;&lt;BR /&gt;Firstly there if any files have open file handles (ie they are in use) they will only be deleted once they have been closed. A classic example are syslogd files /var/adm/syslog/syslog.lod and /var/adm/syslog/maillog.&lt;BR /&gt;&lt;BR /&gt;If you know which files they are you can send a  Hang UP signal to the process which will close those files and reopen them. Use the following command kill -s SIGHUP &lt;PID&gt; where PID is the process ID. Use the ps command to identify the process ID's&lt;BR /&gt;&lt;BR /&gt;The second is that the software installer  keeps old versons of files that have been patched in /var/adm/sw which often take up a lot of space. Do not simply delete these files. You can clean up (remove) superseded patches - patches that themselves been replaced by newer patches - using the cleanup -c &lt;NUMVERSIONS&gt; command. For more details see man cleanup .&lt;BR /&gt;&lt;BR /&gt;There are also log files in /var/adm/sw which can be removed. &lt;BR /&gt;&lt;BR /&gt;If you running omniback there may be more files you can remove in /var/opt/omni/log or /var/opt/omni/server/log.&lt;BR /&gt;&lt;BR /&gt;There may also be files in the spool folder for mail and printers. lpstat will give you the print queue contents and mailq the sendmail mail queue. You cannot just delete files from these folders though. &lt;BR /&gt;&lt;BR /&gt;Lastly bdf has a habit of caching entries so be careful that it may not pick up changes in  file system size after deletions. Sometimes you need to open a new shell first. I'm not about du though.&lt;BR /&gt;&lt;BR /&gt;Perhaps a good place to start would be to see where the large users of /var are.&lt;BR /&gt;&lt;BR /&gt;Run du -ks /var/*&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Andrew Y&lt;BR /&gt;&lt;BR /&gt;&lt;/NUMVERSIONS&gt;&lt;/PID&gt;</description>
      <pubDate>Mon, 20 Aug 2007 07:19:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063856#M737079</guid>
      <dc:creator>Andrew Young_2</dc:creator>
      <dc:date>2007-08-20T07:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063857#M737080</link>
      <description>When I have a file system either filled or filling I use the following to print the culprits at the top of the list including the subdirectory name:&lt;BR /&gt;&lt;BR /&gt;du -kxa /var | sort -rn | more&lt;BR /&gt;&lt;BR /&gt;The du -k (kilobytes) x (don't cross to another file system) a (print all files) then pipe it to sort -r (reverse)n (numeric) and since it will give me the biggest offenders first I pipe it to more to pagenate the output. &lt;BR /&gt;&lt;BR /&gt;Using this system you will know which directory is using the most space because somethimes there can be hundreds of small files that take up as much space or more that some large "log" files etc.&lt;BR /&gt;&lt;BR /&gt;Here is a sample and note that the biggest user of disk space is /var/adm/sw/save directory followed by /var/adm/sw/products directory the largest single file being /var/adm/sw/save/PHCO_35291 &lt;BR /&gt;&lt;BR /&gt;root&amp;gt; du -kxa /var |sort -rn |more&lt;BR /&gt;771304  /var&lt;BR /&gt;689368  /var/adm&lt;BR /&gt;684328  /var/adm/sw&lt;BR /&gt;530168  /var/adm/sw/save&lt;BR /&gt;131344  /var/adm/sw/products&lt;BR /&gt;116120  /var/adm/sw/save/PHCO_35291&lt;BR /&gt;114720  /var/adm/sw/save/PHCO_35291/VXVM-RUN&lt;BR /&gt;64192   /var/opt&lt;BR /&gt;62880   /var/adm/sw/save/PHSS_33944&lt;BR /&gt;62208   /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc/vx&lt;BR /&gt;62208   /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc&lt;BR /&gt;41088   /var/adm/sw/save/PHCO_35291/VXVM-RUN/usr&lt;BR /&gt;38352   /var/opt/perf&lt;BR /&gt;37464   /var/opt/perf/datafiles&lt;BR /&gt;33656   /var/adm/sw/save/PHSS_32977&lt;BR /&gt;32648   /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc/vx/type&lt;BR /&gt;31152   /var/adm/sw/save/PHSS_33949&lt;BR /&gt;29712   /var/adm/sw/save/PHCO_35291/VXVM-RUN/usr/sbin&lt;BR /&gt;29376   /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc/vx/static.d&lt;BR /&gt;28688   /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc/vx/static.d/build/vold.o&lt;BR /&gt;28688   /var/adm/sw/save/PHCO_35291/VXVM-RUN/etc/vx/static.d/build&lt;BR /&gt;25184   /var/adm/sw/save/PHSS_33944/LANG-64ALIB/usr/lib/pa20_64&lt;BR /&gt;25184   /var/adm/sw/save/PHSS_33944/LANG-64ALIB/usr/lib&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Aug 2007 12:35:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063857#M737080</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2007-08-20T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063858#M737081</link>
      <description>take a look at doc TBRIXKBRC00001367&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c01026280-2" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&amp;amp;docId=emr_na-c01026280-2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;if the link does not work here is what's in it&lt;BR /&gt;&lt;BR /&gt;PROBLEM&lt;BR /&gt;&lt;BR /&gt;The filesystem has filled up, so action was taken to delete 800MB of logfiles.&lt;BR /&gt;&lt;BR /&gt;The command:&lt;BR /&gt;"du -s" &lt;BR /&gt;&lt;BR /&gt;shows the space as 'freed' but "bdf" doesn't. How can that be?&lt;BR /&gt;&lt;BR /&gt;                                         &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;CONFIGURATION&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hpux 10.x 10.20 11.x s700&lt;BR /&gt;s800&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                                  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RESOLUTION&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Obviously there is a difference in how du and bdf behave.&lt;BR /&gt;This may occur if we touch open files.&lt;BR /&gt;"du" shows output in a positive view: it shows the number of currently allocated&lt;BR /&gt;blocks and counts the blocks you've just deleted as free.&lt;BR /&gt;&lt;BR /&gt;"bdf" has a more negative perspective: it shows the free disk space available.&lt;BR /&gt;&lt;BR /&gt;The difference is here: if a still-active process has allocated blocks (such as&lt;BR /&gt;for a logfile that you've just deleted), "bdf" counts these as still occupied.&lt;BR /&gt;This won't change until the process closes the file ("deallocates the blocks")&lt;BR /&gt;as it usually happens when the process terminates.</description>
      <pubDate>Mon, 20 Aug 2007 12:40:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063858#M737081</guid>
      <dc:creator>Aussan</dc:creator>
      <dc:date>2007-08-20T12:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063859#M737082</link>
      <description>Thanks a lot for all of your answers.&lt;BR /&gt;I actually i tried to clean up some of the files... &lt;BR /&gt;bdf for a brief moment displayed some free space but very quickly made that to "zero".&lt;BR /&gt;Then i suspected that it is indeed some process that is culprit.&lt;BR /&gt;&lt;BR /&gt;I found that i have two "seagulls" running on my system and that is causing the havoc.. I killed both and now have a 10% utilization on my /var.&lt;BR /&gt;&lt;BR /&gt;Thanks again for your time and the immense patience in explaining the very basic things also.</description>
      <pubDate>Tue, 21 Aug 2007 00:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063859#M737082</guid>
      <dc:creator>Satya Prasad Nemana</dc:creator>
      <dc:date>2007-08-21T00:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063860#M737083</link>
      <description>I found a solution largely due to the suggestion by Aussan but all the inputs from the other "Pundits" helped immensely in understanding the differences between bdf and du and also actions required when the file system is full.</description>
      <pubDate>Tue, 21 Aug 2007 00:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063860#M737083</guid>
      <dc:creator>Satya Prasad Nemana</dc:creator>
      <dc:date>2007-08-21T00:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: bdf and du differing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063861#M737084</link>
      <description>You may want to look at this long thread for some more tips:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1145799" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1145799&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Your bdf output indicates you aren't as tricky. :-)</description>
      <pubDate>Tue, 21 Aug 2007 00:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bdf-and-du-differing/m-p/5063861#M737084</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-21T00:40:28Z</dc:date>
    </item>
  </channel>
</rss>

