PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Smart infos aus Platten an SCSI abfragen?



MaDDeePee
08.08.04, 16:42
Hallo Leute,

ich habe 4 IDE Platten (2x WD360GD & 2x WD400JB) die alle an raidkontrollern hängen und somit mit sda und sdb angesprochen werden. Gibt es irgendeine Möglichkeit, smartctl darauf anzuwenden? Ich würde gerne mal die Temperaturen auslesen....Es klappt ja noch nichtmal hdparm...

Sonny
04.11.04, 08:41
das geht mit ide und scsi:

smartctl -a /dev/sda
smartctl version 5.30 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: SEAGATE ST373307LC Version: 0007
Serial number: 3HZ65H610000748S05
Device type: disk
Transport protocol: Parallel SCSI (SPI-4)
Local Time is: Thu Nov 4 09:40:55 2004 CET
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK
Current Drive Temperature: 25 C
Drive Trip Temperature: 68 C

Vendor (Seagate) cache information
Blocks sent to initiator = 466855437
Blocks received from initiator = 1327998750


etc.

MaDDeePee
04.11.04, 11:14
Huch, merke ich auch gerade...ich war bisher der Meinung, dass es nicht geht?!? Hatte es schon mal versucht, aber anscheindend einen Fehler dabei gemacht...

Nagut,

Danke für deinen Beitrag! :D

Fedi
08.11.04, 09:01
Hallo,

gleiches Problem, andere Controller.

Kennt zufällig einer eine Methode zum Auslesen der Temperatur von SCSI-Platten an einem Adpatec ASR-2110S als i2o block-device?

Danke
Der Fedi

Sonny
11.11.04, 10:09
hat das überhaupt etwas mit dem Controller zu tun?

Fedi
11.11.04, 13:44
naja,
da smartmon nicht rennt und auf der HP und der hilfe nur vom 3ware gesprochen/geschrieben wird, gehe ich mal davon aus!

schliesslich macht der Raid-Controller aus den einzelnen Platten ja eine einzige...


CU
Der Fedi

Shutdown
11.11.04, 14:00
Wo wir schon mal bei so nem Thema sind würde mich glatt auch noch interessieren wie man die Temperaturen von SATA Platten auslesen kann (an einem SIL3112A falls wichtig) :rolleyes:

Shutdown

tictactux
11.11.04, 14:07
Wo wir schon mal bei so nem Thema sind würde mich glatt auch noch interessieren wie man die Temperaturen von SATA Platten auslesen kann (an einem SIL3112A falls wichtig) :rolleyes:

Suchfunktion "hddtemp". Es gibt aktuelle Threads dazu (mit S-ATA).
Gruss,
Wolfgang

Shutdown
11.11.04, 14:22
Also ich finde fast nichts wenn ich nach "hddtemp sata" oder "hddtemp s-ata" suche...
Und scheinbar mag mich hddtemp nicht sonderlich:


$ hddtemp /dev/sda
/dev/sda: ATA WDC WD360GD-00FN: /dev/sda: ATA WDC WD360GD-00FN: S.M.A.R.T. not available
$ hddtemp /dev/sdb
/dev/sdb: ATA SAMSUNG SP1614C : /dev/sdb: ATA SAMSUNG SP1614C : S.M.A.R.T. not available

Wie mache ich SMART eigentlich an? In meinem BIOS gibt es dazu keine Option... *grübel*

Shutdown

tictactux
11.11.04, 14:41
Also ich finde fast nichts wenn ich nach "hddtemp sata" oder "hddtemp s-ata" suche...
Und scheinbar mag mich hddtemp nicht sonderlich:
Ich bezog mich darauf:
http://www.linuxforen.de/forums/showthread.php?t=158936&highlight=hddtemp
(habe gerade erst gesehen, daß Du da schon beteiligt bist ;) )

Ich habe keine persönliche Erfahrung mit S-ATA, mit SCSI/IDE-Platten
funktionierte hddtemp bei mir. Nicht alle Platten unterstützen das,
bzw. werden unterstützt (ich seh bei Dir WDxxx, da krieg ich immer so ein
mulmiges Gefühl ;) ).
Einträge kann man in der Datenbank von hddtemp (bei mir /etc/hddtemp.db) editieren/anlegen.
Die Doku zu smartd, smartctl,smartd.conf sollte reichen
(unabhängig davon, ob SMART im BIOS aktiviert).

Gruss,
Wolfgang

Shutdown
11.11.04, 14:45
Warum kriegst du WD360GD ein mulmiges Gefühl? Ein :eek: wäre ja noch zu verstehen, aber mulmiges Gefühl? ...
Falls dir WD360GD nichts sagt: Stichwort "Raptor" :D
10 kRPM, für 24/7-Betrieb ausgelegt, soll so gut wie ne SCSI-Platte sein (ja ich habe über 110 € für 36,7 GB bezahlt)

Die WD360GD und die SP1614C sind beide in der Datenbank von hddtemp drin gewesen, aber ich kriege eben nur die SMART-Meldung...

Shutdown

tictactux
11.11.04, 15:02
Warum kriegst du WD360GD ein mulmiges Gefühl? Ein :eek: wäre ja noch zu verstehen, aber mulmiges Gefühl? ...
Falls dir WD360GD nichts sagt: Stichwort "Raptor" :D
10 kRPM, für 24/7-Betrieb ausgelegt, soll so gut wie ne SCSI-Platte sein (ja ich habe über 110 € für 36,7 GB bezahlt)
Die WD360GD und die SP1614C sind beide in der Datenbank von hddtemp drin gewesen, aber ich kriege eben nur die SMART-Meldung...

Ich kenne die Raptor-Serie nur vom Namen, ist mir aber bekannt daß sie
viel versprechen. In der Vergangenheit waren im SCSI-Bereich WD-Festplatten
und Controller (die 2-18 GB-Generationen) so ziemlich das letzte ...
(unvollständige SCSI-Implementationen, u.s.w.). Die IDE-Platten jener
Zeit von WD (Caviar) haben auch etliche unrühmliche Spuren in den
Linux-Kernelquellen hinterlassen ...

Mach mal:
smartctl -s on /dev/sda
smartctl -i /dev/sda

Kommt da was ?

Gruss,
Wolfgang

EDIT:
smartctl -a /dev/sda
liefert dann halt alles (incl. Temperatur), gerade noch getestet
(allerdings mit Fujitsu MAN SCSI Platten)

Shutdown
11.11.04, 15:25
Ich habe unter folgender URL Patches entdeckt um dem libata-Treiber SMART-Funktionen hinzuzufügen: http://www.webservertalk.com/message448905.html

Nach einspielen der 3 dafür benötigten Patches kann ich jetzt mittels smartctl einiges aus meinen Platten rausholen:


$ smartctl -a -d ata /dev/sda
smartctl version 5.33 [i686-pc-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model: WDC WD360GD-00FNA0
Serial Number: WD-WMAH91414355
Firmware Version: 35.06K35
User Capacity: 37,019,566,080 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 6
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Thu Nov 11 16:23:23 2004 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: (1572) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
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.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 28) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.

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 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0007 083 082 021 Pre-fail Always - 2350
4 Start_Stop_Count 0x0032 100 100 040 Old_age Always - 182
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 426
10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 182
194 Temperature_Celsius 0x0022 118 253 000 Old_age Always - 25
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0012 200 200 000 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 200 125 051 Pre-fail Offline - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

und


$ smartctl -a -d ata /dev/sdb
smartctl version 5.33 [i686-pc-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model: SAMSUNG SP1614C
Serial Number: 0696J1FX203599
Firmware Version: SW100-27
User Capacity: 160,041,885,696 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 0
Local Time is: Thu Nov 11 16:24:24 2004 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: (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: (6000) seconds.
Offline data collection
capabilities: (0x1b) 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.
No 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.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 100) minutes.

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 0x000f 100 100 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0007 064 064 000 Pre-fail Always - 6144
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 646
5 Reallocated_Sector_Ct 0x0033 100 100 011 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 100 100 051 Pre-fail Always - 0
8 Seek_Time_Performance 0x0025 100 100 000 Pre-fail Offline - 0
9 Power_On_Half_Minutes 0x0032 100 100 000 Old_age Always - 542h+49m
10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 453
194 Temperature_Celsius 0x0022 142 118 000 Old_age Always - 32
195 Hardware_ECC_Recovered 0x001a 001 001 000 Old_age Always - 84909082
196 Reallocated_Event_Count 0x0012 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0033 100 100 011 Pre-fail Always - 0
198 Offline_Uncorrectable 0x0030 100 100 011 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0036 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x000f 100 100 051 Pre-fail Always - 0
201 Soft_Read_Error_Rate 0x000f 100 100 051 Pre-fail Always - 0

SMART Error Log Version: 1
ATA Error Count: 149 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Temperaturen konnte ich in den Ausgabe aber nicht entdecken; hddtemp verweigert auch weiterhin den Dienst.

Shutdown

tictactux
11.11.04, 15:53
WD bleibt seiner Tradition treu ;) :
> ATA Standard is: Exact ATA specification draft version not indicated

Also bei meiner Systemplatte sieht das so aus:
----------------------------
Device: FUJITSU MAH3182MC Version: 0114
Temperature Warning Enabled
SMART Health Status: OK

Current Drive Temperature: 30 C
Drive Trip Temperature: 65 C
----------------------------

Anders gesagt, Temperatur-Monitoring via SMART scheint bei
Deiner Konfiguration nicht zu gehen - kann sein, daß die
SCSI-Emulation über SATA das (noch?) nicht unterstützt.

Da hddtemp diese Informationen bei SCSI verwendet, sieht's
schlecht aus...

EDIT: hast Du smartctl -a auch ohne "-d ata", bzw. mit "-d scsi"
abgefragt ?

Shutdown
11.11.04, 16:08
Klappt mit -d SCSI und ohne -d auch nicht, da angenommen wird, dass SMART nicht unterstützt wird...trotzdem danke!
Ich warte jetzt erstmal ab was uns Kernel 2.6.10 bringt, evtl ist das ganze bis dahin ja ausgereifter :rolleyes:

Shutdown