BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} mounted file systems



Doctor Khumalo wrote:

I'm wondering if there is any way to monitor file systems that lose their mount? I have a system that rsyncs (using the delete option) with another remote server. I've had it happen that the file system lost its mount and overwote(i.e. deleted) the data on the remote server. I need Big Brother to somehow alert me if the local server has a file system that has lost its mount so that I can stop the rsync before it deletes anything.

Aside from using files.sh and putting a file on the filesystem and checking that it exists, is there another way of doing this?

I use rsync in a similar fashion, and I use the --backup-dir option, so that any files that rsync deletes because it thinks they are gone from the remote get backed up to a backup directory. Usually everything is fine and I prune the backup dir periodically, but there have been instances when rsync deleted everything because of a mount issue like you describe, and I was able to quickly recover the data from the backup directory. Also, rsync is not supposed to delete subdirs unless the dirs are empty, unless you use the --force option.


For a BB solution, sounds like you would want a client-side script that parses the output of either "df" or "mount" and send an alert if certain (any?) of the mounts were not there. It should be fairly easy to create that, but I would still suggest using the --backup-dir option to rsync, as the BB alert wont help you if the mount goes away right before rsync runs and you are unable to respond in time.

-Charles
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index