Feature Request: Other volume icon for degraded raidz

Moderators: jhartley, MSR734, nola

Feature Request: Other volume icon for degraded raidz

Post by /dev/null » Sat Sep 29, 2012 3:11 am

Since I don't use Growl and don't wanna trigger log files (it's mac unlikely) or write custom scripts that trigger status -x….
How about changing the volume icon to something like red, if the raidz status is degraded?
Hope, i am not the only one who shows these fancy volume icons on the desktop…

Or … someone wrote a script already, that triggers status -x on logon and send a mail or something like this, if the volume is degraded?
/dev/null Offline


 
Posts: 16
Joined: Sat Sep 15, 2012 7:13 am

Re: Feature Request: Other volume icon for degraded raidz

Post by si-ghan-bi » Sat Sep 29, 2012 5:56 am

I'm not sure it's possible.
si-ghan-bi Offline


 
Posts: 145
Joined: Sat Sep 15, 2012 5:55 am

Re: Feature Request: Other volume icon for degraded raidz

Post by elfpltfn » Sat Sep 29, 2012 7:50 am

I wrote a script that checks, (it just counts the number of time ONLINE is in zpool status, and if its not the expected count, it triggers an automator "program" which emails me. Launchd triggers the script every 15 minutes. If you want I can post the script, automator workflow, and launchd plist.
elfpltfn Offline


 
Posts: 23
Joined: Fri Sep 14, 2012 9:52 pm

Re: Feature Request: Other volume icon for degraded raidz

Post by elfpltfn » Sat Sep 29, 2012 8:31 am

HERE is my zfs integrity checker with installation instructions.

The script checks the status of my pool every 15 minutes, and emails me if the pool is degraded, offline, etc
(anything but online for every disk)

Let me know if you have issues, it's worked great for me for over a year.
elfpltfn Offline


 
Posts: 23
Joined: Fri Sep 14, 2012 9:52 pm

Re: Feature Request: Other volume icon for degraded raidz

Post by /dev/null » Sat Sep 29, 2012 10:44 am

Thanks u so much for the scripts!!
Two Issues:

1) In the readme u wrote /usr/local/lib (for the shell script), but in the plist its /usr/local/bin. So u should correct the read me :-p

2) Needed to change the automator workflow; had to remove the attachment part, otherwise the mail didn't send and stucked on screen (10.8.1).

3) awesum - now i get an old school sms, if my raid is degraded!!!
/dev/null Offline


 
Posts: 16
Joined: Sat Sep 15, 2012 7:13 am

Re: Feature Request: Other volume icon for degraded raidz

Post by elfpltfn » Sat Sep 29, 2012 11:06 am

Thanks for the feedback! I made the /usr/local/lib to /usr/local/bin change in the howto

Did /tmp/ZFS_Status.txt exist to be attached?
(should have been created when the shell script found the wrong online disk count)
If this did not exist, or the workflow was pointed to the wrong directory it would fail.
I included this so you would get a copy of zpool status output with your warning notification

Thanks
elfpltfn Offline


 
Posts: 23
Joined: Fri Sep 14, 2012 9:52 pm

Re: Feature Request: Other volume icon for degraded raidz

Post by /dev/null » Sat Sep 29, 2012 11:10 am

The file existed and even the attaching of the file worked.
Problem seems to be, that the workflow step "Send mails" just sends everything in the outbox, if the step is not directly connected to a mail. And the "Add Attachment..." step does not return a mail object *grrr*
/dev/null Offline


 
Posts: 16
Joined: Sat Sep 15, 2012 7:13 am

Re: Feature Request: Other volume icon for degraded raidz

Post by elfpltfn » Sat Sep 29, 2012 11:26 am

hmm. I don't have 10.8. You might try re-creating the workflow with 10.8 native actions. (I can't think what new steps would be required) At any rate, if you get it sorted out on 10.8 post the workflow and I'll include it in the original zip file.

Thanks
elfpltfn Offline


 
Posts: 23
Joined: Fri Sep 14, 2012 9:52 pm

Re: Feature Request: Other volume icon for degraded raidz

Post by si-ghan-bi » Sat Sep 29, 2012 1:28 pm

Please start a proper thread, the script deserves something better than an offtopic.
si-ghan-bi Offline


 
Posts: 145
Joined: Sat Sep 15, 2012 5:55 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 1 guest

cron