LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   smartd and mdadm init scripts (http://www.linuxquestions.org/questions/slackware-14/smartd-and-mdadm-init-scripts-4175458152/)

yenn 04-14-2013 09:13 PM

smartd and mdadm init scripts
 
I'm aware that SMART statistics aren't always reliable, but without periodical checking of hdd's health they are completely useless and hdd can fail without warning. Well, it can fail silently even with SMART monitoring on, but on server I'd rather have any available information. Now I have to start smartd manually or put it in rc.local. Same goes for software RAID array monitoring.

I made rc script for smart daemon myself (see http://docs.slackware.com/wiki:user:yenn:s.m.a.r.t). I haven't made script for mdamd yet, but it shouldn't differ much from rc.smartd. It would be handy if these init scripts were included in official Slackware packages.

Is there a chance to include such scripts in Slackware?

rg3 04-15-2013 02:25 PM

Note smartd can be started by uncommenting a section in the official /etc/rc.d/rc.M.

yenn 04-16-2013 07:54 AM

I didn't know that, thanks!

Still, init script would be nice to have, if I want to try different parameters for smartctl on the fly, or it for some reason just doesn't work right. In that case start/stop/restart commands would be useful.

xj25vm 04-17-2013 02:30 AM

Quote:

Originally Posted by yenn (Post 4932383)
I didn't know that, thanks!

Still, init script would be nice to have, if I want to try different parameters for smartctl on the fly, or it for some reason just doesn't work right. In that case start/stop/restart commands would be useful.

I vote for the same. I've been uncommenting the rc.M portion as well - which has worked just fine for me - but for a long time I had no idea that it was there. If there is a /etc/rc.d/rc.smartd - it would be way more obvious that startup functionality is available out of the box for smartd.

I also copy my own rc.mdadm in when I setup new servers. Again - it would be helpful if a default one was available.

xj25vm 04-18-2013 02:41 PM

By the way - I got my rc.mdadm script from here:

http://www.slackware.com/~mrgoblin/files/

Seems to do the job just fine.


All times are GMT -5. The time now is 12:30 AM.