DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-05-16 17:15:13

iazmin
Member
Registered: 2008-09-10
Posts: 55

smartd not running

I am confused why my smartd.sh is not running:

Code:

root@nashawa:/mnt/usb# cd /ffp/start/
root@nashawa:/mnt/usb/ffp/start# sh smartd.sh start
Starting /ffp/sbin/smartd -c /ffp/etc/smartd.conf
root@nashawa:/mnt/usb/ffp/start# sh smartd.sh status
smartd not running
root@nashawa:/mnt/usb/ffp/start#

I already added the following in /ffp/etc/smartd.conf

Code:

DEVICESCAN
/dev/sda -d marvell
/dev/sdb -d marvell

My syslogd.sh runs fine.
What went wrong?

Offline

 

#2 2009-05-16 20:28:17

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: smartd not running

iazmin wrote:

My syslogd.sh runs fine.

That's good, but why didn't you look into /var/log/messages for error message from smartd?

Offline

 

#3 2009-05-17 04:46:39

iazmin
Member
Registered: 2008-09-10
Posts: 55

Re: smartd not running

fonz wrote:

iazmin wrote:

My syslogd.sh runs fine.

That's good, but why didn't you look into /var/log/messages for error message from smartd?

I did but the directory is empty..no log files

Offline

 

#4 2009-05-18 18:23:04

iazmin
Member
Registered: 2008-09-10
Posts: 55

Re: smartd not running

iazmin wrote:

Code:

DEVICESCAN
/dev/sda -d marvell
/dev/sdb -d marvell

My syslogd.sh runs fine.
What went wrong?

At last my smartd.sh work! The reason was that I do not put # in front of DEVICESCAN. So my final smartd.conf contain:

Code:

/dev/sda -d marvell
/dev/sdb -d marvell

I expand further to allow the smartd daemon to email the SMART test result to my email by using the following:

Code:

#DEVICESCAN

/dev/sda -d marvell -m myEmail@domain.org -M exec /ffp/sbin/smartd_mail.sh -M test
/dev/sdb -d marvell -m myEmail@domain.org -M exec /ffp/sbin/smartd_mail.sh -M test

It use the mailx to send the test result. Fantastic!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB