<?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 file system is full in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137458#M451679</link>
    <description>Hi Stephan Louw,&lt;BR /&gt;&lt;BR /&gt;Step1 :- Find some Large files under "var"&lt;BR /&gt;&lt;BR /&gt;find /var -xdev -type f -size +5000000c -exec ll {} \; | sort -nk 5&lt;BR /&gt;&lt;BR /&gt;step 2 :- How about any "undelivred or failed emails" in you sendmail services .?&lt;BR /&gt;&lt;BR /&gt;for this you need stop "Sendmail Service" clear those un-deleivred emails .. than monitor /var file system if still it grows.?&lt;BR /&gt;&lt;BR /&gt;step 3 :-&lt;BR /&gt;&lt;BR /&gt;to clean up /var/adm&lt;BR /&gt;=================&lt;BR /&gt;&lt;BR /&gt;#cleanup -c2&lt;BR /&gt;&lt;BR /&gt;it prompts you  ..Would you still like to commit these patches? y&lt;BR /&gt;&lt;BR /&gt;thus how you clean up .. the /var/adm..&lt;BR /&gt;&lt;BR /&gt;#/var/adm/syslog &lt;BR /&gt;try deleting some old.sys &lt;BR /&gt;&lt;BR /&gt;lof files which are very old&lt;BR /&gt;&lt;BR /&gt;hope this could give some ideas&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Johnson</description>
    <pubDate>Sun, 26 Oct 2008 01:56:02 GMT</pubDate>
    <dc:creator>Johnson Punniyalingam</dc:creator>
    <dc:date>2008-10-26T01:56:02Z</dc:date>
    <item>
      <title>/var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137455#M451676</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;I'm having a bit of problems an my production database server. the /var file system reports as full when running the 'bdf' command, but the 'du' command reports otherwise.&lt;BR /&gt;&lt;BR /&gt;I trimmed all possible log files, but the /var fs just keeps filling up as soon as I free up space. I am concerned that there might also be a "memory leak" somewhere, as 'glance' has been reporting memory utilization @ 99% for two weeks now. Additionally, I found some samx processes running which i cannot kill using  straight'kill PID'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please find the command output below:&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;# bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    1572864  541872 1023000   35% /&lt;BR /&gt;/dev/vg00/lvol1    1835008  261032 1561784   14% /stand&lt;BR /&gt;/dev/vg00/lvol8    8912896 8912896       0  100% /var&lt;BR /&gt;/dev/vg00/lvol7    10682368 2640160 7979440   25% /usr&lt;BR /&gt;/dev/vg00/lvol5    2097152 1018272 1070512   49% /tmp&lt;BR /&gt;/dev/vg00/lvol6    11599872 4597496 6947696   40% /opt&lt;BR /&gt;/dev/vg00/lvol4    1048576   18544 1022048    2% /home&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# du -sk /* |sort -n&lt;BR /&gt;0       /bin&lt;BR /&gt;0       /cdrom&lt;BR /&gt;0       /lib&lt;BR /&gt;0       /lost+found&lt;BR /&gt;0       /net&lt;BR /&gt;8       /AUTO&lt;BR /&gt;8       /history&lt;BR /&gt;1832    /home&lt;BR /&gt;150128  /etc&lt;BR /&gt;162224  /sbin&lt;BR /&gt;204928  /dev&lt;BR /&gt;244232  /stand&lt;BR /&gt;1001152 /tmp&lt;BR /&gt;1063128 /var     ---&amp;gt;  (1GB?)&lt;BR /&gt;2615520 /usr&lt;BR /&gt;6202938 /opt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# du -sk /var/* |sort -n&lt;BR /&gt;0       /var/X11&lt;BR /&gt;0       /var/empty&lt;BR /&gt;0       /var/home&lt;BR /&gt;0       /var/lost+found&lt;BR /&gt;0       /var/news&lt;BR /&gt;0       /var/uucp&lt;BR /&gt;8       /var/tombstones&lt;BR /&gt;16      /var/statmon&lt;BR /&gt;16      /var/tmp&lt;BR /&gt;24      /var/dt&lt;BR /&gt;40      /var/run&lt;BR /&gt;96      /var/yp&lt;BR /&gt;104     /var/preserve&lt;BR /&gt;112     /var/spool&lt;BR /&gt;544     /var/vx&lt;BR /&gt;1016    /var/sam&lt;BR /&gt;1440    /var/mail&lt;BR /&gt;21536   /var/stm&lt;BR /&gt;22448   /var/jail&lt;BR /&gt;147768  /var/opt&lt;BR /&gt;867952  /var/adm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;more /var/adm/syslog/syslog.log:&lt;BR /&gt;.......&lt;BR /&gt;Oct  1 15:01:21 BWMAINRX vmunix: vxfs: NOTICE: msgcnt 77 mesg 001: V-2-1: vx_nospace - /dev/vg00/lvol8 file system full&lt;BR /&gt;(1 block extent)&lt;BR /&gt;.......&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ps -ef | grep sam&lt;BR /&gt;    root  3803  3597  0 22:37:33 pts/4     0:00 grep sam&lt;BR /&gt;    root 20860 20857  0  Oct  1  ?         0:00 sh -c /usr/sam/lbin/samx -C -s monitorConfiguration /usr/lib/X11/Xserver/misc/sam/C/sam.ui&lt;BR /&gt;    root 20861 20860 255  Oct  1  ?        34822:44 /usr/sam/lbin/samx -C -s monitorConfiguration /usr/lib/X11/Xserver/misc/sam/C/sam.ui&lt;BR /&gt;    root 23489     1  0  Oct  1  ?         0:00 /usr/sbin/stm/uut/bin/tools/monitor/dm_memory_asama&lt;BR /&gt;    root 23630     1  0  Oct  1  ?         0:00 /usr/sbin/stm/uut/bin/tools/monitor/msamon&lt;BR /&gt;    root 23595     1  0  Oct  1  ?         0:00 /usr/sbin/stm/uut/bin/tools/monitor/ia64_corehw_asama&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to fix the problem without rebooting the Server&lt;BR /&gt;&lt;BR /&gt;- Will it help, and can I unmount /var and remount it while the Server is in Production?&lt;BR /&gt;&lt;BR /&gt;- How will I determine which process is filling up all my RAM (My Database Software is configured to use only 17GB at max - Total is 20GB)&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Oct 2008 20:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137455#M451676</guid>
      <dc:creator>Stephan Louw</dc:creator>
      <dc:date>2008-10-25T20:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137456#M451677</link>
      <description>Check with find for: &lt;BR /&gt; - larger files&lt;BR /&gt; - last modified files&lt;BR /&gt;&lt;BR /&gt;Check /var/adm/syslog/* for any large files and truncate/remove it.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Sat, 25 Oct 2008 20:26:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137456#M451677</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-10-25T20:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137457#M451678</link>
      <description>Hi Stephan:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The /var file system reports as full when running the 'bdf' command, but the 'du' command reports otherwise. I trimmed all possible log files, but the /var fs just keeps filling up as soon as I free up space.&lt;BR /&gt;&lt;BR /&gt;OK, there is probably a process with an open temporary file (see below):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I am concerned that there might also be a "memory leak" somewhere, as 'glance' has been reporting memory utilization @ 99% for two weeks now.&lt;BR /&gt;&lt;BR /&gt;That's another issue unto itself.  I doesn't take a memory leak, either, to consume all of your memory.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Additionally, I found some samx processes running which i cannot kill using straight 'kill PID'.&lt;BR /&gt;&lt;BR /&gt;That too isn't an issue.  A simple 'kill' can be trapped by a process.  It may take a particular signal (e.g. 'kill -HUP') to terminate the process.  If a 'kill -9' won't remove a process, then that process is probably waiting for an I/O or other kernel event.&lt;BR /&gt;&lt;BR /&gt;Try regaining some space by using 'cleanup -c 1' to remove rollback copies of superseded patches.&lt;BR /&gt;&lt;BR /&gt;# cleanup -c 1&lt;BR /&gt;&lt;BR /&gt;This is the principal safe way to regain space in '/var/adm/sw' and it can return significant amounts.&lt;BR /&gt;&lt;BR /&gt;If a process opens a file and immediately 'unlink's it (removes it), then you won't see any evidence of the file in a simple 'ls' listing.  The process can then write to the file for the extent of the processes life, consuming disk space as it goes.  This is actually a common technique.  When the last process using the file closes the file, all allocated disk blocks are returned to the system for reuse.  Using the 'lsof' utility available from the HP-UX Porting Center can help find files and processes if this is the case.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 25 Oct 2008 21:13:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137457#M451678</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-25T21:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137458#M451679</link>
      <description>Hi Stephan Louw,&lt;BR /&gt;&lt;BR /&gt;Step1 :- Find some Large files under "var"&lt;BR /&gt;&lt;BR /&gt;find /var -xdev -type f -size +5000000c -exec ll {} \; | sort -nk 5&lt;BR /&gt;&lt;BR /&gt;step 2 :- How about any "undelivred or failed emails" in you sendmail services .?&lt;BR /&gt;&lt;BR /&gt;for this you need stop "Sendmail Service" clear those un-deleivred emails .. than monitor /var file system if still it grows.?&lt;BR /&gt;&lt;BR /&gt;step 3 :-&lt;BR /&gt;&lt;BR /&gt;to clean up /var/adm&lt;BR /&gt;=================&lt;BR /&gt;&lt;BR /&gt;#cleanup -c2&lt;BR /&gt;&lt;BR /&gt;it prompts you  ..Would you still like to commit these patches? y&lt;BR /&gt;&lt;BR /&gt;thus how you clean up .. the /var/adm..&lt;BR /&gt;&lt;BR /&gt;#/var/adm/syslog &lt;BR /&gt;try deleting some old.sys &lt;BR /&gt;&lt;BR /&gt;lof files which are very old&lt;BR /&gt;&lt;BR /&gt;hope this could give some ideas&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Johnson</description>
      <pubDate>Sun, 26 Oct 2008 01:56:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137458#M451679</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-26T01:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137459#M451680</link>
      <description>Hi Stephen,&lt;BR /&gt;&lt;BR /&gt;check this two directories.&lt;BR /&gt;&lt;BR /&gt;147768 /var/opt&lt;BR /&gt;867952 /var/adm&lt;BR /&gt;&lt;BR /&gt;and check for any crash files inside and check for OVO logs inside /var/opt and clear them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;skr</description>
      <pubDate>Sun, 26 Oct 2008 06:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137459#M451680</guid>
      <dc:creator>Trng</dc:creator>
      <dc:date>2008-10-26T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137460#M451681</link>
      <description>&amp;gt; du -kx /var/* | sort -n&lt;BR /&gt; &lt;BR /&gt;You need to change your command to:&lt;BR /&gt;&lt;BR /&gt;du -kx /var | sort -rn | head -20&lt;BR /&gt; &lt;BR /&gt;The /var/* will only summarize each top level directory. You need to have du walk down through all the sub-directories. sort -rn will sort largest at the top of the list. heada -20 shows just the top 20.&lt;BR /&gt; &lt;BR /&gt;You first task is to go after /var/adm -- it is the logfile location. Start with:&lt;BR /&gt; &lt;BR /&gt;du -kx /var/adm | sort -rn | head -20&lt;BR /&gt; &lt;BR /&gt;Then if /var/adm is much larger than one below, there are very large logfiles in /var/adm. Find them with: &lt;BR /&gt; &lt;BR /&gt;ll | sort -rnk5 | head -20&lt;BR /&gt; &lt;BR /&gt;A very large logfile indicates two possibilities:&lt;BR /&gt; &lt;BR /&gt;1. The file has never been trimmed and represents years of logging;&lt;BR /&gt; &lt;BR /&gt;2. or a program has run wild and created a massive logfile.&lt;BR /&gt; &lt;BR /&gt;Look at the largest logfiles to see if something bad is happening. Then trim the logs you have looked through. If you are required to keep logs, always do this:&lt;BR /&gt; &lt;BR /&gt;gzip logfile &amp;gt; archive/logfile.20081026.gz&lt;BR /&gt;cat /dev/null &amp;gt; logfile&lt;BR /&gt; &lt;BR /&gt;This will make a compressed copy of the log along with today's date and zero the logfile.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; samx&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Oct 2008 07:22:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137460#M451681</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-10-26T07:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137461#M451682</link>
      <description>&amp;gt;reports as full when running the 'bdf' command, but the 'du' command reports otherwise.&lt;BR /&gt;&lt;BR /&gt;Obviously du(1) is lying to you, that's why you usually don't use/trust it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I am concerned that there might also be a "memory leak" somewhere, as 'glance' has been reporting memory utilization @ 99% for two weeks now.&lt;BR /&gt;&lt;BR /&gt;As JRF said, memory leaks don't cause excessive disk space growth, only swap growth.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I found some samx processes running which i cannot kill using straight 'kill PID'.&lt;BR /&gt;&lt;BR /&gt;If you aren't using sam and haven't had it up for 25 days, you should kill -9 those two processes.  You first might also want to find out who is PID 20857?  It seems to be doing "monitorConfiguration", something useful and long running?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;can I unmount /var and remount it while the Server is in Production?&lt;BR /&gt;&lt;BR /&gt;Of course not.  If you could unmount it, you won't have the problem.  I.e. you would have killed the runaway process.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How will I determine which process is filling up all my RAM (My Database Software is configured to use only 17GB at max - Total is 20GB)&lt;BR /&gt;&lt;BR /&gt;Filling up RAM is a good thing and most likely unrelated to your /var/ issue.  What are your disk cache kernel parms?  Also provide the "swapinfo -tam" output.&lt;BR /&gt;&lt;BR /&gt;So as JRF said, you need to use download lsof and find the process.</description>
      <pubDate>Sun, 26 Oct 2008 10:48:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137461#M451682</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-26T10:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137462#M451683</link>
      <description>Thx James&lt;BR /&gt;&lt;BR /&gt;your part on how processes use files was very informative.&lt;BR /&gt;&lt;BR /&gt;I managed to resolve the /var issue by taking the following actions:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- ran 'fuser -c /var' to determine what processes have files open in /var&lt;BR /&gt;&lt;BR /&gt;- I then used 'pf -ef' to check what the processes are (samx was the culprit!)&lt;BR /&gt;&lt;BR /&gt;- then I used 'kill -9 PID' to kill the two running samx processes&lt;BR /&gt;&lt;BR /&gt;- bdf then reported /var to be only 13% utilized&lt;BR /&gt;&lt;BR /&gt;Points assigned&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Oct 2008 11:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137462#M451683</guid>
      <dc:creator>Stephan Louw</dc:creator>
      <dc:date>2008-10-26T11:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: /var file system is full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137463#M451684</link>
      <description>thx all</description>
      <pubDate>Sun, 26 Oct 2008 11:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-file-system-is-full/m-p/5137463#M451684</guid>
      <dc:creator>Stephan Louw</dc:creator>
      <dc:date>2008-10-26T11:39:30Z</dc:date>
    </item>
  </channel>
</rss>

