J
James Harris
James Harris wrote:
....
fsck, badblocks, smartctl, and various tools for your drive (raid
specific tools/checks for some raid drives and their health, if you use
raid, too).
I was thinking more of indications while Linux is running and the
disks are mounted, not of taking them down to scan them. I didn't
explain clearly enough but when restarting Linux the system knew
immediately that some file systems had errors. It didn't have to scan
the volumes to know there were errors. It simply said that file system
X has errors and will be scanned and checked.
If it knew that file system X had errors without scanning it there
must be a data value somewhere - probably in the affected partition -
that indicates error. If it wrote this value when closing the system
down it did so also without scanning the disks. Therefore Linux must
have known _prior to_ shutdown that file system X had errors. If it
did so I was wondering if this information is available to the system
admin prior to shutdown.
Does that make more sense now?
To the output or a log, depending on the tool and option used or
direction of the output, or if you mean to see any warnings/errors as
they happen, check dmesg as it happens and the messages log. Other
logs if you use other tools to check and log automatically.
Checked both of those but cannot see a notification of disk or file
system errors - at least not prior to reboot and running fsck.
Ensure your kernel has the proper error logging/debugging enabled and
you're running the checks manually or automatically with the
aforementioned tools.
Logging sounds good. I would prefer to avoid debugging as IMHO the
kernel or drivers should report the problem in all cases. It is fairly
important to know if there are file system corruptions, after all.
WRT logging syslog has *.* in syslog.conf. Just auth and authpriv are
set to none. I think that means syslog should contain any disk or file
system error messages but there are none I can see. Perhaps I need to
look for something specific...?
James