<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">What happens if you run smartd manually in debug mode and without forking:<br class="">sudo port unload smartmontools<br class="">sudo /opt/local/sbin/smartd -n -d -c /opt/local/etc/smartd.conf<br class=""><br class="">When I ran manually without sudo smartd complained about not being able to write a state file to:<br class="">/opt/local/var/lib/smartmontools/smartd.Hitachi_HDS722020ALA330-JK1174YAK4MZ3W.ata.state<br class=""><br class=""></div></blockquote><div><br class=""></div><div>When I ran the smartd like you did from the command line like the above, it seems to work properly:</div><div><br class=""></div><div><div><font face="Menlo" class="">Ubences-Intel-iMac:etc uquevedo$ sudo /opt/local/sbin/smartd -n -d -c /opt/local/etc/smartd.conf</font></div><div><font face="Menlo" class="">smartd 6.2 2013-07-26 r3841 [x86_64-apple-darwin14.0.0] (local build)</font></div><div><font face="Menlo" class="">Copyright (C) 2002-13, Bruce Allen, Christian Franke, <a href="http://www.smartmontools.org" class="">www.smartmontools.org</a></font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">Opened configuration file /opt/local/etc/smartd.conf</font></div><div><font face="Menlo" class="">Configuration file /opt/local/etc/smartd.conf parsed.</font></div><div><font face="Menlo" class="">Device: /dev/disk0, opened</font></div><div><font face="Menlo" class="">Device: /dev/disk0, WDC WD1002FAEX-00Y9A0, S/N:[not showing this], WWN:5-0014ee-2064339e8, FW:05.01D05, 1.00 TB</font></div><div><font face="Menlo" class="">Device: /dev/disk0, found in smartd database: Western Digital Caviar Black</font></div><div><font face="Menlo" class="">Device: /dev/disk0, is SMART capable. Adding to "monitor" list.</font></div><div><font face="Menlo" class="">Device: /dev/disk0, state read from /opt/local/var/lib/smartmontools/smartd.WDC_WD1002FAEX_00Y9A0-WD_WCAW32908017.ata.state</font></div><div><font face="Menlo" class="">Monitoring 1 ATA and 0 SCSI devices</font></div><div><font face="Menlo" class="">Device: /dev/disk0, opened ATA device</font></div><div><font face="Menlo" class="">Device: /dev/disk0, state written to /opt/local/var/lib/smartmontools/smartd.WDC_WD1002FAEX_00Y9A0-WD_WCAW32908017.ata.state</font></div><div><font face="Menlo" class="">Device: /dev/disk0, opened ATA device</font></div><div><font face="Menlo" class="">Device: /dev/disk0, opened ATA device</font></div><div><font face="Menlo" class="">Device: /dev/disk0, starting scheduled Short Self-Test. <font color="#ff2600" class=""> <— The short test that I had scheduled in smartd.conf</font></font></div><div><font face="Menlo" class="">Device: /dev/disk0, state written to /opt/local/var/lib/smartmontools/smartd.WDC_WD1002FAEX_00Y9A0-WD_WCAW32908017.ata.state</font></div><div><font face="Menlo" class="">Device: /dev/disk0, opened ATA device</font></div><div><span style="font-family: Menlo;" class="">.</span></div><div><span style="font-family: Menlo;" class="">.</span></div><div><span style="font-family: Menlo;" class="">.</span></div><div><span style="font-family: Menlo;" class="">Device: /dev/disk0, opened ATA device</span></div><div><font face="Menlo" class="">Device: /dev/disk0, starting scheduled Long Self-Test. <font color="#ff2600" class=""><— The long test that I had scheduled in smartd.conf</font></font></div><div><font face="Menlo" class="">Device: /dev/disk0, state written to /opt/local/var/lib/smartmontools/smartd.WDC_WD1002FAEX_00Y9A0-WD_WCAW32908017.ata.state</font></div><div><font face="Menlo" class="">Device: /dev/disk0, opened ATA device</font></div><div><font face="Menlo" class="">.</font></div><div><font face="Menlo" class="">.</font></div><div><font face="Menlo" class="">.</font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">Ubences-Intel-iMac:etc uquevedo$ smartctl -a /dev/disk0</font></div><div><font face="Menlo" class="">smartctl 6.2 2013-07-26 r3841 [x86_64-apple-darwin14.0.0] (local build)</font></div><div><font face="Menlo" class="">Copyright (C) 2002-13, Bruce Allen, Christian Franke, <a href="http://www.smartmontools.org" class="">www.smartmontools.org</a></font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">=== START OF INFORMATION SECTION ===</font></div><div><font face="Menlo" class="">Model Family: Western Digital Caviar Black</font></div><div><font face="Menlo" class="">Device Model: WDC WD1002FAEX-00Y9A0</font></div><div><font face="Menlo" class="">Serial Number: <i class="">[hiding this again]</i></font></div><div><font face="Menlo" class="">LU WWN Device Id: 5 0014ee 2064339e8</font></div><div><font face="Menlo" class="">Firmware Version: 05.01D05</font></div><div><font face="Menlo" class="">User Capacity: 1,000,204,886,016 bytes [1.00 TB]</font></div><div><font face="Menlo" class="">Sector Size: 512 bytes logical/physical</font></div><div><font face="Menlo" class="">Device is: In smartctl database [for details use: -P show]</font></div><div><font face="Menlo" class="">ATA Version is: ATA8-ACS (minor revision not indicated)</font></div><div><font face="Menlo" class="">SATA Version is: SATA 2.6, 6.0 Gb/s (current: 3.0 Gb/s)</font></div><div><font face="Menlo" class="">Local Time is: Sat Dec 6 01:28:35 2014 PST</font></div><div><font face="Menlo" class="">SMART support is: Available - device has SMART capability.</font></div><div><font face="Menlo" class="">SMART support is: Enabled</font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">=== START OF READ SMART DATA SECTION ===</font></div><div><font face="Menlo" class="">SMART overall-health self-assessment test result: PASSED</font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">General SMART Values:</font></div><div><font face="Menlo" class="">Offline data collection status: (0x84)<span class="Apple-tab-span" style="white-space:pre">        </span>Offline data collection activity</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>was suspended by an interrupting command from host.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Auto Offline Data Collection: Enabled.</font></div><div><font face="Menlo" class="">Self-test execution status: ( 0)<span class="Apple-tab-span" style="white-space:pre">        </span>The previous self-test routine completed</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>without error or no self-test has ever </font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>been run.</font></div><div><font face="Menlo" class="">Total time to complete Offline </font></div><div><font face="Menlo" class="">data collection: <span class="Apple-tab-span" style="white-space:pre">                </span>(16860) seconds.</font></div><div><font face="Menlo" class="">Offline data collection</font></div><div><font face="Menlo" class="">capabilities: <span class="Apple-tab-span" style="white-space:pre">                        </span> (0x7b) SMART execute Offline immediate.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Auto Offline data collection on/off support.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Suspend Offline collection upon new</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>command.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Offline surface scan supported.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Self-test supported.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Conveyance Self-test supported.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Selective Self-test supported.</font></div><div><font face="Menlo" class="">SMART capabilities: (0x0003)<span class="Apple-tab-span" style="white-space:pre">        </span>Saves SMART data before entering</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>power-saving mode.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>Supports SMART auto save timer.</font></div><div><font face="Menlo" class="">Error logging capability: (0x01)<span class="Apple-tab-span" style="white-space:pre">        </span>Error logging supported.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>General Purpose Logging supported.</font></div><div><font face="Menlo" class="">Short self-test routine </font></div><div><font face="Menlo" class="">recommended polling time: <span class="Apple-tab-span" style="white-space:pre">        </span> ( 2) minutes.</font></div><div><font face="Menlo" class="">Extended self-test routine</font></div><div><font face="Menlo" class="">recommended polling time: <span class="Apple-tab-span" style="white-space:pre">        </span> ( 174) minutes.</font></div><div><font face="Menlo" class="">Conveyance self-test routine</font></div><div><font face="Menlo" class="">recommended polling time: <span class="Apple-tab-span" style="white-space:pre">        </span> ( 5) minutes.</font></div><div><font face="Menlo" class="">SCT capabilities: <span class="Apple-tab-span" style="white-space:pre">        </span> (0x3035)<span class="Apple-tab-span" style="white-space:pre">        </span>SCT Status supported.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>SCT Feature Control supported.</font></div><div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">                                        </span>SCT Data Table supported.</font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">SMART Attributes Data Structure revision number: 16</font></div><div><font face="Menlo" class="">Vendor Specific SMART Attributes with Thresholds:</font></div><div><font face="Menlo" class="">ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE</font></div><div><font face="Menlo" class=""> 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 13</font></div><div><font face="Menlo" class=""> 3 Spin_Up_Time 0x0027 172 170 021 Pre-fail Always - 4391</font></div><div><font face="Menlo" class=""> 4 Start_Stop_Count 0x0032 076 076 000 Old_age Always - 24330</font></div><div><font face="Menlo" class=""> 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0</font></div><div><font face="Menlo" class=""> 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0</font></div><div><font face="Menlo" class=""> 9 Power_On_Hours 0x0032 094 094 000 Old_age Always - 5098</font></div><div><font face="Menlo" class=""> 10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0</font></div><div><font face="Menlo" class=""> 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0</font></div><div><font face="Menlo" class=""> 12 Power_Cycle_Count 0x0032 079 079 000 Old_age Always - 21825</font></div><div><font face="Menlo" class="">192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 21</font></div><div><font face="Menlo" class="">193 Load_Cycle_Count 0x0032 192 192 000 Old_age Always - 24308</font></div><div><font face="Menlo" class="">194 Temperature_Celsius 0x0022 100 081 000 Old_age Always - 47</font></div><div><font face="Menlo" class="">196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0</font></div><div><font face="Menlo" class="">197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0</font></div><div><font face="Menlo" class="">198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0</font></div><div><font face="Menlo" class="">199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0</font></div><div><font face="Menlo" class="">200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 1</font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">SMART Error Log Version: 1</font></div><div><font face="Menlo" class="">No Errors Logged</font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">SMART Self-test log structure revision number 1</font></div><div><font face="Menlo" class="">Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error</font></div><div><font face="Menlo" class=""># 1 Short offline Completed without error 00% 5093 -</font></div><div><font color="#ff2600" face="Menlo" class=""># 2 Extended offline Completed without error 00% 5082 -</font></div><div><font color="#ff2600" face="Menlo" class=""># 3 Short offline Completed without error 00% 5069 -</font></div><div><font face="Menlo" class=""># 4 Short offline Completed without error 00% 5066 -</font></div><div><font face="Menlo" class=""># 5 Extended offline Completed without error 00% 4673 -</font></div><div><font face="Menlo" class=""># 6 Extended offline Completed without error 00% 4080 -</font></div><div><font face="Menlo" class=""># 7 Short offline Completed without error 00% 2987 -</font></div><div><font face="Menlo" class=""># 8 Extended offline Aborted by host 80% 2985 -</font></div><div><font face="Menlo" class=""># 9 Short offline Completed without error 00% 2982 -</font></div><div><font face="Menlo" class="">#10 Short offline Completed without error 00% 2975 -</font></div><div><font face="Menlo" class="">#11 Short offline Aborted by host 90% 2962 -</font></div><div><font face="Menlo" class="">#12 Short offline Completed without error 00% 2960 -</font></div><div><font face="Menlo" class="">#13 Short offline Completed without error 00% 2957 -</font></div><div><font face="Menlo" class="">#14 Short offline Completed without error 00% 2956 -</font></div><div><font face="Menlo" class="">#15 Short offline Completed without error 00% 2950 -</font></div><div><font face="Menlo" class="">#16 Short offline Completed without error 00% 2948 -</font></div><div><font face="Menlo" class="">#17 Short offline Completed without error 00% 2946 -</font></div><div><font face="Menlo" class="">#18 Short offline Completed without error 00% 2944 -</font></div><div><font face="Menlo" class="">#19 Short offline Completed without error 00% 2941 -</font></div><div><font face="Menlo" class="">#20 Short offline Completed without error 00% 2939 -</font></div><div><font face="Menlo" class="">#21 Short offline Completed without error 00% 2934 -</font></div><div><font face="Menlo" class=""><br class=""></font></div><div><font face="Menlo" class="">SMART Selective self-test log data structure revision number 1</font></div><div><font face="Menlo" class=""> SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS</font></div><div><font face="Menlo" class=""> 1 0 0 Not_testing</font></div><div><font face="Menlo" class=""> 2 0 0 Not_testing</font></div><div><font face="Menlo" class=""> 3 0 0 Not_testing</font></div><div><font face="Menlo" class=""> 4 0 0 Not_testing</font></div><div><font face="Menlo" class=""> 5 0 0 Not_testing</font></div><div><font face="Menlo" class="">Selective self-test flags (0x0):</font></div><div><font face="Menlo" class=""> After scanning selected spans, do NOT read-scan remainder of disk.</font></div><div><font face="Menlo" class="">If Selective self-test is pending on power-up, resume after 0 minute delay.</font></div></div><div><br class=""></div><div>There is an entry on the Mac Ports Trac site for an upgrade to 6.3 here: <a href="https://trac.macports.org/ticket/45982" class="">https://trac.macports.org/ticket/45982</a></div><div><br class=""></div><div>I’m going to try compiling smartmontools from source and give that a try to see if I still run into the same issue and hope that the 6.3 update whenever it is released from Mac Ports will fix this problem.</div><div><br class=""></div><div>I’ll also likely post a bug report since there doesn’t seem to be one for this already.</div><div><br class=""></div><div>-Ubence</div><br class=""><blockquote type="cite" class=""><div class="">Regards,<br class="">Bradley Giesbrecht (pixilla)<br class=""><br class=""></div></blockquote></div><br class=""></body></html>