<?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: ksh script error &amp;quot;no space&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226534#M686841</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;generally the shell MAY run out of space without any filesystem being full: Just try something like&lt;BR /&gt;variable=$(cat HUGEFILE) or simply&lt;BR /&gt;variable=$(&lt;HUGEFILE&gt;&lt;/HUGEFILE&gt;&lt;BR /&gt;If I counted correctly, line 18 () of your script is that:&lt;BR /&gt;CHECK=$(cat /tmp/monitor.out|grep OPEN |wc -l)&lt;BR /&gt;&lt;BR /&gt;I consider this as an overkill, an suggest to use&lt;BR /&gt;CHECK=$(grep -c OPEN /tmp/monitor.out)&lt;BR /&gt;instead. The assignment to CHECK2 can be made much simpler as well - read the XPG4 section of 'man ps'.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
    <pubDate>Wed, 02 Jul 2008 16:56:58 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2008-07-02T16:56:58Z</dc:date>
    <item>
      <title>ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226527#M686834</link>
      <description>Hi everybody,&lt;BR /&gt;&lt;BR /&gt;I have a cluster monitor script which runs every two minutes ( a while true loop with sleep 120 ).&lt;BR /&gt;&lt;BR /&gt;A couple of times, I said erratically, it exits with error. This happened always near 2 o'clock in the morning.&lt;BR /&gt;&lt;BR /&gt;In SG logfile I found the following lines:&lt;BR /&gt;/etc/cmcluster/syslog-db/db-monitor-script.sh[18]: no space&lt;BR /&gt;/etc/cmcluster/syslog-db/db-monitor-script.sh[18]: no space&lt;BR /&gt;/etc/cmcluster/syslog-db/db-monitor-script.sh[18]: no space&lt;BR /&gt;/etc/cmcluster/syslog-db/db-monitor-script.sh[20]: test: argument expected&lt;BR /&gt;/etc/cmcluster/syslog-db/db-monitor-script.sh[5]: no space&lt;BR /&gt;/etc/cmcluster/syslog-db/db-monitor-script.sh[8]: no space&lt;BR /&gt;&lt;BR /&gt;We work on HP-UX 11.23 ia64.&lt;BR /&gt;&lt;BR /&gt;What does this message mean?&lt;BR /&gt;&lt;BR /&gt;The full script is:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt; do&lt;BR /&gt;        sleep 120&lt;BR /&gt;        &amp;gt; /tmp/monitor.out&lt;BR /&gt;&lt;BR /&gt;        . /home/oracle/env_oracle10&lt;BR /&gt;        $ORACLE_HOME/bin/sqlplus /nolog &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;        connect / as sysdba&lt;BR /&gt;        set heading off;&lt;BR /&gt;        spool /tmp/monitor.out&lt;BR /&gt;        select status from V\$instance;&lt;BR /&gt;        spool off&lt;BR /&gt;        exit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;        CHECK=$(cat /tmp/monitor.out|grep OPEN |wc -l)&lt;BR /&gt;&lt;BR /&gt;        if [ $CHECK -ne 1 ]&lt;BR /&gt;         then&lt;BR /&gt;          exit 1&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        CHECK2=$(ps -ef |grep LISTENER10 |grep -v grep |wc -l)&lt;BR /&gt;&lt;BR /&gt;        if [ $CHECK2 -ne 1 ]&lt;BR /&gt;         then&lt;BR /&gt;          exit 1&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt; done&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Lorenzo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jul 2008 13:26:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226527#M686834</guid>
      <dc:creator>lorenzo bosisio</dc:creator>
      <dc:date>2008-07-02T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226528#M686835</link>
      <description>Hi Lorenzo:&lt;BR /&gt;&lt;BR /&gt;It appears that your '/tmp' filesystem is full (out of space) during the periods you see the error.&lt;BR /&gt;&lt;BR /&gt;In addition to your 'montor.out' file, HERE documents are files in '/tmp'.&lt;BR /&gt;&lt;BR /&gt;You should be able to see the filesystem space errors in '/var/adm/syslog/syslog.log'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Jul 2008 13:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226528#M686835</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-02T13:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226529#M686836</link>
      <description>Hey&lt;BR /&gt;&lt;BR /&gt;-Run the script in debug mode&lt;BR /&gt;#!/usr/bin/ksh -x&lt;BR /&gt;&lt;BR /&gt;-check whether /tmp is full&lt;BR /&gt;&lt;BR /&gt;-check whether the instance is running by grep the pmon process&lt;BR /&gt;&lt;BR /&gt;$(ps -ef | grep -v grep | grep -c ora_pmon_${ORACLE_SID})&lt;BR /&gt;&lt;BR /&gt;instead of count the lines with wc -l you can use grep -c&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 02 Jul 2008 13:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226529#M686836</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2008-07-02T13:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226530#M686837</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It happened just a couple of times and always at 2 o'clock in the morning.&lt;BR /&gt;&lt;BR /&gt;During daytime, /tmp is round 10% full.&lt;BR /&gt;&lt;BR /&gt;I supposed it has something to do with space on file system, but I cannot figure out what can full the /tmp.&lt;BR /&gt;In the /var/adm/syslog/syslog.log there NO entry regarding file system full.&lt;BR /&gt;&lt;BR /&gt;Any other suggestion?</description>
      <pubDate>Wed, 02 Jul 2008 13:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226530#M686837</guid>
      <dc:creator>lorenzo bosisio</dc:creator>
      <dc:date>2008-07-02T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226531#M686838</link>
      <description>&amp;gt;Any other suggestion?&lt;BR /&gt;&lt;BR /&gt;We told you, /tmp is full.  Fix that.  Also you can do "bdf /tmp" to see how full it is.&lt;BR /&gt;&lt;BR /&gt;In general you should be using /var/tmp/ instead.</description>
      <pubDate>Wed, 02 Jul 2008 14:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226531#M686838</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-02T14:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226532#M686839</link>
      <description>so monitor /tmp during the night with a simple script:&lt;BR /&gt;&lt;BR /&gt;while true ; do&lt;BR /&gt;if [ $(bdf | grep /tmp |awk '{sub(/%/,"",$5); print $5}') -gt 90 ] ; then&lt;BR /&gt;date &amp;gt;&amp;gt; output.log&lt;BR /&gt;bdf | grep /tmp &amp;gt;&amp;gt; output.log&lt;BR /&gt;ll /tmp &amp;gt;&amp;gt; output.log&lt;BR /&gt;fi&lt;BR /&gt;sleep 300&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;but output.log should not be in /tmp ;)&lt;BR /&gt;you can start the script with rman for example at 00:00</description>
      <pubDate>Wed, 02 Jul 2008 14:32:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226532#M686839</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2008-07-02T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226533#M686840</link>
      <description>Hi Lorenzo:&lt;BR /&gt;&lt;BR /&gt;Don't be fooled if you don't find "visable" files in the filesystem.  It is a common paradigm to create a temporary file and immmediately unlink (remove) it.  This means that you won't see the file in an 'ls' listing but the space will be taken until the last process using the file terminates and the file's link count drops to zero.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Jul 2008 14:33:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226533#M686840</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-02T14:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: ksh script error "no space"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226534#M686841</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;generally the shell MAY run out of space without any filesystem being full: Just try something like&lt;BR /&gt;variable=$(cat HUGEFILE) or simply&lt;BR /&gt;variable=$(&lt;HUGEFILE&gt;&lt;/HUGEFILE&gt;&lt;BR /&gt;If I counted correctly, line 18 () of your script is that:&lt;BR /&gt;CHECK=$(cat /tmp/monitor.out|grep OPEN |wc -l)&lt;BR /&gt;&lt;BR /&gt;I consider this as an overkill, an suggest to use&lt;BR /&gt;CHECK=$(grep -c OPEN /tmp/monitor.out)&lt;BR /&gt;instead. The assignment to CHECK2 can be made much simpler as well - read the XPG4 section of 'man ps'.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jul 2008 16:56:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-script-error-quot-no-space-quot/m-p/4226534#M686841</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-07-02T16:56:58Z</dc:date>
    </item>
  </channel>
</rss>

