DSM 4 and smartctl

Discussion about the hardware (internal HDD/external HDD/USB printer) and software compatibility of Synology product.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

DSM 4 and smartctl

Postby congo » Mon Mar 12, 2012 10:39 pm

hello world,

after upgrading to DSM4.0 on DS210j running 2xWD1003FBYX (WD 1GB RE4), i cant get sober output from smartctl, which disappoints me, since i monitor not only the synology devices i connect, but also their disks.

This command worked fine on DSM 3.1:

Code: Select all
$  /usr/syno/bin/smartctl -a /dev/hdb
smartctl 5.42 2011-10-20 r3458 [armv5tel-linux-2.6.32.12] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Segmentation fault (core dumped)


however, as you can see it now outputs segfault, its the same when using /dev/sdb.

In the older synology days, i prefixed with -d like so:

Code: Select all
 $  /usr/syno/bin/smartctl -d marvell -a /dev/sda
smartctl 5.42 2011-10-20 r3458 [armv5tel-linux-2.6.32.12] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Smartctl: Device Read Identity Failed: Unknown error

A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.

But as you can see, this too dont reveal any usefull data.



From the data (regardsless of the smartctl options) i want to fetch stuff like disk temperature, or any other SMART attribute, but catching this on stdout for treatment in perl og shell.


Does anyone have a clue or experience on extracting SMART details from commandline under DSM4?
(it is possible, since they do it inside the DSM gui under hdd management/SMART info).




br
congo

DS210j | DSM 4.0-2198| RAID-1 WD1003FBYX-01Y7B
DS207+ | DSM 3.1-1613| RAID-1 WD10EACS-65D6B0 (for netbackup)
Mainly using synology for NFS shares...
User avatar
congo
Sharp
Sharp
 
Posts: 173
Joined: Wed Aug 15, 2007 4:22 pm
Location: Copenhagen, Denmark

Re: DSM 4 and smartctl

Postby goetz » Mon Mar 12, 2012 11:46 pm

Hi,
try smartctl -d ata ...

Regards Goetz
DS-209+II / DSM 3.1-1742 /2x 2TB Seagate Constellation ES
DS-107+ / DSM 3.1-1613 / Samsung HD103UI
DS-106 / DSM 3.1-1742 (from 108j) / Hitachi HDP72505
eTrayZ / Samsung HD103SI
goetz
Knowledgeable
Knowledgeable
 
Posts: 336
Joined: Wed Mar 18, 2009 10:05 pm
Location: Berlin, Germany

Re: DSM 4 and smartctl

Postby congo » Tue Mar 13, 2012 12:29 am

geez - that must have been like the only thingy i didnt try.

this worked:
Code: Select all
/usr/syno/bin/smartctl -d ata -a /dev/sda
.


I can only wonder why they seem to change the implementation to drastic by every new DSM release...
thanks !

DS210j | DSM 4.0-2198| RAID-1 WD1003FBYX-01Y7B
DS207+ | DSM 3.1-1613| RAID-1 WD10EACS-65D6B0 (for netbackup)
Mainly using synology for NFS shares...
User avatar
congo
Sharp
Sharp
 
Posts: 173
Joined: Wed Aug 15, 2007 4:22 pm
Location: Copenhagen, Denmark

Re: DSM 4 and smartctl

Postby maxxfi » Tue Mar 13, 2012 7:27 am

Good that you solved your original problem, but that "segmentation fault" doesn't look good at all.
DSM 4 seems to have still too many rough edges for my taste...
DS-411 (DSM 4.2-3202) w/ 2x WD10EFRX + 1x HD154UI
DS-106j (DSM 3.0-1357), PATA-to-SATA adapter, 2.5" HM250HI
User avatar
maxxfi
Architect
Architect
 
Posts: 4339
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: DSM 4 and smartctl

Postby goetz » Tue Mar 13, 2012 5:49 pm

Hi,
@maxxfi
whats the problem? It works as designed.
Code: Select all
IsMvSocDriver() {
...
Chip=`/bin/cat /sys/block/$1/device/../../scsi*/proc_name`
if [ "x$Chip" = "xmvSata" ]; then
   return 1
fi
return 0
...
IsMvSocDriver $D
         ret=$?
         if [ $ret -eq 0 ]; then
            /usr/syno/bin/smartctl -a -d ata /dev/$D > /var/log/smart_$D.result
         elif [ $ret -eq 1 ]; then
            /usr/syno/bin/smartctl -a -d marvell /dev/$D > /var/log/smart_$D.result
         fi


Regards Goetz
DS-209+II / DSM 3.1-1742 /2x 2TB Seagate Constellation ES
DS-107+ / DSM 3.1-1613 / Samsung HD103UI
DS-106 / DSM 3.1-1742 (from 108j) / Hitachi HDP72505
eTrayZ / Samsung HD103SI
goetz
Knowledgeable
Knowledgeable
 
Posts: 336
Joined: Wed Mar 18, 2009 10:05 pm
Location: Berlin, Germany


Return to Hardware & Software Compatibility

Who is online

Users browsing this forum: Google [Bot] and 3 guests