Arun Anbalagan
2016-06-17 02:58:46 UTC
Dear Members,
Can you please help me understanding the following issues? Thanks very much
for your help in advance.
1. I have been primarily working on UNIX based servers, and we recently
decided to monitor the SMART metrics of our Windows systems as well. I
followed the INSTALL instructions as provided in the source tarball. Thus,
I installed MinGW gcc compiler and MSYS on my Windows System, and ran
"./configure" and "make" on the MSYS terminal, from the directory where the
source files were placed. It successfully created the 'smartctl' binary. I
copied it another folder under PATH, and tried running it. But, it failed
with a message stating that the dll libgcc_s_dw2-1.dll was not found in the
computer. As suggested in a discussion forum, I ran "./configure" as
"./configure LDFLAGS=-static", and this resolved the problem. Please let me
know if I missed something that could have caused this problem. Though I
was able to get the issue resolved, I wanted to be sure of whether I did
the right thing or not, since this was not discussed in the INSTALL
procedure shipped with the source ball.
2. Subsequently, when I run the 'smartctl' executable from my Windows
folder, I'm able to get the SMART metrics. But, unfortunately, the metric
names are reported as 'Unknown Attribute' and the threshold values are just
displayed as "---". Is it a normal behavior?
'smartctl -a' states that the particular device is not in smartctl
database. Could this be the reason for this output?
But, when I try the same on another disk device, I'm able to get the
attribute names and threshold values, though this disk is also reported as
not part of the smartctl database.
The outputs are as below for your reference:
D:\smart>smartctl --scan
/dev/sda -d ata # /dev/sda, ATA device
/dev/csmi0,4 -d ata # /dev/csmi0,4, ATA device
D:\smart>smartctl -a /dev/sda
smartctl 6.4 2015-06-04 r4109 [i686-pc-mingw32-win7(64)-sp1] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
Warning: Limited functionality due to missing admin rights
=== START OF INFORMATION SECTION ===
Device Model: SAMSUNG MZMLN256HCHP-000
Serial Number: S20BNXAGA05377
Firmware Version: EMT4
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: [No Information Found]
Local Time is: Fri Jun 17 11:39:14 2016 KST
SMART support is: Available - device has SMART capability.
Enabled status cached by OS, trying SMART RETURN STATUS
cmd.
SMART support is: Enabled
Warning! SMART Attribute Data Structure error: invalid SMART checksum.
Read SMART Thresholds failed: Function not implemented
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0xff) Offline data collection activity
is in a Vendor Specific state.
Auto Offline Data Collection:
Enabled.
Self-test execution status: ( 255) Self-test routine in progress...
150% of test remaining.
Total time to complete Offline
data collection: ( 9729) seconds.
Offline data collection
capabilities: (0x17) SMART execute Offline immediate.
Auto Offline data collection on/off
support.
Abort Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0xfa80) Does not save SMART data before
entering power-saving mode.
Error logging capability: (0xff) Error logging supported.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 112) minutes.
Extended self-test routine
recommended polling time: ( 7) minutes.
SMART Attributes Data Structure revision number: 0
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED
WHEN_FAILED RAW_VALUE
72 Unknown_Attribute 0x6100 000 114 --- Old_age
Offline - 115450398663680
115 Unknown_Attribute 0x6b00 000 086 --- Old_age
Offline - 128644672417536
109 Unknown_Attribute 0x6500 000 050 --- Old_age
Offline - 140791760269312
255 Unknown_Attribute 0x00ff 000 000 --- Pre-fail
Always - 211106232533248
233 Media_Wearout_Indicator 0x8017 250 255 --- Pre-fail
Always - 255
27 Unknown_Attribute 0x8003 248 255 --- Pre-fail
Always - 140818336018687
255 Unknown_Attribute 0x01ff 000 000 --- Pre-fail
Always - 212205743800320
233 Media_Wearout_Indicator 0x8017 250 255 --- Pre-fail
Always - 140818336018687
255 Unknown_Attribute 0x01ff 000 000 --- Pre-fail
Always - 212205743800320
233 Media_Wearout_Indicator 0x8017 250 255 --- Pre-fail
Always - 140742726184191
255 Unknown_Attribute 0x00ff 090 064 --- Pre-fail
Always - 281474976350228
255 Unknown_Attribute 0xffff 255 255 --- Pre-fail
Always - 255
193 Load_Cycle_Count 0x801e 250 255 --- Old_age
Always - 140857482154239
255 Unknown_Attribute 0x00ff 000 000 --- Pre-fail
Always - 211106232532992
164 Unknown_Attribute 0x800c 250 255 --- Old_age
Offline - 140742742376703
255 Unknown_Attribute 0x00ff 000 000 --- Pre-fail
Always - 70368744177664
212 Unknown_Attribute 0x8009 250 255 --- Pre-fail
Offline - 140742775419391
255 Unknown_Attribute 0x70ff 007 163 --- Pre-fail
Always - 247390115889164
160 Unknown_Attribute 0x800c 250 255 --- Old_age
Offline - 140747090272511
255 Unknown_Attribute 0xc0ff 036 233 --- Pre-fail
Always - 247390115889175
160 Unknown_Attribute 0x800c 250 255 --- Old_age
Offline - 140840184148223
255 Unknown_Attribute 0x00ff 042 057 --- Pre-fail
Always - 1099511136257
255 Unknown_Attribute 0xa0ff 081 060 --- Pre-fail
Always - 212205743669250
30 Unknown_Attribute 0x800a 250 255 --- Old_age
Always - 140857482154239
255 Unknown_Attribute 0xc0ff 036 233 --- Pre-fail
Always - 236394999611415
56 Unknown_Attribute 0x8001 248 255 --- Pre-fail
Offline - 140779709972735
Read SMART Error Log failed: Function requires admin rights
Read SMART Self-test Log failed: Function requires admin rights
Selective Self-tests/Logging not supported
D:\smart>smartctl -A -d ata -x /dev/csmi0,4
smartctl 6.4 2015-06-04 r4109 [i686-pc-mingw32-win7(64)-sp1] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: SAMSUNG MZMLN256HCHP-000
Serial Number: S20BNXAGA05377
LU WWN Device Id: 5 002538 d4067f166
Firmware Version: EMT41K0Q
User Capacity: 256,060,514,304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri Jun 17 11:56:36 2016 KST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Unavailable
APM feature is: Unavailable
Rd look-ahead is: Enabled
Write cache is: Enabled
ATA Security is: Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection:
Disabled.
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: ( 0) seconds.
Offline data collection
capabilities: (0x53) SMART execute Offline immediate.
Auto Offline data collection on/off
support.
Suspend Offline collection upon new
command.
No 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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 133) 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: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
5 Reallocated_Sector_Ct PO--CK 100 100 010 - 0
9 Power_On_Hours -O--CK 099 099 000 - 839
12 Power_Cycle_Count -O--CK 099 099 000 - 165
170 Unknown_Attribute -O--CK 100 100 010 - 0
171 Unknown_Attribute -O--CK 100 100 010 - 0
172 Unknown_Attribute -O--CK 100 100 010 - 0
173 Unknown_Attribute PO--CK 098 098 005 - 38
174 Unknown_Attribute -O--CK 099 099 000 - 8
178 Used_Rsvd_Blk_Cnt_Chip PO--C- 100 100 010 - 0
180 Unused_Rsvd_Blk_Cnt_Tot PO--C- 100 100 010 - 744
184 End-to-End_Error PO--CK 100 100 097 - 0
187 Reported_Uncorrect -O--CK 100 100 000 - 0
194 Temperature_Celsius -O--CK 065 031 000 - 35
199 UDMA_CRC_Error_Count -OSRCK 100 100 000 - 0
233 Media_Wearout_Indicator PO--C- 098 098 000 - 16458447
241 Total_LBAs_Written -O--CK 099 099 000 - 8903
242 Total_LBAs_Read -O--CK 099 099 000 - 978
249 Unknown_Attribute -O--CK 099 099 000 - 9728
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
Please let me know if you need any other details. Thanks.
Regards,
Arun.
Can you please help me understanding the following issues? Thanks very much
for your help in advance.
1. I have been primarily working on UNIX based servers, and we recently
decided to monitor the SMART metrics of our Windows systems as well. I
followed the INSTALL instructions as provided in the source tarball. Thus,
I installed MinGW gcc compiler and MSYS on my Windows System, and ran
"./configure" and "make" on the MSYS terminal, from the directory where the
source files were placed. It successfully created the 'smartctl' binary. I
copied it another folder under PATH, and tried running it. But, it failed
with a message stating that the dll libgcc_s_dw2-1.dll was not found in the
computer. As suggested in a discussion forum, I ran "./configure" as
"./configure LDFLAGS=-static", and this resolved the problem. Please let me
know if I missed something that could have caused this problem. Though I
was able to get the issue resolved, I wanted to be sure of whether I did
the right thing or not, since this was not discussed in the INSTALL
procedure shipped with the source ball.
2. Subsequently, when I run the 'smartctl' executable from my Windows
folder, I'm able to get the SMART metrics. But, unfortunately, the metric
names are reported as 'Unknown Attribute' and the threshold values are just
displayed as "---". Is it a normal behavior?
'smartctl -a' states that the particular device is not in smartctl
database. Could this be the reason for this output?
But, when I try the same on another disk device, I'm able to get the
attribute names and threshold values, though this disk is also reported as
not part of the smartctl database.
The outputs are as below for your reference:
D:\smart>smartctl --scan
/dev/sda -d ata # /dev/sda, ATA device
/dev/csmi0,4 -d ata # /dev/csmi0,4, ATA device
D:\smart>smartctl -a /dev/sda
smartctl 6.4 2015-06-04 r4109 [i686-pc-mingw32-win7(64)-sp1] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
Warning: Limited functionality due to missing admin rights
=== START OF INFORMATION SECTION ===
Device Model: SAMSUNG MZMLN256HCHP-000
Serial Number: S20BNXAGA05377
Firmware Version: EMT4
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: [No Information Found]
Local Time is: Fri Jun 17 11:39:14 2016 KST
SMART support is: Available - device has SMART capability.
Enabled status cached by OS, trying SMART RETURN STATUS
cmd.
SMART support is: Enabled
Warning! SMART Attribute Data Structure error: invalid SMART checksum.
Read SMART Thresholds failed: Function not implemented
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0xff) Offline data collection activity
is in a Vendor Specific state.
Auto Offline Data Collection:
Enabled.
Self-test execution status: ( 255) Self-test routine in progress...
150% of test remaining.
Total time to complete Offline
data collection: ( 9729) seconds.
Offline data collection
capabilities: (0x17) SMART execute Offline immediate.
Auto Offline data collection on/off
support.
Abort Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0xfa80) Does not save SMART data before
entering power-saving mode.
Error logging capability: (0xff) Error logging supported.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 112) minutes.
Extended self-test routine
recommended polling time: ( 7) minutes.
SMART Attributes Data Structure revision number: 0
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED
WHEN_FAILED RAW_VALUE
72 Unknown_Attribute 0x6100 000 114 --- Old_age
Offline - 115450398663680
115 Unknown_Attribute 0x6b00 000 086 --- Old_age
Offline - 128644672417536
109 Unknown_Attribute 0x6500 000 050 --- Old_age
Offline - 140791760269312
255 Unknown_Attribute 0x00ff 000 000 --- Pre-fail
Always - 211106232533248
233 Media_Wearout_Indicator 0x8017 250 255 --- Pre-fail
Always - 255
27 Unknown_Attribute 0x8003 248 255 --- Pre-fail
Always - 140818336018687
255 Unknown_Attribute 0x01ff 000 000 --- Pre-fail
Always - 212205743800320
233 Media_Wearout_Indicator 0x8017 250 255 --- Pre-fail
Always - 140818336018687
255 Unknown_Attribute 0x01ff 000 000 --- Pre-fail
Always - 212205743800320
233 Media_Wearout_Indicator 0x8017 250 255 --- Pre-fail
Always - 140742726184191
255 Unknown_Attribute 0x00ff 090 064 --- Pre-fail
Always - 281474976350228
255 Unknown_Attribute 0xffff 255 255 --- Pre-fail
Always - 255
193 Load_Cycle_Count 0x801e 250 255 --- Old_age
Always - 140857482154239
255 Unknown_Attribute 0x00ff 000 000 --- Pre-fail
Always - 211106232532992
164 Unknown_Attribute 0x800c 250 255 --- Old_age
Offline - 140742742376703
255 Unknown_Attribute 0x00ff 000 000 --- Pre-fail
Always - 70368744177664
212 Unknown_Attribute 0x8009 250 255 --- Pre-fail
Offline - 140742775419391
255 Unknown_Attribute 0x70ff 007 163 --- Pre-fail
Always - 247390115889164
160 Unknown_Attribute 0x800c 250 255 --- Old_age
Offline - 140747090272511
255 Unknown_Attribute 0xc0ff 036 233 --- Pre-fail
Always - 247390115889175
160 Unknown_Attribute 0x800c 250 255 --- Old_age
Offline - 140840184148223
255 Unknown_Attribute 0x00ff 042 057 --- Pre-fail
Always - 1099511136257
255 Unknown_Attribute 0xa0ff 081 060 --- Pre-fail
Always - 212205743669250
30 Unknown_Attribute 0x800a 250 255 --- Old_age
Always - 140857482154239
255 Unknown_Attribute 0xc0ff 036 233 --- Pre-fail
Always - 236394999611415
56 Unknown_Attribute 0x8001 248 255 --- Pre-fail
Offline - 140779709972735
Read SMART Error Log failed: Function requires admin rights
Read SMART Self-test Log failed: Function requires admin rights
Selective Self-tests/Logging not supported
D:\smart>smartctl -A -d ata -x /dev/csmi0,4
smartctl 6.4 2015-06-04 r4109 [i686-pc-mingw32-win7(64)-sp1] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: SAMSUNG MZMLN256HCHP-000
Serial Number: S20BNXAGA05377
LU WWN Device Id: 5 002538 d4067f166
Firmware Version: EMT41K0Q
User Capacity: 256,060,514,304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri Jun 17 11:56:36 2016 KST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is: Unavailable
APM feature is: Unavailable
Rd look-ahead is: Enabled
Write cache is: Enabled
ATA Security is: Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection:
Disabled.
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: ( 0) seconds.
Offline data collection
capabilities: (0x53) SMART execute Offline immediate.
Auto Offline data collection on/off
support.
Suspend Offline collection upon new
command.
No 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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 133) 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: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAGS VALUE WORST THRESH FAIL RAW_VALUE
5 Reallocated_Sector_Ct PO--CK 100 100 010 - 0
9 Power_On_Hours -O--CK 099 099 000 - 839
12 Power_Cycle_Count -O--CK 099 099 000 - 165
170 Unknown_Attribute -O--CK 100 100 010 - 0
171 Unknown_Attribute -O--CK 100 100 010 - 0
172 Unknown_Attribute -O--CK 100 100 010 - 0
173 Unknown_Attribute PO--CK 098 098 005 - 38
174 Unknown_Attribute -O--CK 099 099 000 - 8
178 Used_Rsvd_Blk_Cnt_Chip PO--C- 100 100 010 - 0
180 Unused_Rsvd_Blk_Cnt_Tot PO--C- 100 100 010 - 744
184 End-to-End_Error PO--CK 100 100 097 - 0
187 Reported_Uncorrect -O--CK 100 100 000 - 0
194 Temperature_Celsius -O--CK 065 031 000 - 35
199 UDMA_CRC_Error_Count -OSRCK 100 100 000 - 0
233 Media_Wearout_Indicator PO--C- 098 098 000 - 16458447
241 Total_LBAs_Written -O--CK 099 099 000 - 8903
242 Total_LBAs_Read -O--CK 099 099 000 - 978
249 Unknown_Attribute -O--CK 099 099 000 - 9728
||||||_ K auto-keep
|||||__ C event count
||||___ R error rate
|||____ S speed/performance
||_____ O updated online
|______ P prefailure warning
Please let me know if you need any other details. Thanks.
Regards,
Arun.