Re: mdadm mail option configuration
From: Neil Brown <hidden>
Date: 2002-05-29 22:53:22
On Wednesday May 29, jhill@hrpost.com wrote:
quoted
quoted
Then, I just have an init script that runs: /sbin/mdadm -Fs --delay=600 &Why 600 (10 minutes)?? I would suggest 60seconds for normal operation and 1 second for testing.Okay, changed. My choice was arbitrary, just assumed it would be reasonable -- I'm moving it on to a heavily loaded production server and the e-mail isn't constantly monitored so I assumed . . . .
You assumed what? Are you thinking that it wil send mail every $delay seconds if there is a problem, and you didn't want to be spammed? Mdadm only sends mail when it notices a drive fail, not when it notices that a drive is failed. i.e. if on one poll the drive is working, and on the next poll the drive is not working, then it sends mail saying "The drive just failed". So when you were testing, was "mdadm -Fs" actually running at the moment when you simulated a drive failure? NeilBrown