<?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 Fill up in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408575#M860738</link>
    <description>Have you thought of putting /var/log in its own logical volume so it doesn't affect /var?&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
    <pubDate>Wed, 27 Oct 2004 02:02:28 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2004-10-27T02:02:28Z</dc:date>
    <item>
      <title>Disk Fill up</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408573#M860736</link>
      <description>A disk fills up regularly on my system. When the disk is full a necessary process called file4 dies.The disk that fills up it /var.I need a shell script that checks the disk to see if it's full, if it is, it prunes the logfiles causing the problem in /var/log/logfile and also checks to see if the file4 process is running and if it isn't  restarts it by executing /etc/init.d/file4 start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Oct 2004 21:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408573#M860736</guid>
      <dc:creator>James I</dc:creator>
      <dc:date>2004-10-26T21:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Fill up</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408574#M860737</link>
      <description>bdf  | awk '{ if ($5 ~ /[8-9][0-9]/ || $5 ~ /[1][0-5][0-9]/) print }' &amp;gt;&amp;gt; $drep&lt;BR /&gt;&lt;BR /&gt;rep=$(cat $drep | wc -l)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ $rep -ge 1 ]  &lt;BR /&gt;  mess=$(bdf /var | grep var | awk '{print $5}')&lt;BR /&gt;  echo $mess&lt;BR /&gt;  /usr/contrib/bin/trimlogs&lt;BR /&gt;else&lt;BR /&gt;   echo no problems&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;###&lt;BR /&gt;trimlogs&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;while read -r rfile&lt;BR /&gt;do&lt;BR /&gt;  &amp;gt; $rfile&lt;BR /&gt;done &amp;lt; /var/filelist&lt;BR /&gt;&lt;BR /&gt;/var/filelist is a list of log files with full path of files that you want to trim in an emergency.&lt;BR /&gt;&lt;BR /&gt;I suggest you look in /var and build the list&lt;BR /&gt;&lt;BR /&gt;Here are some suggestions&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog/syslog.log&lt;BR /&gt;/var/mail/root &lt;BR /&gt;&lt;BR /&gt;Take a look at sam routine tasks trim log files for more suggestions.&lt;BR /&gt;&lt;BR /&gt;be careful, once this data is gone its done. No recycle bin.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 26 Oct 2004 23:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408574#M860737</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-26T23:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Fill up</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408575#M860738</link>
      <description>Have you thought of putting /var/log in its own logical volume so it doesn't affect /var?&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Wed, 27 Oct 2004 02:02:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408575#M860738</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2004-10-27T02:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Fill up</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408576#M860739</link>
      <description>The solutions posted to me have not answered the question satisfactorily.I mean the script should be able to run on bash.</description>
      <pubDate>Wed, 27 Oct 2004 09:46:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-fill-up/m-p/3408576#M860739</guid>
      <dc:creator>James I</dc:creator>
      <dc:date>2004-10-27T09:46:26Z</dc:date>
    </item>
  </channel>
</rss>

