<?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: /var full in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806986#M267656</link>
    <description>Some places to check that haven't been mentioned...&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog&lt;BR /&gt;/var/adm/lp&lt;BR /&gt;/var/mail&lt;BR /&gt;/var/adm/wtmp (to big?)&lt;BR /&gt;/var/adm/lp/log&lt;BR /&gt;/var/spool/lp/request&lt;BR /&gt;/var/spool/cron/tmp&lt;BR /&gt;/var/sam/log&lt;BR /&gt;/var/spool/mqueue&lt;BR /&gt;lost+found (found in any mounted file system)&lt;BR /&gt;Did you mount a filesystem *ON* another filesystem in /var (thus hiding what's underneath)?&lt;BR /&gt;Remove core files in /var?&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Jun 2006 06:27:48 GMT</pubDate>
    <dc:creator>Doug Burton</dc:creator>
    <dc:date>2006-06-16T06:27:48Z</dc:date>
    <item>
      <title>/var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806978#M267648</link>
      <description>Good mornig&lt;BR /&gt;I have a problem. If I run the command "bdf /var", it outputs:&lt;BR /&gt;&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol8    5111808 5052688   58712   99% /var&lt;BR /&gt;&lt;BR /&gt;Bur du -sk is: 1794504&lt;BR /&gt;&lt;BR /&gt;I rebooted a lot of time, but it doesn't solve the problem.&lt;BR /&gt;&lt;BR /&gt;Can someone help me?&lt;BR /&gt;Fabrizio</description>
      <pubDate>Fri, 16 Jun 2006 05:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806978#M267648</guid>
      <dc:creator>Fabrizio Sinopoli</dc:creator>
      <dc:date>2006-06-16T05:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806979#M267649</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Find out what is occupying more. &lt;BR /&gt;&lt;BR /&gt;# du -skx /var/* | sort -nr | head -10&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 16 Jun 2006 05:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806979#M267649</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-06-16T05:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806980#M267650</link>
      <description>check for unwanted dumps under /var/adm/crash.&lt;BR /&gt;Also, if you have installed patches and no longer wish to keep copies for the ability to remove them, you can check how much space is in use under /var/adm/sw/save, and if ti is large then use swmodify to commit these patches or just remove the subdirectories under this directory&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jun 2006 05:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806980#M267650</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2006-06-16T05:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806981#M267651</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;sam--&amp;gt;Routine Tasks--&amp;gt;System log files&lt;BR /&gt;and reduce the size of some of the logfiles.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Fri, 16 Jun 2006 05:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806981#M267651</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2006-06-16T05:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806982#M267652</link>
      <description>Hi Fabrizio,&lt;BR /&gt;&lt;BR /&gt;# find /var -xdev -type f -exec ll {} \;| awk '{ printf "%9d %3s %2d %5s %s\n" , $5, $6 , $7, $8, $9 }'|sort -r -n &amp;gt; /tmp/var.txt &amp;amp;&lt;BR /&gt;&lt;BR /&gt;# more /tmp/var.txt&lt;BR /&gt;&lt;BR /&gt;Others tasks,&lt;BR /&gt;&lt;BR /&gt;Modifify /sbin/clean_tmps and /etc/rc.config.d/clean_tmps, for delete files in directory /var/tmp afther reboot.&lt;BR /&gt;&lt;BR /&gt;Verify file /sbin/clean_adm and /etc/rc.config.d/clean for others clean files.&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;ran</description>
      <pubDate>Fri, 16 Jun 2006 06:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806982#M267652</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-06-16T06:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806983#M267653</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Usually the difference in sizes shown by bdf/df and du (Usually du shows lesser than df in such cases) is because some process opens a file and then terminates before closing the file leaving the space unreleased.&lt;BR /&gt;But once you reboor these should more or less tally.&lt;BR /&gt;Next thing is how you check /var using du -&lt;BR /&gt;it should be du -skx /var (Because usually there are other filesystems mounted in /var like /var/tmp , /var/adm ...), if you just use du -sk it will show disk usage by all files/directories under /var DIRECTORY and will not show the disk usage of files/directories in /var FILESYSTEM.&lt;BR /&gt;&lt;BR /&gt;Now solving the problem as already suggested above, check for crash files, core files&lt;BR /&gt;find /var -xdev -name core&lt;BR /&gt;Also&lt;BR /&gt;du -sk /var/* | sort -nr | more&lt;BR /&gt;to check highest disk using directories - but then you need to check that they are not seperate filesystems and are infact files/directories in /var filesystem .&lt;BR /&gt;And cleanup unwanted stuff.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 16 Jun 2006 06:11:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806983#M267653</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-16T06:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806984#M267654</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Heres a script which will show highest disk using directories in /var FILESYSTEM (as /var DIRECTORY may contain various filesystems which you need not see as /var FILESYSTEM is full )&lt;BR /&gt;&lt;BR /&gt;du -sk /var/* | sort -nr| while read dirsize dirname&lt;BR /&gt; do&lt;BR /&gt;  if [[ $(bdf $dirname | grep -c '/var$') != 0 ]]&lt;BR /&gt;   then&lt;BR /&gt;      echo $dirname $dirsize&lt;BR /&gt;  fi&lt;BR /&gt; done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 16 Jun 2006 06:17:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806984#M267654</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-16T06:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806985#M267655</link>
      <description>Fabrizio,&lt;BR /&gt;&lt;BR /&gt;You might also find it helpful to look at files which have been recently created/modified:&lt;BR /&gt;&lt;BR /&gt;# find /var -xdev -type f -mtime -3 -exec ll {} \; |sort -k5&lt;BR /&gt;&lt;BR /&gt;Also have a good long look at the contents of /var/tmp.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 16 Jun 2006 06:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806985#M267655</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-16T06:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806986#M267656</link>
      <description>Some places to check that haven't been mentioned...&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog&lt;BR /&gt;/var/adm/lp&lt;BR /&gt;/var/mail&lt;BR /&gt;/var/adm/wtmp (to big?)&lt;BR /&gt;/var/adm/lp/log&lt;BR /&gt;/var/spool/lp/request&lt;BR /&gt;/var/spool/cron/tmp&lt;BR /&gt;/var/sam/log&lt;BR /&gt;/var/spool/mqueue&lt;BR /&gt;lost+found (found in any mounted file system)&lt;BR /&gt;Did you mount a filesystem *ON* another filesystem in /var (thus hiding what's underneath)?&lt;BR /&gt;Remove core files in /var?&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jun 2006 06:27:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806986#M267656</guid>
      <dc:creator>Doug Burton</dc:creator>
      <dc:date>2006-06-16T06:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806987#M267657</link>
      <description>No core files, no file with a great size...&lt;BR /&gt;The system (HP-UX 11.23 Itanium) is new, only few weeks of life...&lt;BR /&gt;No software installed, only OS.</description>
      <pubDate>Fri, 16 Jun 2006 06:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806987#M267657</guid>
      <dc:creator>Fabrizio Sinopoli</dc:creator>
      <dc:date>2006-06-16T06:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806988#M267658</link>
      <description>More,&lt;BR /&gt;&lt;BR /&gt;get space in /var/adm/sw/save,&lt;BR /&gt;&lt;BR /&gt;# cleanup -p -c 2 (previous)&lt;BR /&gt;&lt;BR /&gt;# cleanup -c 2 (commit)&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;ran&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jun 2006 06:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806988#M267658</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-06-16T06:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806989#M267659</link>
      <description>If you have available space in your vg00, consider to increase lvol8. Really no large files found?&lt;BR /&gt;&lt;BR /&gt;What gives&lt;BR /&gt;&lt;BR /&gt;cleanup -p -c 2&lt;BR /&gt;&lt;BR /&gt;(this is preview mode only)</description>
      <pubDate>Fri, 16 Jun 2006 07:03:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806989#M267659</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-06-16T07:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806990#M267660</link>
      <description>I have 4 identical server. The used space under /var is the same, but on only one server the bdf command says /var at 99%.&lt;BR /&gt;The used space in /var/adm/sw/save is the same for all servers. So this is not the problem...</description>
      <pubDate>Fri, 16 Jun 2006 07:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806990#M267660</guid>
      <dc:creator>Fabrizio Sinopoli</dc:creator>
      <dc:date>2006-06-16T07:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806991#M267661</link>
      <description>Fabrizio,&lt;BR /&gt;&lt;BR /&gt;According to your 'bdf' output, you have 58,712 kbytes free.  What happens if you create a 60,000 kbyte file?  Does the /var filesystem fill up?&lt;BR /&gt;&lt;BR /&gt;prealloc /var/tmp/foo 60000000&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 16 Jun 2006 07:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806991#M267661</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-16T07:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806992#M267662</link>
      <description>File system full...&lt;BR /&gt;&lt;BR /&gt;No space left on device.</description>
      <pubDate>Fri, 16 Jun 2006 07:37:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806992#M267662</guid>
      <dc:creator>Fabrizio Sinopoli</dc:creator>
      <dc:date>2006-06-16T07:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806993#M267663</link>
      <description>Fabrizio,&lt;BR /&gt;&lt;BR /&gt;Did you try running the script I gave you to show max space occupying directories ?&lt;BR /&gt;Any clue from that on where is the space going ?&lt;BR /&gt;I also suggest you to run lsof to see list of open files to check which files in /var are open to get a clue if there is a big file not being closed by a dead process.&lt;BR /&gt;You can install lsof from&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Fri, 16 Jun 2006 07:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806993#M267663</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-16T07:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806994#M267664</link>
      <description>Fabrizio,&lt;BR /&gt;&lt;BR /&gt;Please post output of:&lt;BR /&gt;&lt;BR /&gt;du -skx /var/* | sort -nr | head -10&lt;BR /&gt;&lt;BR /&gt;find /var -type f -xdev -size +5000000c -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 16 Jun 2006 08:10:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806994#M267664</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-16T08:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806995#M267665</link>
      <description>First output:&lt;BR /&gt;du -skx /var/* | sort -nr | head -10&lt;BR /&gt;1670904 /var/adm&lt;BR /&gt;82480   /var/opt&lt;BR /&gt;22768   /var/jail&lt;BR /&gt;17128   /var/stm&lt;BR /&gt;616     /var/vx&lt;BR /&gt;264     /var/sam&lt;BR /&gt;128     /var/tmp&lt;BR /&gt;120     /var/spool&lt;BR /&gt;104     /var/tombstones&lt;BR /&gt;96      /var/yp&lt;BR /&gt;&lt;BR /&gt;Second output in attachment.</description>
      <pubDate>Fri, 16 Jun 2006 08:20:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806995#M267665</guid>
      <dc:creator>Fabrizio Sinopoli</dc:creator>
      <dc:date>2006-06-16T08:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: /var full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806996#M267666</link>
      <description>Hi Fabrizio:&lt;BR /&gt;&lt;BR /&gt;This would seem to fit either the case of (1) a process that has created a file and unlinked (removed); and the process is still running [a common technique]; or (2) an over-mounted filesystem.&lt;BR /&gt;&lt;BR /&gt;Using 'lsof' or even a combination of 'fuser' (to find processes using '/var') and 'glance' to view open files by the processes using '/var', might prove fruitful for case-1.&lt;BR /&gt;&lt;BR /&gt;For case-2, run 'ncheck' and look for paths that should not appear beneath '/var':&lt;BR /&gt;&lt;BR /&gt;# ncheck -F vxfs /dev/vg00/lvol8&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 16 Jun 2006 08:34:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-full/m-p/3806996#M267666</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-16T08:34:25Z</dc:date>
    </item>
  </channel>
</rss>

