Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying out FreeNAS 0.7.2 Sabanda (revision 5226) with 4x1TB disks, single parity ZFS RAID.

While the email reports built into FreeNAS are good, I was wondering if there was a way I could get it to email me immediately if a disk fails or does anything suspect, since I can only tolerate a single disk failure.

Any ideas gratefully received.

(note: reposted from on the recommendation of a commenter over there)

share|improve this question

Not directly ZFS-related, but you can get FreeNAS to email you based on SMART parameters, if that would help...


share|improve this answer

One think I can think of right now is having a cron job periodically run a command like zpool status -x and check to see if it returns anything other than all pools are healthy. If so, then it would fire off an email. (Unfortunately, I'm still learning things so I can't write the script myself, but I've been looking for someone who has.)

Another thought is have the status report get emailed emailed to you and have your email program look for key words like "checksum mismatch" because zpool errors will show up in those logs.

Unfortunately, I don't believe there is a built in Email Alerts for anything, which is a little surprising. I never looked for them before, but I kind of expected them there after setting up my ReadyNAS. Not only will it alert me of a drive failure/failing (increase in sectors being swapped out), but if a drive fails and my data is at risk, it will shutdown to protect the data.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.