<?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 getting full in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643586#M239571</link>
    <description>Also look at /var/adm/crash and make sure you don't have lots of directories such as crash.1 crash.2 etc in there.</description>
    <pubDate>Fri, 07 Oct 2005 09:30:33 GMT</pubDate>
    <dc:creator>Stephen Keane</dc:creator>
    <dc:date>2005-10-07T09:30:33Z</dc:date>
    <item>
      <title>/var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643576#M239561</link>
      <description>I need to free space on this file system. What files should I take off.&lt;BR /&gt;drwxr-xr-x  12 adm        adm           1024 Oct  6 19:07 adm&lt;BR /&gt;drwxr-xr-x   4 root       sys           1024 Apr 14 19:20 dt&lt;BR /&gt;-rw-------   1 root       sys            376 Jul  9  2004 history&lt;BR /&gt;drwxrwxrwt   2 bin        bin             96 May  8  2003 home&lt;BR /&gt;drwxr-xr-x   2 root       root            96 Sep 23  1999 lost+found&lt;BR /&gt;drwxrwxr-x   2 bin        mail          9216 Oct  6 20:30 mail&lt;BR /&gt;drwxrwxrwx   2 bin        bin             96 Sep 23  1999 news&lt;BR /&gt;dr-xr-xr-x  15 bin        bin           1024 May  8  2003 opt&lt;BR /&gt;drwxrwxrwx   2 bin        bin           7168 Oct  6 19:07 preserve&lt;BR /&gt;drwxrwxrwx   2 bin        bin           8192 Jun  1 15:42 rbootd&lt;BR /&gt;drwxrwxrwx   3 root       sys             96 Sep 19  2002 requests&lt;BR /&gt;dr-xr-xr-x   2 bin        bin           1024 Oct  6 19:07 run&lt;BR /&gt;dr-xr-xr-x  12 bin        bin           2048 Oct  6 19:10 sam&lt;BR /&gt;dr-xr-xr-x  15 bin        bin           1024 Sep 19 17:51 spool&lt;BR /&gt;drwxr-xr-x   6 root       sys             96 Aug  6  2000 statmon&lt;BR /&gt;drwxr-xr-x   5 root       other           96 May  8  2003 stm&lt;BR /&gt;drwxrwxrwx  21 bin        bin          13312 Oct  6 20:30 tmp&lt;BR /&gt;drwxr-xr-x   2 root       root          2048 Oct  6 19:07 tombstones&lt;BR /&gt;dr-xr-xr-x   6 bin        bin             96 Sep 28  1999 uucp</description>
      <pubDate>Thu, 06 Oct 2005 13:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643576#M239561</guid>
      <dc:creator>machaya chivaviro_2</dc:creator>
      <dc:date>2005-10-06T13:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643577#M239562</link>
      <description>Well, this listing really doesn't tell us much.&lt;BR /&gt;&lt;BR /&gt;Things to check in /var:&lt;BR /&gt;&lt;BR /&gt;size of /var/adm/syslog/syslog.log?&lt;BR /&gt;size of /var/adm/syslog/mail.log?&lt;BR /&gt;Any crashdumps in /var/adm/crash?&lt;BR /&gt;Any large files in /var/tmp?&lt;BR /&gt;Can you committ superceded patches? (man cleanup for more info.)&lt;BR /&gt;&lt;BR /&gt;Try this to get a listing of the largest dirs in /var:&lt;BR /&gt;&lt;BR /&gt;# cd /var&lt;BR /&gt;du -ks * | sort -n</description>
      <pubDate>Thu, 06 Oct 2005 13:37:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643577#M239562</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-10-06T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643578#M239563</link>
      <description>The only place you can safely delete from is /var/tmp.  Others require careful consideration.  Use SAM &amp;gt; Routine Tasks to trim logs.  Run the cleanup command to commit superceded patches (man cleanup for details).  And what is in /var/home?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 06 Oct 2005 13:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643578#M239563</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-10-06T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643579#M239564</link>
      <description>Start by looking to see what is the biggest offender&lt;BR /&gt;&lt;BR /&gt;cd /var&lt;BR /&gt;du . -ka | sort -nr | more&lt;BR /&gt;&lt;BR /&gt;This will provide a list of files from biggest in size to smallest. &lt;BR /&gt;&lt;BR /&gt;Look at the /var/adm/syslog directory. Big syslog.log and/or mail.log? (Do not remove these files. Copy them elsewhere and the 'cat /dev/null &amp;gt; syslog.log')&lt;BR /&gt;&lt;BR /&gt;Can you do the 'cleanup' command on committed patches?&lt;BR /&gt;&lt;BR /&gt;Do you have crash dump files residing on the /var partition? If so you might want to remove these.&lt;BR /&gt;&lt;BR /&gt;/var/tmp could be a possible candidate for file truncating/removal.&lt;BR /&gt;&lt;BR /&gt;Is the mail running on this system? What is output of 'mailq' command? If lots you may want to look at /var/mail.&lt;BR /&gt;&lt;BR /&gt;Don't forget some of these directories could be separate filesystems. What is the bdf output?&lt;BR /&gt;&lt;BR /&gt;What you have listed above are mostly directories. Need to look into these directories and see what is present.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643579#M239564</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-10-06T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643580#M239565</link>
      <description>Sorry, command should be 'du . -ks | sort -nr | more'&lt;BR /&gt;&lt;BR /&gt;I have 'du -ka ...'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643580#M239565</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-10-06T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643581#M239566</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Rather than directories see the contents which are occupying more space within these directories. You can not remove any f these directories.&lt;BR /&gt;&lt;BR /&gt;This can be done by&lt;BR /&gt;&lt;BR /&gt;#pwd&lt;BR /&gt;/var&lt;BR /&gt;#du |sort -rnk 1 |head -20&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 06 Oct 2005 13:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643581#M239566</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-10-06T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643582#M239567</link>
      <description>Typically on most systems, committing patches usually will free up the most disk space.  USe:&lt;BR /&gt;&lt;BR /&gt;cleanup -c 1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2005 13:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643582#M239567</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2005-10-06T13:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643583#M239568</link>
      <description>&lt;BR /&gt;/var, by the nature of the files written to it will continously grow unless you monitor it and periodically perform file maintenance.  All of your log files go there and most do not have an upper limit i.e. syslog, mail.log wtmp, etc.  You cannot simply delete/recreate these files since the system does have them open.  you need to do a command such cat /dev/null &amp;gt; /var/adm/syslog to zero out the file (after backing it up)&lt;BR /&gt;&lt;BR /&gt;The software/OS patches are stored there as well.  As others has recommended, cleanup -c 1 will remove old superceded patches from the directory.  Do not remove them manually s that will cause problems with future patch installs.&lt;BR /&gt;&lt;BR /&gt;/var/tmp is just that a temporary storage area - it should be cleaned up periodically.&lt;BR /&gt;&lt;BR /&gt;Finally /var/spool has the potential for using a lot space - unsent mail messages and prints are queued up there.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2005 14:33:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643583#M239568</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-10-06T14:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643584#M239569</link>
      <description>Hi Machaya,&lt;BR /&gt;&lt;BR /&gt;1.You can try checking the biggest files on /var first :&lt;BR /&gt;&lt;BR /&gt;# cd /var&lt;BR /&gt;# ls -lR | sort +4 -5nr | more&lt;BR /&gt;&lt;BR /&gt;2. Also  check the usual files that grows :&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog/mail.log&lt;BR /&gt;/var/adm/syslog/OLDsyslog.log&lt;BR /&gt;/var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;You can nullyfy the mail.log and wtmp&lt;BR /&gt;&lt;BR /&gt;#cat /dev/null &amp;gt; mail.log&lt;BR /&gt;or&lt;BR /&gt;# &amp;gt;mail.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Oct 2005 15:24:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643584#M239569</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-10-06T15:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643585#M239570</link>
      <description>/var/adm/sw is another place to check for space. Do a cleanup -p to preview how much space is used by old patches. Then do a cleanup -c 1 to committ old patches which are already superseeded by atleast 1 new patch. This way /var filesystem will be reduced.</description>
      <pubDate>Thu, 06 Oct 2005 15:27:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643585#M239570</guid>
      <dc:creator>Vincente Fernandes</dc:creator>
      <dc:date>2005-10-06T15:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643586#M239571</link>
      <description>Also look at /var/adm/crash and make sure you don't have lots of directories such as crash.1 crash.2 etc in there.</description>
      <pubDate>Fri, 07 Oct 2005 09:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643586#M239571</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-10-07T09:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643587#M239572</link>
      <description>A bit off topic but you should set /var/preserve to 1777 for security reasons. &lt;BR /&gt;&lt;BR /&gt;If you're running sar, /var/adm/sa can certainly take up alot of space. &lt;BR /&gt;&lt;BR /&gt;If large print jobs go through the host. &lt;BR /&gt;you might want to check /var/spool &lt;BR /&gt;&lt;BR /&gt;du -sk * | sort &lt;BR /&gt;&lt;BR /&gt;will give you a good idea where to look. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2005 11:44:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643587#M239572</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2005-10-07T11:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643588#M239573</link>
      <description>/var/tmp should be 1777 also for security reasons.</description>
      <pubDate>Fri, 07 Oct 2005 11:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643588#M239573</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2005-10-07T11:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643589#M239574</link>
      <description>du . -ks | sort -nr | more&lt;BR /&gt;gave me the following result&lt;BR /&gt;881282  .&lt;BR /&gt;464860  ./preserve&lt;BR /&gt;172382  ./adm&lt;BR /&gt;120878  ./stm&lt;BR /&gt;99994   ./stm/logs&lt;BR /&gt;98498   ./stm/logs/os&lt;BR /&gt;57364   ./opt&lt;BR /&gt;45942   ./opt/ignite&lt;BR /&gt;36210   ./opt/ignite/recovery&lt;BR /&gt;34050   ./sam&lt;BR /&gt;33672   ./sam/log&lt;BR /&gt;19794   ./spool&lt;BR /&gt;17678   ./opt/ignite/recovery/2003-05-10,05:59&lt;BR /&gt;15606   ./opt/ignite/recovery/2003-05-08,19:15&lt;BR /&gt;13860   ./stm/data&lt;BR /&gt;13078   ./stm/data/tools&lt;BR /&gt;13062   ./stm/data/tools/verify&lt;BR /&gt;13060   ./spool/lp&lt;BR /&gt;12278   ./spool/lp/request&lt;BR /&gt;9156    ./opt/ignite/logs&lt;BR /&gt;8028    ./mail&lt;BR /&gt;7024    ./stm/config&lt;BR /&gt;6998    ./stm/config/tools</description>
      <pubDate>Mon, 10 Oct 2005 01:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643589#M239574</guid>
      <dc:creator>machaya chivaviro_2</dc:creator>
      <dc:date>2005-10-10T01:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643590#M239575</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can trim down the system log files at /var file system with SAM :&lt;BR /&gt;&lt;BR /&gt;SAM &amp;gt; routine tasks &amp;gt; system log files&lt;BR /&gt;&lt;BR /&gt;From your info, these file can remove also (since from year 2003, it's Ignite/UX backup archive) :&lt;BR /&gt;&lt;BR /&gt;17678 ./opt/ignite/recovery/2003-05-10,05:59&lt;BR /&gt;15606 ./opt/ignite/recovery/2003-05-08,19:15&lt;BR /&gt;&lt;BR /&gt;For safety reason, please do backup before you remove any file from your system.&lt;BR /&gt;&lt;BR /&gt;Hope this information can help you.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;AW&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Oct 2005 01:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643590#M239575</guid>
      <dc:creator>Adisuria Wangsadinata_1</dc:creator>
      <dc:date>2005-10-10T01:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643591#M239576</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are there plenty of superceding patches. These can be removed from /var directory using &lt;BR /&gt;&lt;BR /&gt;#cleanup -c 2&lt;BR /&gt;&lt;BR /&gt;Man cleanup for details.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Mon, 10 Oct 2005 01:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643591#M239576</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-10-10T01:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643592#M239577</link>
      <description>What do you have in /var/preserve ? Have you edited a very large file recently and crashed the editor? /var/preserve should mostly be empty.</description>
      <pubDate>Mon, 10 Oct 2005 03:04:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643592#M239577</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-10-10T03:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643593#M239578</link>
      <description>check the size of /var/adm/wtmp file,if its big,then tail it to a new file,&lt;BR /&gt;#cd /var/adm&lt;BR /&gt;#tail wtmp &amp;gt;wtmp.new&lt;BR /&gt;#cp wtmp.new wtmp&lt;BR /&gt;Otherwise search for  other big files:&lt;BR /&gt;#find /var -xdev -size +10000 -exec ll {} \;</description>
      <pubDate>Mon, 10 Oct 2005 04:45:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643593#M239578</guid>
      <dc:creator>radi_1</dc:creator>
      <dc:date>2005-10-10T04:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643594#M239579</link>
      <description>/var/preserve has more files. like &lt;BR /&gt;Exaao00482. Can I delete these what are they for.</description>
      <pubDate>Tue, 11 Oct 2005 12:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643594#M239579</guid>
      <dc:creator>machaya chivaviro_2</dc:creator>
      <dc:date>2005-10-11T12:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: /var getting full</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643595#M239580</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes these files can be deleted.These are files saved by vi editor perhaps when it crashes or the session having opened that vi session exists abnormally.&lt;BR /&gt;&lt;BR /&gt;The files with old timestamps can be removed easily and the files with recent ones can be moved to some other  locations.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Tue, 11 Oct 2005 12:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/var-getting-full/m-p/3643595#M239580</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-10-11T12:42:25Z</dc:date>
    </item>
  </channel>
</rss>

