<?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: Getting error using dmesg in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715364#M61701</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This message indicates that /tmp was full&lt;BR /&gt;at some stage after the last reboot. The&lt;BR /&gt;best place to check is in the &lt;BR /&gt;/var/adm/syslog.syslog.log file to see &lt;BR /&gt;when. Given that you bdf output no longer &lt;BR /&gt;shows the filesystem as being full indicates&lt;BR /&gt;that the process or processes that filled&lt;BR /&gt;the filesystem have terminated. &lt;BR /&gt;&lt;BR /&gt;One good thing is you can have a look in &lt;BR /&gt;your log file (name as above) to see&lt;BR /&gt;whether this is a one-off occurance. If&lt;BR /&gt;it is not, this is a good indicator that&lt;BR /&gt;you may need to either increase or point&lt;BR /&gt;your working files to a different filesystem.&lt;BR /&gt;Generally some of these come from the &lt;BR /&gt;application being used.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
    <pubDate>Thu, 02 May 2002 00:44:49 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2002-05-02T00:44:49Z</dc:date>
    <item>
      <title>Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715362#M61699</link>
      <description>Hi All friends,&lt;BR /&gt;     Whenever I use dmesg, I get the following output.  Please help.  &lt;BR /&gt;  vxfs: mesg 001: vx_nospace - /dev/vg00/lvol5 file system full (1 block extent)&lt;BR /&gt;&lt;BR /&gt;vxfs: mesg 001: vx_nospace - /dev/vg00/lvol5 file system full (1 block extent)&lt;BR /&gt;&lt;BR /&gt;vxfs: mesg 001: vx_nospace - /dev/vg00/lvol5 file system full (1 block extent)&lt;BR /&gt;&lt;BR /&gt;But when I do bdf , the following is the output&lt;BR /&gt;&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3     212992   62613  141021   31% /&lt;BR /&gt;/dev/vg00/lvol1     207381   27272  159370   15% /stand&lt;BR /&gt;/dev/vg01/lvol11   2097152 1020284 1009615   50% /vendor&lt;BR /&gt;/dev/vg00/lvol7    1048576  842086  194630   81% /var&lt;BR /&gt;/dev/vg00/lvol6    1048576  673305  351838   66% /usr&lt;BR /&gt;/dev/vg01/lvol15    102400   44740   54118   45% /user_files&lt;BR /&gt;/dev/vg01/lvol14   4194304 3724242  441056   89% /u01/app/oracle&lt;BR /&gt;/dev/vg01/lvol12    524288   14251  478194    3% /u01/app/home&lt;BR /&gt;/dev/vg01/lvol13   1470464 1107992  344713   76% /u01/app/asms&lt;BR /&gt;/dev/vg00/lvol5    1576960   31310 1453738    2% /tmp&lt;BR /&gt;/dev/vg00/lvol4     524288  458009   62179   88% /opt&lt;BR /&gt;/dev/dsk/c3t2d0     584580  584580       0  100% /SD_CDROM</description>
      <pubDate>Thu, 02 May 2002 00:32:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715362#M61699</guid>
      <dc:creator>Sushil Singh_1</dc:creator>
      <dc:date>2002-05-02T00:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715363#M61700</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The dmesg buffer is not 'real time' as is the bdf command. At some earlier time, /tmp was filling up and what you are seeing is an artifact of that event. The process that was writing the large files probably died and as soon as that happened the filesystem space was returned. Those messages will stay in the circular dmesg buffer until the contents are overwritten with new syslog messages.</description>
      <pubDate>Thu, 02 May 2002 00:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715363#M61700</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-02T00:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715364#M61701</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This message indicates that /tmp was full&lt;BR /&gt;at some stage after the last reboot. The&lt;BR /&gt;best place to check is in the &lt;BR /&gt;/var/adm/syslog.syslog.log file to see &lt;BR /&gt;when. Given that you bdf output no longer &lt;BR /&gt;shows the filesystem as being full indicates&lt;BR /&gt;that the process or processes that filled&lt;BR /&gt;the filesystem have terminated. &lt;BR /&gt;&lt;BR /&gt;One good thing is you can have a look in &lt;BR /&gt;your log file (name as above) to see&lt;BR /&gt;whether this is a one-off occurance. If&lt;BR /&gt;it is not, this is a good indicator that&lt;BR /&gt;you may need to either increase or point&lt;BR /&gt;your working files to a different filesystem.&lt;BR /&gt;Generally some of these come from the &lt;BR /&gt;application being used.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Thu, 02 May 2002 00:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715364#M61701</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-05-02T00:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715365#M61702</link>
      <description>Thanks Mr Stephenson,&lt;BR /&gt;        That make more sense.  Is there any way I can reset the buffer instead of rebooting this machine.  Some time I get this error on production machine and its very hard for us to reboot that machine.  Also is there any way to find out the culprit which is causing the dmesg buffer to be filled.&lt;BR /&gt;&lt;BR /&gt;  Thanks&lt;BR /&gt; Sushil Singh</description>
      <pubDate>Thu, 02 May 2002 00:45:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715365#M61702</guid>
      <dc:creator>Sushil Singh_1</dc:creator>
      <dc:date>2002-05-02T00:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715366#M61703</link>
      <description>From the man page of 'dmesg'&lt;BR /&gt;&lt;BR /&gt;dmesg looks in a system buffer for recently printed diagnostic messages and prints them on the standard output.  The messages are those printed by the system when unusual events occur (such as when system tables overflow or the system crashes). If the - argument is&lt;BR /&gt;specified, dmesg computes (incrementally) the new messages since the last time it was run and places these on the standard output.  This is typically used with cron (see cron(1)) to produce the error log /var/adm/messages by running the command:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/dmesg - &amp;gt;&amp;gt; /var/adm/messages&lt;BR /&gt;every 10 minutes.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;~Michael~</description>
      <pubDate>Thu, 02 May 2002 00:53:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715366#M61703</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-05-02T00:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715367#M61704</link>
      <description>The dmesg buffer is intended to be filled; it just wraps around when the end of buffer is reached. There is no need to 'clear' it and it's rather pointless when machines should stay up for months on end. It's intentionally a fairly small buffer. You should really look in the syslogs for more data. Look in the /var/adm/syslog directory. The file syslog.log will probably give you more data. The best tool to find out what is filling /tmp is 'lsof' which is available for free download from any of the HP-UX Porting Centre's.</description>
      <pubDate>Thu, 02 May 2002 00:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715367#M61704</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-02T00:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715368#M61705</link>
      <description>There are two things to accomplish. First, log all dmesg lines to a file with a timestamp. An example for a cron job entry is found in /usr/newconfig/var/spool/cron/crontab.root which reads (in part):&lt;BR /&gt;&lt;BR /&gt;# log kernel diagnostic messages every 10 minutes&lt;BR /&gt;05,15,25,35,45,55 * * * * /usr/sbin/dmesg - &amp;gt;&amp;gt;/var/adm/messages&lt;BR /&gt;&lt;BR /&gt;I don't agree with the suggested name for this file (messages) so I would recommend changing it to:&lt;BR /&gt;&lt;BR /&gt;# log kernel diagnostic messages every 10 minutes&lt;BR /&gt;05,15,25,35,45,55 * * * * /usr/sbin/dmesg - &amp;gt;&amp;gt;/var/adm/dmesg.log&lt;BR /&gt;&lt;BR /&gt;Add this to your root cronjobs (you should many to trim logs, watch for disk space problems, run backups, etc).  Now, when you want to see what dmesg is reporting, use the command:&lt;BR /&gt;&lt;BR /&gt;tail -50  /var/adm/dmesg.log&lt;BR /&gt;&lt;BR /&gt;dmesg is a program that reads an in-core buffer of console messages and as such, it cannot be cleared.  Once the buffere is full, old messages are dropped off and new ones are added at the bottom.&lt;BR /&gt;&lt;BR /&gt;As as the reason for /tmp becoming full, this will take some work.  /tmp is (and must always be) open to every user on the system. Less experienced Unix users and sysadmins will store all sorts of junk files in /tmp and then forget to remove them.&lt;BR /&gt;&lt;BR /&gt;The correct directory is /var/tmp but since scripts and programs misuse the /tmp directory, you'll have to run a cronjob to clean out old files automatically. The also applies to /var/tmp.  A good rule of thumb is to remove any file and directory in temp directories that is more than a week old. And for real problems, very large files (more than 3 to 5 megs) should be removed after 3 days.&lt;BR /&gt;&lt;BR /&gt;To see how your /tmp area is being used, use the command:&lt;BR /&gt;&lt;BR /&gt;du -kx /tmp | sort -rn | more&lt;BR /&gt;&lt;BR /&gt;The largest directory (below /tmp) will be shown. If this is not very big (3 digits or less) then /tmp may have one or more large files. To see the files sorted by size, use the command:&lt;BR /&gt;&lt;BR /&gt;ls -l | sort -rnk5&lt;BR /&gt;&lt;BR /&gt;The owner of the files and directories will be shown but the programs that caused the program will not be determined.</description>
      <pubDate>Thu, 02 May 2002 01:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715368#M61705</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-05-02T01:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715369#M61706</link>
      <description>Bill, as an addendum to your post -- a word of caution on removing old files from /var/tmp. Some (extremely poorly written) programs store CRITICALLY IMPORTANT "hidden" files in the /var/tmp directory (the license indicator for microfocus cobol and certain cobol database programs) for instance. Removing these files can cause a few hours of fun and frustration for users and unfortunate DBAs/SAs.  &lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;PERSONNALLY would="" love="" to="" move="" these="" files=""&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PERSONNALLY&gt;</description>
      <pubDate>Thu, 02 May 2002 01:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715369#M61706</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2002-05-02T01:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error using dmesg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715370#M61707</link>
      <description>Agreed...there are a lot of applications that need major repair. The manufacturer should provide a list of critical files that must remain in temporary directories.</description>
      <pubDate>Thu, 02 May 2002 01:35:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-error-using-dmesg/m-p/2715370#M61707</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-05-02T01:35:32Z</dc:date>
    </item>
  </channel>
</rss>

