Operating System - HP-UX
1823308 Members
3059 Online
109653 Solutions
New Discussion юеВ

Any way of checking if filesystem was full

 
SOLVED
Go to solution
Tim O'Connell
Regular Advisor

Any way of checking if filesystem was full

Hi,

One of our developers was running a program on our test machine last night & it failed at some point. He thinks that the filesystem he was using may have become full. It's not full now as a cleanup job is run every mornong so that could habve removed files older than a certain date. Is there any log which records "File system full". On some flavour of Unix I worked on, there used to br a var/log/console which recorded all messages sent to the console which included any filesystems full. Anything like that on HPUX.

Thanks,

TIm
7 REPLIES 7
Peter Godron
Honored Contributor
Solution

Re: Any way of checking if filesystem was full

Tim,
try:
/var/adm/syslog/syslog.log
Fabian Brise├▒o
Esteemed Contributor

Re: Any way of checking if filesystem was full

Hello Tim.

you can check /var/adm/syslog/syslog.log

that will tell you what filesystem was full

or you can run the following command:

dmesg

Hope this helps.
Knowledge is power.
Tim O'Connell
Regular Advisor

Re: Any way of checking if filesystem was full

Thanks

Problem solved. Found message & file system was full. Thanks for the replies. Points assigned.

Many Thanks,

Tim
Yogeeraj_1
Honored Contributor

Re: Any way of checking if filesystem was full

hi Tim

we have a similar utility script that runs every hour and alerts us on any error messages at the kernel level.

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Bill Hassell
Honored Contributor

Re: Any way of checking if filesystem was full

The other source of error messages to the console is found with the dmesg command. However, this is not a disk log but a kernel memory buffer. So newer messages will roll older messages off the top of the buffer. And of course, this buffer is lost on a reboot. The solution is to write any new dmesg entries into a logfile on disk using something like the sample crontab entry in /usr/newconfig/var/spool/cron/crontab.root. Although a couple of other flavors of Unix use the file "messages", I think that is very misleading, so my crontab entry looks like this:

05,15,25,35,45,55 * * * * /usr/sbin/dmesg - >>/var/adm/dmesg.log

Note the very critical - (minus or dash) that tells dmesg to display only new messages (or nothing is no new messages). The - option also timestamps new messages.

The attached script will monitor filesystems and send notices by email, to syslog and/or notify OpenView ITO.


Bill Hassell, sysadmin
Raj D.
Honored Contributor

Re: Any way of checking if filesystem was full

Hi Tim,

You can check this with syslog.log and dmesg.

You will find the vxfs:filesystem full message in syslog.log with timestamp.

If you rebooted the system since the filesystem full message , you can find it in OLDsyslog.log ,

Also you can write a small script to redirect the dmesg messages to any logfile as outlined by Bill,


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Tim O'Connell
Regular Advisor

Re: Any way of checking if filesystem was full

Thanks for all the replies. As I've closed the call, I don't seem to be able to allocate points to the last 3 replies.

Thanks,

Tim