LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2013, 09:13 PM   #1
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
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?

Last edited by yenn; 04-14-2013 at 09:14 PM. Reason: typo
 
Old 04-15-2013, 02:25 PM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Note smartd can be started by uncommenting a section in the official /etc/rc.d/rc.M.
 
Old 04-16-2013, 07:54 AM   #3
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
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.
 
Old 04-17-2013, 02:30 AM   #4
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
Quote:
Originally Posted by yenn View Post
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.

Last edited by xj25vm; 04-17-2013 at 02:31 AM.
 
Old 04-18-2013, 02:41 PM   #5
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

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

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

Seems to do the job just fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian emty init scripts /etc/init.d crowl Debian 5 10-16-2012 10:42 AM
[SOLVED] How to monitor init scripts in /etc/init.d/ in rhel 5 me_spearhead Red Hat 2 02-09-2011 10:41 PM
Diffrence /etc/init.d and /etc/init.d/rc?.d scripts veeruhs Linux - Server 3 07-29-2010 04:42 AM
[SOLVED] init scripts, variables in INIT INFO section catkin Linux - General 1 08-18-2009 02:02 PM
Smartd Error Message generated by Smartd Daemon Proces rexjenny Red Hat 1 11-29-2006 07:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration