smartmontools/grep Load_Cycle

Riconoscimento, installazione e configurazione delle periferiche.
Scrivi risposta
Avatar utente
vmaxhenry
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 484
Iscrizione: domenica 19 febbraio 2006, 13:19
Desktop: gnome
Distribuzione: Ubuntu 16.04.2 LTS x86_64
Sesso: Maschile

smartmontools/grep Load_Cycle

Messaggio da vmaxhenry »

Ciao a tutti,
Ero incuriosito di vedere lo stato dei miei dischi rigidi.
Ho installato quindi "smartmontools" e come da wiki ho lanciato: "sudo smartctl -a /dev/sda | grep Load_Cycle_Count && sleep 300 && sudo smartctl -a /dev/sda | grep Load_Cycle_Count".
Con sorpresa ho notato che da terminale non mi restituiva alcun output.
Ho dato quindi "smartctl -a /dev/sda" e mi sono apparse tutte e quattro le normali sezioni monitorate da SMART.
Tutto sembra a posto tranne il fatto che nella terza sezione dove ci sono i parametri interni monitorati come ad es.Spin_Up_Time,Start_Stop_Count ,Reallocated_Sector_Ct ecc...non c'è quello che mi interessava di più cioè "Load_Cycle_Count".
Su entrambi i dischi (uno sata e l'altro IDE) non mi fa il monitoraggio di questo parametro.
Qualcuno da dirmi il perchè?

Grazie (b2b)
paologab
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 367
Iscrizione: mercoledì 20 agosto 2008, 9:35
Località: Milano

Re: smartmontools/grep Load_Cycle

Messaggio da paologab »

ciao,
credo dipenda dal produttore del disco e magari dalle versioni di smart, piuttosto che dal programma,
io ho un samsung nuovo e un maxtor di qualche anno e le info sche sputa smartmontool sono abbastanza diverse
Avatar utente
vmaxhenry
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 484
Iscrizione: domenica 19 febbraio 2006, 13:19
Desktop: gnome
Distribuzione: Ubuntu 16.04.2 LTS x86_64
Sesso: Maschile

Re: smartmontools/grep Load_Cycle

Messaggio da vmaxhenry »

A Te cosa ti restituisce il comando dal wiki:"sudo smartctl -a /dev/sda | grep Load_Cycle_Count && sleep 300 && sudo smartctl -a /dev/sda | grep Load_Cycle_Count"?
:-[
paologab
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 367
Iscrizione: mercoledì 20 agosto 2008, 9:35
Località: Milano

Re: smartmontools/grep Load_Cycle

Messaggio da paologab »

stasera provo e te lo posto
paologab
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 367
Iscrizione: mercoledì 20 agosto 2008, 9:35
Località: Milano

Re: smartmontools/grep Load_Cycle

Messaggio da paologab »

il samsung (SATA, quello più nuovo) esce subito senza restituire nulla
su questo c'è SO, dati utenti e partizioni per dati

il maxtor (il più vecchiotto, ATA133) usato per backup e per partizione di swap dà questo

Codice: Seleziona tutto

paolo@desktop:~$ sudo smartctl -a /dev/sdb | grep Load_Cycle_Count && sleep 300 && sudo smartctl -a /dev/sdb | grep Load_Cycle_Count
193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always       -       0
ubuntu 8.10 64bit

ma a che serve sta cosa?
Avatar utente
vmaxhenry
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 484
Iscrizione: domenica 19 febbraio 2006, 13:19
Desktop: gnome
Distribuzione: Ubuntu 16.04.2 LTS x86_64
Sesso: Maschile

Re: smartmontools/grep Load_Cycle

Messaggio da vmaxhenry »

Da wiky: http://wiki.ubuntu-it.org/Hardware/Disp ... ntoTestina
Volevo verificare anche io che fosse tutto ok come hai tu ma sembra per me impossibile :-[ :-[
Se qualcuno ha da suggerire qualcosa........ (b2b)

Codice: Seleziona tutto

enrico@cambusa:~$ sudo  smartctl -a /dev/sdb
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     MAXTOR STM3160815AS
Serial Number:    5RA8830Z
Firmware Version: 4.AAB
User Capacity:    160,041,885,696 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Thu Jan  8 20:10:09 2009 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:  (0x82)	Offline data collection activity
					was completed without error.
					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: 		 ( 430) 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: 	 (  54) minutes.

SMART Attributes Data Structure revision number: 10
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   253   006    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       27
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   069   060   030    Pre-fail  Always       -       8398384
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       275
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       27
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   068   065   045    Old_age   Always       -       32 (Lifetime Min/Max 23/33)
194 Temperature_Celsius     0x0022   032   035   000    Old_age   Always       -       32 (0 22 0 0)
195 Hardware_ECC_Recovered  0x001a   080   076   000    Old_age   Always       -       91333653
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   100   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1

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.
Ultima modifica di vmaxhenry il giovedì 8 gennaio 2009, 20:12, modificato 1 volta in totale.
paologab
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 367
Iscrizione: mercoledì 20 agosto 2008, 9:35
Località: Milano

Re: smartmontools/grep Load_Cycle

Messaggio da paologab »

qui sotto ti metto i miei. Probabilmente ogni produttore sceglie cosa rendere monitorabile

samsung con 4 mesi di vita

Codice: Seleziona tutto

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   074   074   011    Pre-fail  Always       -       8500
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       435
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   253   253   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   100   100   015    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       271
 10 Spin_Retry_Count        0x0033   100   100   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0012   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       435
 13 Read_Soft_Error_Rate    0x000e   100   100   000    Old_age   Always       -       0
183 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
184 Unknown_Attribute       0x0033   100   100   099    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   084   069   000    Old_age   Always       -       16 (Lifetime Min/Max 13/16)
194 Temperature_Celsius     0x0022   080   066   000    Old_age   Always       -       20 (Lifetime Min/Max 13/20)
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       272066
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x000a   100   100   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   253   253   000    Old_age   Always       -       0

[/size]

e maxtor con qualche anno

Codice: Seleziona tutto

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
  3 Spin_Up_Time            0x0027   203   202   063    Pre-fail  Always       -       16298
  4 Start_Stop_Count        0x0032   251   251   000    Old_age   Always       -       3978
  5 Reallocated_Sector_Ct   0x0033   253   253   063    Pre-fail  Always       -       0
  6 Read_Channel_Margin     0x0001   253   253   100    Pre-fail  Offline      -       0
  7 Seek_Error_Rate         0x000a   253   252   000    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0027   253   247   187    Pre-fail  Always       -       39116
  9 Power_On_Minutes        0x0032   244   244   000    Old_age   Always       -       17h+52m
 10 Spin_Retry_Count        0x002b   253   252   157    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x002b   253   252   223    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   243   243   000    Old_age   Always       -       4067
192 Power-Off_Retract_Count 0x0032   253   253   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0032   253   253   000    Old_age   Always       -       27
195 Hardware_ECC_Recovered  0x000a   253   252   000    Old_age   Always       -       1189
196 Reallocated_Event_Count 0x0008   253   253   000    Old_age   Offline      -       0
197 Current_Pending_Sector  0x0008   253   253   000    Old_age   Offline      -       0
198 Offline_Uncorrectable   0x0008   253   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0008   199   199   000    Old_age   Offline      -       0
200 Multi_Zone_Error_Rate   0x000a   253   252   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   253   252   000    Old_age   Always       -       11
202 TA_Increase_Count       0x000a   253   252   000    Old_age   Always       -       0
203 Run_Out_Cancel          0x000b   253   252   180    Pre-fail  Always       -       5
204 Shock_Count_Write_Opern 0x000a   253   252   000    Old_age   Always       -       0
205 Shock_Rate_Write_Opern  0x000a   253   252   000    Old_age   Always       -       0
207 Spin_High_Current       0x002a   253   252   000    Old_age   Always       -       0
208 Spin_Buzz               0x002a   253   252   000    Old_age   Always       -       0
209 Offline_Seek_Performnce 0x0024   195   191   000    Old_age   Offline      -       0
 99 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
100 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
101 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
Ultima modifica di paologab il venerdì 9 gennaio 2009, 8:16, modificato 1 volta in totale.
Avatar utente
vmaxhenry
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 484
Iscrizione: domenica 19 febbraio 2006, 13:19
Desktop: gnome
Distribuzione: Ubuntu 16.04.2 LTS x86_64
Sesso: Maschile

Re: smartmontools/grep Load_Cycle

Messaggio da vmaxhenry »

Grazie della consulenza. (b2b)
Una cosa però trovo strana tra i toui dischi e il mio che ha solo 20gg di vita:

7 Seek_Error_Rate        0x000f  069  060  030    Pre-fail  Always      -      8398384195
195 Hardware_ECC_Recovered  0x001a  080  076  000    Old_age  Always      -      91333653

Non è che stò invecchiando precocemente in qualche strano e a me insaputo modo il mio HD?
paologab
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 367
Iscrizione: mercoledì 20 agosto 2008, 9:35
Località: Milano

Re: smartmontools/grep Load_Cycle

Messaggio da paologab »

boh, per me è arabo, quasi

i pre fail diventano fail quando scendono sotto la soglia

per la voce 195 googleando qualcosa dovrebbe trovarsi
Avatar utente
templarios
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 523
Iscrizione: sabato 21 aprile 2007, 9:27
Località: bellinzona.

Re: smartmontools/grep Load_Cycle

Messaggio da templarios »

ciao
prova a vedere qui: http://affogandonellagranderete.blogspo ... ealth.html
è un interfaccia grafica per smart.
chi sa come interpretare i dati? quando ci si deve  preoccupare?
Nulla si crea, Nulla si distrugge, Tutto si trasforma.
La mente è come un paracadute. Funziona solo se si apre.
Campor
Prode Principiante
Messaggi: 1
Iscrizione: sabato 16 maggio 2009, 19:33

Re: smartmontools/grep Load_Cycle

Messaggio da Campor »

ciao a tutti!
Dopo aver fatto una scansione con smartmontools mi è uscita questa roba :o


=== START OF READ SMART DATA SECTION ===
SMART Error Log Version: 1
ATA Error Count: 214 (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.

Error 214 occurred at disk power-on lifetime: 1325 hours (55 days + 5 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 50 00 3f 97 02 e0  at LBA = 0x0002973f = 169791

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC  Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  42 00 00 3f 97 02 e0 00      03:06:16.686  READ VERIFY SECTOR(S) EXT
  42 00 00 3f 97 02 e0 00      03:06:13.593  READ VERIFY SECTOR(S) EXT
  b0 d8 45 01 4f c2 e0 00      03:06:13.532  SMART ENABLE OPERATIONS
  ef 03 45 01 00 00 e0 00      03:06:13.501  SET FEATURES [Set transfer mode]
  ef 03 0c 01 00 00 e0 00      03:06:13.471  SET FEATURES [Set transfer mode]

Error 213 occurred at disk power-on lifetime: 1325 hours (55 days + 5 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 50 00 3f 97 02 e0  at LBA = 0x0002973f = 169791

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC  Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  42 00 00 3f 97 02 e0 00      03:06:10.119  READ VERIFY SECTOR(S) EXT
  42 00 80 3f 97 02 e0 00      03:06:07.042  READ VERIFY SECTOR(S) EXT
  25 00 01 00 00 00 e0 00      03:06:07.022  READ DMA EXT
  b0 d8 45 01 4f c2 e0 00      03:06:06.962  SMART ENABLE OPERATIONS
  ef 03 45 01 00 00 e0 00      03:06:06.931  SET FEATURES [Set transfer mode]

Error 212 occurred at disk power-on lifetime: 1325 hours (55 days + 5 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 50 00 3f 97 02 e0  at LBA = 0x0002973f = 169791

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC  Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  42 00 00 3f 97 02 e0 00      03:06:03.543  READ VERIFY SECTOR(S) EXT
  42 00 00 3f 97 02 e0 00      03:06:00.453  READ VERIFY SECTOR(S) EXT
  b0 d8 45 01 4f c2 e0 00      03:06:00.392  SMART ENABLE OPERATIONS
  ef 03 45 01 00 00 e0 00      03:06:00.361  SET FEATURES [Set transfer mode]
  ef 03 0c 01 00 00 e0 00      03:06:00.331  SET FEATURES [Set transfer mode]

Error 211 occurred at disk power-on lifetime: 1325 hours (55 days + 5 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 50 00 3f 97 02 e0  at LBA = 0x0002973f = 169791

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC  Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  42 00 00 3f 97 02 e0 00      03:05:56.976  READ VERIFY SECTOR(S) EXT
  42 00 00 3f 97 02 e0 00      03:05:53.883  READ VERIFY SECTOR(S) EXT
  b0 d8 45 01 4f c2 e0 00      03:05:53.822  SMART ENABLE OPERATIONS
  ef 03 45 01 00 00 e0 00      03:05:53.791  SET FEATURES [Set transfer mode]
  ef 03 0c 01 00 00 e0 00      03:05:53.761  SET FEATURES [Set transfer mode]

enrico@enrico-desktop:~$ sudo smartctl -a /dev/sdb2  | grep Load_Cycle_Count
193 Load_Cycle_Count        0x0032  253  253  000    Old_age  Always      -      0


chi la sa interpretare perfavore? cosa sono questi errori? >:(
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: criceto45, tropie e 7 ospiti