-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start process to send email notifications upon btrfs problems? #88
Comments
This can be very useful for smaller setups where the admin still would like to receive an email in case a disk in a btrfs RAID array fails. Partially resolves kdave#88
This can be very useful for smaller setups where the admin still would like to receive an email in case a disk in a btrfs RAID array fails. Partially resolves kdave#88
This can be very useful for smaller setups where the admin still would like to receive an email in case a disk in a btrfs RAID array fails. Partially resolves kdave#88
Adding some sort of notifications (for example, via email or running a custom script) is a must. If there are no notifications and users don't monitor logs on a regular basis, they will find about filesystem failure way later, maybe in a few years, when it could already be too late to restore a backup. |
Are the messages not in the journal. Why should btrfsmaintenance take over the sending of mail itself? Simply monitor the journal. |
I doubt a lot of average users monitor logs regularly, or monitor at all. |
mdadm has a similar capability too. Not everyone has a journal. Reading the journal (or dmesg directly) is complicated by various issues:
The last one is a bit complicated.
If there's a real device failure that happens during a readahead operation (e.g. a corrupted block is detected on a failing cheap SSD), then |
AFAIK the btrfsmaintenance scripts run either via cron or systremd.timer. Both send the output via mail to the system administrator. Don't you use these? |
If you are talking about the BTW, I'm no saying that btrfsmaintenance must copy ZFS, I'm just pointing out how it could be improved. |
I am wondering how btrfs users can ensure to automatically get notified (only) upon errors and warnings (that usually happen in the background and are very likely to remain unnoticed).
Btrfsmaintenance seemed like good find for this, it covers the necessary background tasks.
But couldn't it also run something like a watchdog task (i.e. bash pipe)?
It could filter the log for any btrfs warnings and errors that may occur during the daily usage, and send out emails as soon as they occur.
The text was updated successfully, but these errors were encountered: