[monit-dev] symbolic links in filesystem check doesn't works

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[monit-dev] symbolic links in filesystem check doesn't works

Sergey B Kirpichev

Right now we have very uninformative message like
[MSK Mar 16 23:18:05] error    : 'homefs' unable to read filesystem
/dev/dm-5 state
when the path for "check filesystem" clause IS a symlink AND the target
of this symlink IS NOT in /etc/mtab.  For example:
$ grep home /etc/mtab
/dev/mapper/squeeze-home /home ext3 rw 0 0
$ ls -l /dev/mapper/squeeze-home
lrwxrwxrwx 1 root root 7 Mar 16 23:11 /dev/mapper/squeeze-home -> ../dm-5
$ mount | grep home
/dev/mapper/squeeze-home on /home type ext3 (rw)

What you would like to suggest in this situation?  This
seems to be more "a bug", not "a feature".

The trivial "fix" is to report more fine-graned errors in this case.  But
looks like an access to filesystem device via symlink (introduced in
5.0) is supposed to work as well as for direct pointing to the
device file.  Isn't?

Related monit conf snippet:
 check filesystem homefs with path /dev/mapper/squeeze-home
   if failed permission 660 then unmonitor
   if failed uid root then unmonitor
   if failed gid disk then unmonitor
   if space usage > 80% for 5 times within 15 cycles then alert
   if space usage > 99% then stop
   if inode usage > 30000 then alert
   if inode usage > 99% then stop

See also:

monit-dev mailing list
[hidden email]