smartctl and munin

BERTRAND Joël <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
	Hello,

	I'm trying to install munin-node on a blade2000 running NetBSD-current. 
Munin-node runs fine and all data are sent to a centralized munin-server 
running linux.

	I have seen that smart_ scripts do not work as expected on NetBSD 
(sparc64 ?) as both smartctl output (NetBSD one and linux one) are 
different.

On Linux host, smartctl returns :
Root rayleigh:[~] > smartctl -a /dev/sda
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-4-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 3.5" HDD DT01ACA...
Device Model:     TOSHIBA DT01ACA100
Serial Number:    93U1NHKKS
LU WWN Device Id: 5 000039 ff7c0c155
Firmware Version: MS2OA750
User Capacity:    1 000 204 886 016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Jan  6 09:44:41 2015 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x84) Offline data collection activity
                                         was suspended by an 
interrupting command from host.
                                         Auto Offline Data Collection: 
Enabled.
Self-test execution status:      (   0) The previous self-test routine 
completed
                                         without error or no self-test 
has ever
                                         been run.
Total time to complete Offline
data collection:                ( 7361) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                         Auto Offline data collection 
on/off support.
                                         Suspend Offline collection upon new
                                         command.
                                         Offline surface scan supported.
                                         Self-test supported.
                                         No Conveyance Self-test supported.
                                         Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                         power-saving mode.
                                         Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                         General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 123) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                         SCT Error Recovery Control 
supported.
                                         SCT Feature Control supported.
                                         SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE 
UPDATED  WHEN_FAILED RAW_VALUE
   1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail 
Always       -       0
   2 Throughput_Performance  0x0005   140   140   054    Pre-fail 
Offline      -       76
   3 Spin_Up_Time            0x0007   126   126   024    Pre-fail 
Always       -       177 (Average 187)
   4 Start_Stop_Count        0x0012   100   100   000    Old_age 
Always       -       16
   5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail 
Always       -       0
   7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail 
Always       -       0
   8 Seek_Time_Performance   0x0005   110   110   020    Pre-fail 
Offline      -       36
   9 Power_On_Hours          0x0012   100   100   000    Old_age 
Always       -       5842
  10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail 
Always       -

and a lot of values used by munin script.


On NetBSD side, smartctl returns :
hilbert# smartctl -a /dev/rsd0c
smartctl 6.2 2013-07-26 r3841 [sparc64--netbsd] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST3146807FC
Revision:             0006
User Capacity:        146 815 737 856 bytes [146 GB]
Logical block size:   512 bytes
Rotation Rate:        10033 rpm
Device type:          disk
Transport protocol:   Fibre channel (FCP-2)
Local Time is:        Tue Jan  6 09:50:53 2015 CET
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     31 C
Drive Trip Temperature:        68 C

Elements in grown defect list: 1

Vendor (Seagate) cache information
   Blocks sent to initiator = 3106231726
   Blocks received from initiator = 1892902205
   Blocks read from cache and sent to initiator = 3292530887
   Number of read and write commands whose size <= segment size = 226801512
   Number of read and write commands whose size > segment size = 144709630

Vendor (Seagate/Hitachi) factory information
   number of hours powered up = 39927,58
   number of minutes until next internal SMART test = 94

Error counter log:
            Errors Corrected by           Total   Correction 
Gigabytes    Total
                ECC          rereads/    errors   algorithm 
processed    uncorrected
            fast | delayed   rewrites  corrected  invocations   [10^9 
bytes]  errors
read:    4837521        0         0   4837521    4837522      71740,062 
           0
write:         0        0         0         0          0      29502,941 
           0

Non-medium error count:   158292


[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
SMART Self-test log
Num  Test              Status                 segment  LifeTime 
LBA_first_err [SK ASC ASQ]
      Description                              number   (hours)
# 1  Background short  Completed                   -       2 
      - [-   -    -]
# 2  Background short  Completed                   -       2 
      - [-   -    -]
Long (extended) Self Test duration: 3072 seconds [51,2 minutes]

	I don't undestand why smartctl does report data with the same format. I 
have tried to rebuild smartctl from pkgsrc with the same result. Any idea ?

	Best regards,

	JKB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.