Opened 12 years ago

Closed 10 years ago

#34629 closed defect (invalid)

smartmontools failed to start

Reported by: th.chiang@… Owned by: takanori@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: smartmontools

Description

Hi,

This is a request for assisting configuration, probably NOT a bug in the system.

I'm trying to run smartmontools as a daemon on OS X 10.7.4.

First, executing from terminal works fine:

smartctl -t short /dev/disk0

However, I encountered problem while setting up smartd (mail and ssmtp works fine from the terminal):

sudo nano /opt/local/etc/smartd.conf
/dev/disk0 -H -l error -l selftest -f -s (S/../.././09|C/../.././21|L/../../6/04) -m mymail@gmail.com

Setting Disabled=false:

sudo nano /opt/local/etc/LaunchDaemons/org.macports.smartd/org.macports.smartd.plist
...
<key>Disabled</key><false/>
...

adding to launchd:

sudo launchctl load -w /opt/local/etc/LaunchDaemons/org.macports.smartd/org.macports.smartd.plist

On reboot, smartd is running.

However,

sudo smartctl -l selftest /dev/disk0

shows no new records of self-test being carried out.

And:

cat /var/log/system.log:
May 26 21:11:55 mymac smartd[174]: Device: /dev/disk0, execute Conveyance Self-Test failed.

Please advise, thanks.

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to takanori@…
Port: smartmontools added

comment:2 Changed 11 years ago by takanori@…

FYI, my "smartd.conf" is like the following:

[/opt/local/etc/smartd.conf]
/dev/rdisk0 -a       -S on -s (S/../.././02|L/../../6/03) -I 190 -I 194 -W 4,45,50 -R 5! -m root@mydomain.com

To run smartmontools as a daemon, all you have to do is:

$ sudo port load smartmontools

There is no need to edit "org.macports.smartd.plist" by your hand. No need to launch "launchctl" directly.

comment:3 Changed 10 years ago by pixilla (Bradley Giesbrecht)

Resolution: invalid
Status: newclosed

Configuration issues are better discussed on the MacPorts users mailing list or better an upstream forum.

Note: See TracTickets for help on using tickets.