<?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: Disk Space Query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736609#M255441</link>
    <description>Has anyone removed any files from /w.&lt;BR /&gt;&lt;BR /&gt;If files where being used by a process (ie application logfile) and this file was removed without stopping the application then although the file would be removed the inode will not be released and therefore neither would allocation space for the file, so the file size in space is still reserved even though the file isn't listed.&lt;BR /&gt;&lt;BR /&gt;If this is the case then recycle the application (or umount filesystem and remount) and this will free up inode (therefore the space)</description>
    <pubDate>Wed, 22 Feb 2006 07:26:35 GMT</pubDate>
    <dc:creator>Carl Munnelly</dc:creator>
    <dc:date>2006-02-22T07:26:35Z</dc:date>
    <item>
      <title>Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736596#M255428</link>
      <description>I have a file system (/w) which indicates over 2GB usage when using bdf.&lt;BR /&gt;&lt;BR /&gt;When I use the command "du -sk /w" it indicates it is only using 500MB.&lt;BR /&gt;&lt;BR /&gt;Checking all directories under /w does not show any large unexpected files. &lt;BR /&gt;&lt;BR /&gt;The file system has been around the 2GB size (via bdf) even after reboots. &lt;BR /&gt;&lt;BR /&gt;Where could the missing 1.5 GB disk usage be...?</description>
      <pubDate>Tue, 21 Feb 2006 23:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736596#M255428</guid>
      <dc:creator>Gary March</dc:creator>
      <dc:date>2006-02-21T23:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736597#M255429</link>
      <description>Hi Gary, &lt;BR /&gt;&lt;BR /&gt;Do you have any process(es) that uses /w filesystem ? Check this out by # fuser -u &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 21 Feb 2006 23:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736597#M255429</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-21T23:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736598#M255430</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;     Can you paste the output of the follwoing commands,..&lt;BR /&gt;&lt;BR /&gt;bdf -i&lt;BR /&gt;bdf -i /w&lt;BR /&gt;du -k /w&lt;BR /&gt;du -sk /w&lt;BR /&gt;&lt;BR /&gt;A attachment of these outputs would suffice.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Tue, 21 Feb 2006 23:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736598#M255430</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-21T23:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736599#M255431</link>
      <description>Yes, I have several hundred processes using the file system. "fuser -cu /w" shows these processes.&lt;BR /&gt;&lt;BR /&gt;Please note that after a reboot, this count would possibly be zero.</description>
      <pubDate>Tue, 21 Feb 2006 23:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736599#M255431</guid>
      <dc:creator>Gary March</dc:creator>
      <dc:date>2006-02-21T23:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736600#M255432</link>
      <description>can you show us the information?&lt;BR /&gt;&lt;BR /&gt;# bdf &lt;BR /&gt;# du -sk /w&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 22 Feb 2006 00:02:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736600#M255432</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-22T00:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736601#M255433</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;Can you kill all the unwanted process and post # bdf -l output. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 22 Feb 2006 00:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736601#M255433</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-22T00:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736602#M255434</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;        My guess is U would have mounted a file system which contains 1.5 gb worth of data, hence making it disappear for the command du -sk /w to check. To make sure this possibility is ruled out I would like to get us the output of the follwoing commands.&lt;BR /&gt;&lt;BR /&gt;bdf -i&lt;BR /&gt;du -k /w&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Wed, 22 Feb 2006 00:07:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736602#M255434</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-22T00:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736603#M255435</link>
      <description>Sorry for ambiguos reply,&lt;BR /&gt;&lt;BR /&gt;      I meant, u would have mounted a FS on a directory ..which conatained 1.5 GB of Data earlier to mount..so please give us the outputs..to indeed see if this was true..&lt;BR /&gt;&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Wed, 22 Feb 2006 00:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736603#M255435</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-22T00:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736604#M255436</link>
      <description>Output from select commands follows:&lt;BR /&gt;/&amp;gt;#bdf -i /w&lt;BR /&gt;Filesystem          kbytes    used   avail %used  iused  ifree %iuse Mounted on&lt;BR /&gt;/dev/vg01/w         2621440 2464376  157064   94% 103383 608297   15% /w&lt;BR /&gt;/&amp;gt;#du -sk /w&lt;BR /&gt;557115  /w&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers</description>
      <pubDate>Wed, 22 Feb 2006 00:24:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736604#M255436</guid>
      <dc:creator>Gary March</dc:creator>
      <dc:date>2006-02-22T00:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736605#M255437</link>
      <description>Also Gary,&lt;BR /&gt;&lt;BR /&gt;  We wanted the output of just "bdf -i" without mentioning any specific FS.&lt;BR /&gt;&lt;BR /&gt;     That is we want the whole output.&lt;BR /&gt;Just&lt;BR /&gt;&lt;BR /&gt;bdf -i&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Wed, 22 Feb 2006 00:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736605#M255437</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-22T00:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736606#M255438</link>
      <description>Below is bdf -i for whole system&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/&amp;gt;#bdf -i&lt;BR /&gt;Filesystem          kbytes    used   avail %used  iused  ifree %iuse Mounted on&lt;BR /&gt;/dev/vg00/lvol3     212992  147088   65416   69%   6844   2052   77% /&lt;BR /&gt;/dev/vg00/lvol1     298928   57024  212008   21%     80  32688    0% /stand&lt;BR /&gt;/dev/vg01/work     31440896 24261360 7067868   77% 176908 448708   28% /work&lt;BR /&gt;/dev/vg01/wrms     10485760 9448052 1006050   90% 171773 129707   57% /wrms&lt;BR /&gt;/dev/vg01/w        2621440 2473674  147766   94% 103375 608305   15% /w&lt;BR /&gt;/dev/vg00/lvol8    4718592 3386976 1327928   72%  22865  41583   35% /var&lt;BR /&gt;/dev/vg00/lvol7    2015232 1164584  844064   58%  31029  26571   54% /usr&lt;BR /&gt;/dev/vg00/lvol4    1032192  279048  747944   27%   3468  23508   13% /tmp&lt;BR /&gt;/dev/vg00/lvol6    2211840 1951624  258488   88%  37499   8101   82% /opt&lt;BR /&gt;/dev/vg01/nib       524288    1229  490375    0%      5 130763    0% /nib&lt;BR /&gt;/dev/vg01/home     1048576  649087  374558   63%  13007  99869   12% /home&lt;BR /&gt;/dev/vg01/data     2097152 1748883  326534   84%  72833  87067   46% /data&lt;BR /&gt;/dev/vg01/apps     2097152 1350727  699982   66%  11966 186606    6% /apps&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 01:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736606#M255438</guid>
      <dc:creator>Gary March</dc:creator>
      <dc:date>2006-02-22T01:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736607#M255439</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;     As of from you "bdf -i" output, I do not see any hidden files due to mounting. Please do refer the following thread, it might shed some light on the issue you have...&lt;BR /&gt;&lt;BR /&gt;      &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=989077" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=989077&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=992662" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=992662&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;   Also my suggestion , can u check the same after unmount the File system ,perform fsck and remount during your change window.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Wed, 22 Feb 2006 04:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736607#M255439</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-02-22T04:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736608#M255440</link>
      <description>Has anyone removed any files from /w.&lt;BR /&gt;&lt;BR /&gt;If files where being used by a process (ie application logfile) and was removed without stopping application then although file removed the inode will not be release and therefore will still be allocation the file size in space even though no file listed.&lt;BR /&gt;&lt;BR /&gt;If this is the case then recycle application and this will free up inode (therefore the space)</description>
      <pubDate>Wed, 22 Feb 2006 07:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736608#M255440</guid>
      <dc:creator>Carl Munnelly</dc:creator>
      <dc:date>2006-02-22T07:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736609#M255441</link>
      <description>Has anyone removed any files from /w.&lt;BR /&gt;&lt;BR /&gt;If files where being used by a process (ie application logfile) and this file was removed without stopping the application then although the file would be removed the inode will not be released and therefore neither would allocation space for the file, so the file size in space is still reserved even though the file isn't listed.&lt;BR /&gt;&lt;BR /&gt;If this is the case then recycle the application (or umount filesystem and remount) and this will free up inode (therefore the space)</description>
      <pubDate>Wed, 22 Feb 2006 07:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736609#M255441</guid>
      <dc:creator>Carl Munnelly</dc:creator>
      <dc:date>2006-02-22T07:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736610#M255442</link>
      <description>sorry for duplication IE told me site unavailable so refreshed and resubmitted. Only noticed upon checking</description>
      <pubDate>Wed, 22 Feb 2006 07:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736610#M255442</guid>
      <dc:creator>Carl Munnelly</dc:creator>
      <dc:date>2006-02-22T07:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736611#M255443</link>
      <description>Hi Gary, &lt;BR /&gt;&lt;BR /&gt;to find which process is holding a deleted file, you can try using lsof. &lt;BR /&gt;For example:&lt;BR /&gt; # lsof /fs1&lt;BR /&gt;COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME&lt;BR /&gt;sh       5333 root  cwd    DIR 64,0xe     1024    2 /fs1&lt;BR /&gt;cat     20195 root    1u   REG 64,0xe       68   10 /fs1 (/dev/vg00/lvol14)&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; I think you will get the mention of logical volume only in line of process with orphaned inode. &lt;BR /&gt;&lt;BR /&gt;If not yet installed, you can get lsof from &lt;A href="http://hpux.connect.org.uk/hppd/cgi-bin/search?package=&amp;amp;term=/lsof" target="_blank"&gt;http://hpux.connect.org.uk/hppd/cgi-bin/search?package=&amp;amp;term=/lsof&lt;/A&gt;</description>
      <pubDate>Thu, 23 Feb 2006 02:37:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736611#M255443</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-02-23T02:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736612#M255444</link>
      <description>"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;"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.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would umount the file system and run a full fsck to see if you can clean it.</description>
      <pubDate>Thu, 23 Feb 2006 02:51:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736612#M255444</guid>
      <dc:creator>LoC_1</dc:creator>
      <dc:date>2006-02-23T02:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Space Query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736613#M255445</link>
      <description>I ran lsof on the file system and found a process consuming 1.7 GB. This process had been running for quite some time. When I stopped and restarted the process this space was freed up.&lt;BR /&gt;&lt;BR /&gt;We do not normally reboot this server but it was restarted after a couple of power failures. After these restarts the size of the file system was not reduced at all. I do not understand why. (?) As a precaution, I am going to use cron to stop and start the troublesome process on a regular basis.&lt;BR /&gt;&lt;BR /&gt;I found the support and contributions from everybody to be excellent (thanks very much). I also found the lsof tool to be extremely useful in identifying the problem process.</description>
      <pubDate>Sun, 26 Feb 2006 19:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-space-query/m-p/3736613#M255445</guid>
      <dc:creator>Gary March</dc:creator>
      <dc:date>2006-02-26T19:16:00Z</dc:date>
    </item>
  </channel>
</rss>

