<?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: Cleaning /var in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317631#M340324</link>
    <description>mostly you can see the /var/adm/syslog folder&lt;BR /&gt;&lt;BR /&gt;trim or backup the existing OLDsyslog.log file and restart the syslog daemon. it will move to OLDsyslog.log and syslog.log file would be starting from scratch.&lt;BR /&gt;&lt;BR /&gt;and also you can trim any other log in that folder.&lt;BR /&gt;&lt;BR /&gt;but before that you can take a backup or zip that particular file.</description>
    <pubDate>Thu, 04 Dec 2008 06:35:01 GMT</pubDate>
    <dc:creator>Jeeshan</dc:creator>
    <dc:date>2008-12-04T06:35:01Z</dc:date>
    <item>
      <title>Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317628#M340321</link>
      <description>Hey guys in /var what are the logs here that can be trimmed/trancute or delete without making anyone angry and what are the logs that should not be touched?</description>
      <pubDate>Thu, 04 Dec 2008 05:43:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317628#M340321</guid>
      <dc:creator>C_V</dc:creator>
      <dc:date>2008-12-04T05:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317629#M340322</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;use cleanup utility to trim /var/adm/save patches. It good to start with option 1 as it will allow u to rollback any patches.&lt;BR /&gt;&lt;BR /&gt;# cleanup -c 1&lt;BR /&gt;&lt;BR /&gt;Other than that, try the conventional way,&lt;BR /&gt;&lt;BR /&gt;# du -sk /var/*&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;&lt;BR /&gt;ps: really appreciate if u could assign some points.</description>
      <pubDate>Thu, 04 Dec 2008 06:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317629#M340322</guid>
      <dc:creator>Khairy</dc:creator>
      <dc:date>2008-12-04T06:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317630#M340323</link>
      <description>you could also look for old core files in /var. You could safely remove this.&lt;BR /&gt;&lt;BR /&gt;do the following to look for large files in /var&lt;BR /&gt;&lt;BR /&gt;# find /var -size 100000c -print&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2008 06:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317630#M340323</guid>
      <dc:creator>Khairy</dc:creator>
      <dc:date>2008-12-04T06:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317631#M340324</link>
      <description>mostly you can see the /var/adm/syslog folder&lt;BR /&gt;&lt;BR /&gt;trim or backup the existing OLDsyslog.log file and restart the syslog daemon. it will move to OLDsyslog.log and syslog.log file would be starting from scratch.&lt;BR /&gt;&lt;BR /&gt;and also you can trim any other log in that folder.&lt;BR /&gt;&lt;BR /&gt;but before that you can take a backup or zip that particular file.</description>
      <pubDate>Thu, 04 Dec 2008 06:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317631#M340324</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2008-12-04T06:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317632#M340325</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use this commands to find the 1MB file  /var &lt;BR /&gt;find /var -size +1000000c -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;You can check for /var/adm/crash and remove the crash file if generated&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Dec 2008 06:26:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317632#M340325</guid>
      <dc:creator>Niceguy_2</dc:creator>
      <dc:date>2008-12-05T06:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317633#M340326</link>
      <description>Tnx guys, how about the /var/spool what is use of this directory, does it contain critical files.</description>
      <pubDate>Sun, 07 Dec 2008 11:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317633#M340326</guid>
      <dc:creator>C_V</dc:creator>
      <dc:date>2008-12-07T11:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317634#M340327</link>
      <description>&amp;gt;how about the /var/spool what is use of this directory, does it contain critical files?&lt;BR /&gt;&lt;BR /&gt;It contains at &amp;amp; cronjobs and undelivered mail.</description>
      <pubDate>Sun, 07 Dec 2008 11:47:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317634#M340327</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-07T11:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317635#M340328</link>
      <description>&amp;gt;&amp;gt;how about the /var/spool what is use of this directory, does it contain critical files.&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;/var/spool&lt;BR /&gt;This directory contains temporary spool files used in printer spooling, mail delivery, cron(1M), and other commands.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;does it contain critical files.&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;YES.&lt;BR /&gt;&lt;BR /&gt;could also please let us know are going to cleanup some files under /var/spool ..?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Dec 2008 17:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317635#M340328</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-12-07T17:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317636#M340329</link>
      <description>For any directory, the starting point is to look for the largest directories first:&lt;BR /&gt; &lt;BR /&gt;du -kx /var | sort -rn | head&lt;BR /&gt; &lt;BR /&gt;Then look at the largest directories. Large files may not be the problem...there may be hundreds of small files that can be removed.&lt;BR /&gt; &lt;BR /&gt;As far as making anyone angry, the /var directory is like any other directory. A normal user cannot create any files in most of /var except /var/tmp. That is a directory that users must treat as temporary, but I would contact users with large files in /var/tmp before removing them. Let them know the rules such as: all files in /var/tmp older than 7 days will be automatically removed (or something similar). /tmp is the other directory that needs similar monitoring.</description>
      <pubDate>Mon, 08 Dec 2008 02:46:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317636#M340329</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-12-08T02:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317637#M340330</link>
      <description>first of all do a bdf and check if /vad/adm/sw is different file system.&lt;BR /&gt;&lt;BR /&gt;#bdf|grep var&lt;BR /&gt;&lt;BR /&gt;before running cleanup -c 1 &lt;BR /&gt;take ignite because u wont be able to recover the system after that.&lt;BR /&gt;&lt;BR /&gt;and do &lt;BR /&gt;#du -sk *|sort -n and check the directoreis.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Kapil+</description>
      <pubDate>Mon, 08 Dec 2008 04:58:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317637#M340330</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2008-12-08T04:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317638#M340331</link>
      <description>Does the box host an application that is logging in to /var? I quite often have problems with app teams filling up file systems especially on the development boxes.</description>
      <pubDate>Mon, 08 Dec 2008 05:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317638#M340331</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2008-12-08T05:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317639#M340332</link>
      <description>Hi&lt;BR /&gt;Normally /var also get filled with wtpm* files.&lt;BR /&gt;&lt;BR /&gt;You also trin thse files.&lt;BR /&gt;&lt;BR /&gt;Sagar</description>
      <pubDate>Mon, 08 Dec 2008 12:26:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317639#M340332</guid>
      <dc:creator>Sagar Sirdesai</dc:creator>
      <dc:date>2008-12-08T12:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317640#M340333</link>
      <description>So guys eventually the contents of /var/spool files will be automatically removed once the printing has been done or the mail has been sent?</description>
      <pubDate>Thu, 11 Dec 2008 07:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317640#M340333</guid>
      <dc:creator>C_V</dc:creator>
      <dc:date>2008-12-11T07:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317641#M340334</link>
      <description>&amp;gt;eventually the contents of /var/spool files will be automatically removed once the printing has been done or the mail has been sent?&lt;BR /&gt;&lt;BR /&gt;The keyword is eventually.  If mail can't be sent, the mail may just sit there.</description>
      <pubDate>Thu, 11 Dec 2008 07:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317641#M340334</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-11T07:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317642#M340335</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Under /var you can trim all log files.&lt;BR /&gt;wtmp&lt;BR /&gt;btmp&lt;BR /&gt;&lt;BR /&gt;just give &amp;gt; and filename it will trim the file ex:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;wtmp or &amp;gt;btmp&lt;BR /&gt;&lt;BR /&gt;or you can find big file under /var&lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;find /var -size +100000 -print &lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2008 08:35:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cleaning-var/m-p/4317642#M340335</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2008-12-11T08:35:18Z</dc:date>
    </item>
  </channel>
</rss>

