2 Summary: smartmontools
- for monitoring S.M.A.R.T. disks and devices
3 Summary(cs
): smartmontools
- pro monitorování S.M.A.R.T. diskù a zaøízení
4 Summary(de
): smartmontools
- zur Überwachung von S.M.A.R.T.
-Platten und
-Geräten
5 Summary(es
): smartmontools
- para el seguimiento de discos y dispositivos S.M.A.R.T.
6 Summary(fr
): smartmontools
- pour le suivi des disques et instruments S.M.A.R.T.
7 Summary(pt
): smartmontools
- para monitorar discos e dispositivos S.M.A.R.T.
8 Summary(it
): smartmontools
- per monitare dischi e dispositivi S.M.A.R.T.
9 Summary(pl
): Monitorowanie i kontrola dysków u¿ywaj±æ S.M.A.R.T.
13 Group: Applications
/System
14 Group(de
): Applikationen
/System
15 Group(es
): Aplicaciones
/Sistema
16 Group(fr
): Applications
/Système
17 Group(pt
): Aplicativos
/Sistema
18 Group(it
): Applicazioni
/Sistemi
19 Source0: %{name}-%{version}.tar.gz
20 URL: http
://smartmontools.sourceforge.net
/
21 Prereq
: /sbin
/chkconfig
22 BuildRoot: %{_tmppath}/%{name}-%{version}-root
25 Obsoletes
: ucsc
-smartsuite
27 Packager: Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
29 %define redhat %
(test ! -f
/etc
/redhat
-release
; echo $?
)
30 %define redhat %
(test ! -f
/etc
/fedora
-release
; echo $?
)
31 %define mandrake %
(test ! -f
/etc
/mandrake
-release
; echo $?
)
32 %define suse %
(test ! -f
/etc
/SuSE
-release
; echo $?
)
34 # Source code can be found at:
35 # http://ftp1.sourceforge.net/smartmontools/smartmontools-%{version}-%{release}.tar.gz
37 # CVS ID of this file is:
38 # $Id: smartmontools.spec,v 1.167 2006/04/12 17:39:32 ballen4705 Exp $
40 # Copyright (C) 2002-6 Bruce Allen <smartmontools-support@lists.sourceforge.net>
41 # Home page: http://smartmontools.sourceforge.net/
43 # This program is free software; you can redistribute it and/or modify it
44 # under the terms of the GNU General Public License as published by the Free
45 # Software Foundation; either version 2, or (at your option) any later
48 # You should have received a copy of the GNU General Public License (for
49 # example COPYING); if not, write to the Free Software Foundation, Inc., 675
50 # Mass Ave, Cambridge, MA 02139, USA.
52 # This code was originally developed as a Senior Thesis by Michael Cornwell
53 # at the Concurrent Systems Laboratory (now part of the Storage Systems
54 # Research Center), Jack Baskin School of Engineering, University of
55 # California, Santa Cruz. http://ssrc.soe.ucsc.edu/
59 smartmontools controls and monitors storage devices using the
60 Self
-Monitoring
, Analysis and Reporting Technology System
(S.M.A.R.T.
)
61 built into ATA and SCSI Hard Drives. This is used to check the
62 reliability of the hard drive and to predict drive failures. The suite
63 is derived from the smartsuite package
, and contains two utilities. The
64 first
, smartctl
, is a
command line utility designed to perform simple
65 S.M.A.R.T. tasks. The second
, smartd
, is a daemon that periodically
66 monitors smart status and reports errors to syslog. The package is
67 compatible with the ATA
/ATAPI
-5 specification. Future releases will be
68 compatible with the ATA
/ATAPI
-6 andATA
/ATAPI
-7 specifications. The
69 package is intended to incorporate as much "vendor specific" and
70 "reserved" information as possible about disk drives. man smartctl and
71 man smartd will provide more information. This RPM file is compatible
72 with all RedHat releases back to at least
6.2 and should work OK on any
73 modern linux distribution. The most recent versions of this package and
74 additional information can be found at the
URL:
75 http
://smartmontools.sourceforge.net
/
78 smartmontools øídí a monitorují zaøízení pro ukládání dat za pou¾ití
79 technologie automatického monitorování
, analýzy a hlá¹ení
80 (Self
-Monitoring
, Analysis and Reporting Technology System
-
81 S.M.A.R.T.
) vestavìného
do pevných diskù ATA a SCSI. Pou¾ívá se ke
82 kontrole pou¾itelnosti pevného disku a pøedvídání havárií diskù.
83 Nástroje jsou odvozeny od balíèku smartsuite a obsahují dva programy.
84 První
, smartctl
, je nástroj pro provádìní jednoduchých S.M.A.R.T. úloh
85 na pøíkazové øádce. Druhý
, smartd
, je démon
, který periodicky
86 monitoruje stav a hlásí chyby
do systémového protokolu. Balíèek je
87 kompatibilní se specifikací ATA
/ATAPI
-5. Dal¹í verze budou
88 kompatibilní se specifikacemi ATA
/ATAPI
-6 a ATA
/ATAPI
-7. Balíèek je
89 navr¾en tak
, aby pokryl co nejvíce polo¾ek s informacemi "závislé na
90 výrobci" a "rezervováno". Více informací získáte pomocí man smartctl a
91 man smartd. Tento RPM balíèek je kompatibilní se v¹emi verzemi RedHatu
92 a mìl by fungovat na v¹ech moderních distribucích Linuxu. Aktuální
93 verzi najdete na
URL http
://smartmontools.sourceforge.net
/
96 Die smartmontools steuern und überwachen Speichergeräte mittels des
97 S.M.A.R.T.
-Systems
(Self
-Monitoring
, Analysis and Reporting Technology
,
98 Technologie zur Selbst
-Überwachung
, Analyse und Berichterstellung
), das
99 in ATA
- und SCSI
-Festplatten eingesetzt wird. Sie werden benutzt
, um
100 die Zuverlässigkeit der Festplatte zu prüfen und Plattenfehler
101 vorherzusagen. Die Suite wurde vom smartsuite
-Paket abgeleitet und
102 enthält zwei Dienstprogramme. Das erste
, smartctl
, ist ein
103 Kommandozeilentool
, das einfache S.M.A.R.T. Aufgaben ausführt. Das
104 zweite
, smartd
, ist ein Daemon
, der periodisch den S.M.A.R.T.
-Status
105 überwacht und Fehler ins Syslog protokolliert. Das Paket ist zur
106 ATA
/ATAPI
-5 Spezifikation kompatibel. Zukünftige Versionen werden auch
107 die ATA
/ATAPI
-6 und ATA
/ATAPI
-7 Spezifikationen umsetzen. Das Paket
108 versucht
, so viele "herstellerspezifische" und "reservierte" Information
109 über Plattenlaufwerke wie möglich bereitzustellen. man smartctl und man
110 smartd liefern mehr Informationen über den Einsatz. Dieses RPM ist zu
111 allen RedHat
-Versionen ab spätestens
6.2 kompatibel und sollte unter
112 jedem modernen Linux arbeiten. Die aktuellsten Versionen dieses Pakets
113 und zusätzliche Informationen sind zu finden unter der
URL:
114 http
://smartmontools.sourceforge.net
/
117 smartmontools controla y hace el seguimiento de dispositivos de
118 almacenamiento usando el Self
-Monitoring
, Analysis and Reporting
119 Technology System
(S.M.A.R.T.
) incorporado en discos duros ATA y SCSI.
120 Es usado para asegurar la fiabilidad de discos duros y predecir averias.
121 El conjunto de programas proviene del conjunto smartsuite y contiene dos
122 utilidades. La primera
, smartctl
, es una utilidad
command-line hecha
123 para hacer operaciones S.M.A.R.T. sencillas. La segunda
, smartd
, es un
124 programa que periodicamente chequea el estatus smart e informa de
125 errores a syslog. Estos programas son compatibles con el sistema
126 ATA
/ATAPI
-5. Futuras versiones seran compatibles con los sistemas
127 ATA
/ATAPI
-6 y ATA
/ATAPI
-7. Este conjunto de programas tiene el
128 proposito de incorporar la mayor cantidad posible de informacion
129 reservada y especifica de discos duros. Los comandos 'man smartctl' y
130 'man smartd' contienen mas informacion. Este fichero RPM es compatible
131 con todas las versiones de RedHat a partir de la
6.2 y posiblemente
132 funcionaran sin problemas en cualquier distribucion moderna de linux.
133 La version mas reciente de estos programas ademas de informacion
134 adicional pueden encontrarse en
: http
://smartmontools.sourceforge.net
/
137 smartmontools contrôle et fait le suivi de périphériques de stockage
138 utilisant le système Self
-Monitoring
, Analysis and Reporting
139 Technology
(S.M.A.R.T
) intégré dans les disques durs ATA et SCSI. Ce
140 système est utilisé pour vérifier la fiabilité du disque dur et prédire
141 les défaillances du lecteur. La suite logicielle dérive du paquet
142 smartsuite et contient deux utilitaires. Le premier
, smartctl
,
143 fonctionne en ligne de commande et permet de réaliser des tâches
144 S.M.A.R.T. simples. Le second
, smartd
, est un démon qui fait
145 périodiquement le suivi du statut smart et transmet les erreurs au
146 syslog. Ce paquet est compatible avec la spécification ATA
/ATAPI
-5.
147 Les prochaines versions seront compatibles avec les spécifications
148 ATA
/ATAPI
-6 et ATA
/ATAPI
-7. Ce paquet tente d'incorporer le plus
149 d'informations possible sur les disques durs qu'elles soient spécifiques
150 au constructeur
("vendor specific"
) ou réservées
("reserved"
). man
151 smartctl et man smartd donnent plus de renseignements. Ce fichier RPM
152 est compatible avec toutes les versions de RedHat v6.2 et ultérieures
,
153 et devrait fonctionner sur toutes les distributions récentes de Linux.
154 Les dernières versions de ce paquet et des informations supplémentaires
155 peuvent être trouvées à l'adresse
URL:
156 http
://smartmontools.sourceforge.net
/
159 smartmontools controla e monitora dispositivos de armazenamento
160 utilizando o recurso Self
-Monitoring
, Analysis and Reporting Technology
161 System
(S.M.A.R.T.
) integrado nos discos rígidos ATA e SCSI
, cuja
162 finalidade é verificar a confiabilidade
do disco rígido e prever falhas
163 da unidade. A suite é derivada
do pacote smartsuite
, e contém dois
164 utilitários. O primeiro
, smartctl
, é um utilitário de linha de comando
165 projetado para executar tarefas simples de S.M.A.R.T. O segundo
,
166 smartd
, é um daemon que monitora periodicamente estados
do smart e
167 reporta erros para o syslog. O pacote é compatível com a especificação
168 ATA
/ATAPI
-5. Futuras versões serão compatíveis com as especificações
169 ATA
/ATAPI
-6 e ATA
/ATAPI
-7. O pacote pretende incorporar o maior número
170 possível de informações "específicas
do fabricante" e "reservadas" sobre
171 unidades de disco. man smartctl e man smartd contém mais informações.
172 Este arquivo RPM é compatível com todas as versões
do RedHat a partir da
173 6.2 e deverá funcionar perfeitamente em qualquer distribuição moderna
do
174 Linux. As mais recentes versões deste pacote e informações adicionais
175 podem ser encontradas em http
://smartmontools.sourceforge.net
/
178 smartmontools controlla e monitora dischi che usano il "Self
-Monitoring
,
179 Analysis and Reporting Technology System"
(S.M.A.R.T.
), in hard drive
180 ATA e SCSI. Esso è usato per controllare l'affidabilità dei drive e
181 predire i guasti. La suite è derivata dal package smartsuite e contiene
182 due utility. La prima
, smartctl
, è una utility a linea di comando
183 progettata per eseguire semplici task S.M.A.R.T.. La seconda
, smartd
, è
184 un daemon che periodicamente monitora lo stato di smart e riporta errori
185 al syslog. Il package è compatibile con le specifiche ATA
/ATAPI
-6 e
186 ATA
/ATAPI
-7. Il package vuole incorporare tutte le possibili
187 informazioni riservate e "vendor specific" sui dischi. man smartctl e
188 man smartd danno più informazioni. Questo file RPM è compatibile con
189 tutte le release di RedHat
, almeno dalla
6.2 e dovrebbe funzionare bene
190 su ogni moderna distribuzione di linux. Le versioni più recenti di
191 questo package e informazioni addizionali possono essere trovate al sito
192 http
://smartmontools.sourceforge.net
/
195 Pakiet zawiera dwa programy
(smartctl oraz smartd
) do kontroli i
196 monitorowania systemów przechowywania danych za pomoc± S.M.A.R.T
-
197 systemu wbudowanego w wiêkszo¶æ nowych dysków ATA oraz SCSI. Pakiet
198 pochodzi od oprogramowania smartsuite i wspiera dyski ATA
/ATAPI
-5.
200 # The following sections are executed by the SRPM file
210 rm -rf $RPM_BUILD_ROOT
213 rm -f examplescripts
/Makefile
*
215 mkdir -p $RPM_BUILD_ROOT
%{_defaultdocdir}
216 mv $RPM_BUILD_ROOT
/usr
/share
/doc
/%{name}-%{version} $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
217 ln
-s ..
/..
/etc
/rc.d
/init.d
/smartd $RPM_BUILD_ROOT
%{_sbindir}/rcsmartd
221 %defattr(-,root
,root
)
222 %attr(755,root
,root
) %{_sbindir}/smartd
223 %attr(755,root
,root
) %{_sbindir}/smartctl
225 %attr(755,root
,root
) %{_sbindir}/rcsmartd
227 %attr(755,root
,root
) /etc
/rc.d
/init.d
/smartd
228 %attr(644,root
,root
) %{_mandir}/man8
/smartctl
.8*
229 %attr(644,root
,root
) %{_mandir}/man8
/smartd
.8*
230 %attr(644,root
,root
) %{_mandir}/man5
/smartd.conf
.5*
231 %doc AUTHORS CHANGELOG COPYING INSTALL NEWS README TODO WARNINGS smartd.conf examplescripts
232 %config(noreplace
) %{_sysconfdir}/smartd.conf
235 rm -rf $RPM_BUILD_ROOT
237 rm -rf
%{_builddir}/%{name}-%{version}
239 # The following are executed only by the binary RPM at install/uninstall
241 # since this installs the gzipped documentation files, remove
242 # non-gzipped ones of the same name.
244 # run before installation. Passed "1" the first time package installed, else a larger number
246 if [ -f
/usr
/share
/man
/man8
/smartctl
.8 ] ; then
247 echo "You MUST delete
(by hand
) the outdated file
/usr
/share
/man
/man8
/smartctl
.8 to
read the new manual page
for smartctl."
249 if [ -f
/usr
/share
/man
/man8
/smartd
.8 ] ; then
250 echo "You MUST delete
(by hand
) the outdated file
/usr
/share
/man
/man8
/smartd
.8 to
read the new manual page
for smartd."
252 if [ -f
/usr
/share
/man
/man5
/smartd.conf
.5 ] ; then
253 echo "You MUST delete
(by hand
) the outdated file
/usr
/share
/man
/man5
/smartd.conf
.5 to
read the new manual page
for smartd.conf"
256 if [ ! -f
/etc
/smartd.conf
]; then
257 echo "Note that you can use a configuration file
/etc
/smartd.conf to control the"
258 echo "startup behavior of the smartd daemon. See man
8 smartd
for details."
261 # run after installation. Passed "1" the first time package installed, else a larger number
263 # if smartd is already running, restart it with the new daemon
264 if [ -f
/var
/lock
/subsys
/smartd
]; then
265 /etc
/rc.d
/init.d
/smartd restart
1>&2
266 echo "Restarted smartd services"
268 # else tell the user how to start it
269 echo "Run \"
/etc
/rc.d
/init.d
/smartd start\" to start smartd service now."
272 # Now see if we should tell user to set service to start on boot
273 /sbin
/chkconfig
--list smartd
> /dev
/null
2> /dev
/null
276 if [ $printmessage
-ne
0 ] ; then
277 echo "Run \"
/sbin
/chkconfig
--add smartd\"
, to start smartd service on system boot"
279 echo "smartd will
continue to start up on system boot"
283 # run before uninstallation. Passed zero when the last version uninstalled, else larger
286 # if uninstalling the final copy, stop and remove any links
287 if [ "$
1"
= "
0"
]; then
288 if [ -f
/var
/lock
/subsys
/smartd
]; then
289 /etc
/rc.d
/init.d
/smartd stop
1>&2
290 echo "Stopping smartd services"
293 # see if any links remain, and kill them if they do
294 /sbin
/chkconfig
--list smartd
> /dev
/null
2> /dev
/null
297 if [ $notlinked
-eq
0 ]; then
298 /sbin
/chkconfig
--del smartd
299 echo "Removing chkconfig links to smartd boot
-time startup scripts"
303 # run after uninstallation. Passed zero when the last version uninstalled, else larger
306 %define date %
(echo `LC_ALL
="C" date
+"
%a %b %d %Y"`
)
308 # Maintainers / Developers Key:
310 # [EB] Erik Inge Bolsø
311 # [SB] Stanislav Brabec
315 # [CF] Christian Franke
316 # [GF] Guilhem Frézou
317 # [DG] Douglas Gilbert
318 # [GG] Guido Guenther
322 # [EM] Eduard Martinescu
323 # [FM] Frédéric L. W. Meunier
325 # [SS] Sergey Svishchev
327 # [LW] Leon Woestenberg
328 # [RZ] Richard Zybert
332 * Wed Apr
12 2006 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
333 [BA
] Update copyright dates to
2006.
334 [DG
] [SCSI
] Loosen sanity check on Seagate
/Hitachi factory information
335 log page so it is not skipped on recent Seagate SCSI disks.
336 [CF
] Added
command 'smartd
-q showtests' to list
test schedules.
337 [CF
] Added
command 'smartctl
-P showall MODEL
[FIRMWARE
]' to list
338 database entries
for specific drives and firmware.
339 [PW
] Automatically
set -v
9,minutes and
-v
194,unknown
for Maxtor
340 DiamondMax D540X
-4G drives.
341 [DG
] [SCSI
] suppress various outputs when data fails sanity checks.
342 Correct 'last n error events' log page indexing.
343 [DG
] [SCSI
] changed smartctl
exit status to reflect any problems
in
344 the most recent
20 self
test logs
[Leandro Santi
]
345 [DG
] [SCSI
] Fix process
return value when scsiGetSmartData
() fails
346 in smartctl
[Leandro Santi
]
347 [BA
] Updated docs and error message to reflect Linux libata
348 support
for smartmontools starting with the
2.6.15 kernel
349 series. Also init script support
for the 'tinysofa' release.
350 [DG
] [SCSI
] Mask dpofua bit when changing mode pages. Fix failure
351 of 'smartctl
-l error'.
352 [EM
] Fixed a problem with FreeBSD and
3Ware 'twe' devices
353 [CF
] Fixed a regexp
in knowndrives table
, added regexp syntax check
354 via 'smartctl
-P showall'.
355 [CF
] Cygwin
& Windows
: Fixed memory leak
in function calling
356 IOCTL_IDE_PASS_THROUGH. Thanks to Fred Schmidt
for the problem
358 [CF
] Cygwin
: added cygrunsrv support and commands "
install"
, "remove"
359 and "status" to smartd.initd.
360 [SS
] Fix runtime problems on big
-engian NetBSD platforms
(patch provided
362 [CF
] Cygwin smartd
: Open smartd.conf
in textmode to allow use of
364 [CF
] Cygwin smartd
: Added option '
--service' to allow smartd running
365 as windows service via cygrunsrv. Useful
in conjunction with new
366 syslogd support added
in Cygwin
1.5.15.
367 [CF
] Windows
: Added patch to avoid output of non
-ascii timezone names.
368 [EM
] Incorporate various patches to provide TWE support and support
for
369 multiple
3Ware cards
, Power Check Support
, and FreeBSD
6.x support.
370 Thanks to Rudolf Cejka
, Frank Behrens
, and Jung
-uk Kim.
371 [DG
] Silence gcc
4.0.1 compile warning concerning the difference
in
372 "signedness"
in pointer assignments. Changes to SCSI code
374 [PW
] Additions to knowndrives table
: added missing drive from Quantum
375 Fireball Plus LM series
, added QUANTUM BIGFOOT TS10.0A
, added
376 ExcelStor J680 and J880
, added Western Digital Caviar RE
Serial ATA
377 series
, added missing drives from Western Digital Caviar SE series
,
378 added Seagate Momentus
4200.2 series
, added missing drives from
379 Maxtor DiamondMax
10 series
, added Fujitsu MHG and MHH series
, and
380 added Hitachi Travelstar
5K100 series.
381 [PW
] Additions to knowndrives table
: added Fujitsu MHU2100AT
, added
382 Fujitsu M1623TAU
, added missing drives from Seagate Barracuda
383 7200.8 series
, added Seagate Momentus
5400.2 series
, and added
384 QUANTUM FIREBALL CR8.4A.
385 [PW
] Additions to knowndrives table
: added missing drive from Maxtor
386 MaxLine II series
, added Maxtor DiamondMax
2880 Ultra ATA series
,
387 added Maxtor DiamondMax
17 VL series
, added Hitachi Deskstar
7K80
388 series
, and added Hitachi Deskstar
7K400 series.
389 [CF
] Windows
: Fixed unsupported 'smartctl
-X' on Win2000
/XP by using
390 IOCTL_IDE_PASS_THROUGH instead.
392 * Tue Apr
20 2005 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
393 [CF
] Cygwin
& Windows smartd
: Increased SCSI DEVICESCAN range
394 from ASPI adapter
0-3 to
0-9. Added diagnostic messages.
395 [CF
] Windows smartd
: Added ability to run .bat files via '
-M
exec'
397 [CF
] Cygwin smartd
: Added FreeConsole
() after fork
() to avoid hang
398 of terminated shell console window.
399 [DG
] [SCSI
] Add code so 'smartctl
-A' outputs the number of elements
400 in the grown defect list. When this number is increasing a
401 disk has problems. N.B. Similar logic should be added to smartd.
402 [CF
] Windows smartd
: Fixed event handling to allow start of another
403 smartd process when service is already running. Useful
for testing
404 service configuration changes
in debug mode.
405 [PW
] Added following drives to knowndrives table
: Western Digital Raptor
406 family
, Seagate Barracuda
7200.8 family
, Maxtor DiamondMax
2160
407 Ultra ATA and DiamondMax
10 families
, Hitachi Travelstar E7K60
408 family
, Seagate Medalist
17240, 13030, 10231, 8420, and
4310,
409 TOSHIBA MK4018GAP and MK6022GAX
, ExcelStor Technology J360
, and
410 Western Digital Caviar AC14300.
411 [PW
] Added missing Fujitsu MHTxxxxAT and Seagate Barracuda
7200.7 drives
412 to knowndrives table.
413 [PW
] Added QUANTUM FIREBALLP LM10.2 to knowndrives table. Thanks to
414 Mike Fleetwood
for submitting the patch.
415 [KS
] Solaris
/SPARC
: fixed not to disable automatic offline
test and
416 automatic save attributes incorrectly. Thanks to Roy Badami.
417 [BA
] Linux
: smartd init script now recognizes 'trustix' distro.
418 [DG
] [SCSI
] Medium and hardware errors were slipping through
419 unreported. Fix linux SCSI sense reporting via SG_IO ioctl.
420 [DG
] [SCSI
] Change lba of first failure
in selftest output to
421 decimal
(was hex
) to conform with ATA output.
422 [GK
] smartd
: Detect most self
-test failures even
if the hour counter
424 [BA
] smartctl
: list 'marvell' as option
if user give invalid
426 [CF
] Windows
: fixed SCSI timeout handling to allow long timeouts
428 [CF
] Fixed buffer overflow issues
in printone
() and safe_vsnprintf
()
429 which results
in crash on
-V option
(at least on Windows
).
430 [DG
] [SCSI
] Add explicit timeouts to INQUIRY and REQUEST SENSE
(that
431 were missed
in an earlier patch
). Could have impacted freebsd.
432 [DG
] When linux detects a sata_via_libata disk suggest that user try
433 '
-d ata'
(rather
then '
-d libata
). Anticipate kernel change.
434 [YD
] Added OS
/2 and eComStation platform support.
435 [PW
] Added Seagate U4 family
, Fujitsu MHJ and MHK families
, Seagate
436 Barracuda
5400.1, QUANTUM FIREBALLP KX27.3
, QUANTUM FIREBALLP KA10.1
,
437 and ExcelStor J340 to knowndrives table.
438 [DG
] [SCSI
] After report of Hitachi IC35L073UCDY10 disks locking up
439 on log page
0x7 (last n error events
), check log page
(and some
440 others
) is supported
(via log page
0x0) before probing.
441 [CF
] Added safe_v?snprintf
() for platforms using v?snprintf
()
442 with non standard behaviour on overflow
(Windows
, old Linux
)
443 [CF
] smartd
: Added message
if check power mode spins up disk.
444 [CF
] Windows
: Added support
for READ_LOG on WinNT4 using undocumented
445 pseudo SCSI
command via IOCTL_SCSI_PASS_THROUGH.
446 [CF
] smartd
: Added '
,q' option
for '
-n' directive to suppress 'skipping
447 checks' log message. This prevents a laptop disk from spinning up
448 due to this message. Thanks to Rob MacLachlan and Manfred Schwarb
449 for pointing out problem
& solution.
450 [CF
] Windows
: Added
function get_os_version_str
() to show OS flavor
in
452 [CF
] Windows
: Added
function ata_identify_is_cached
() to check
for outdated
453 SMART enabled bit
in identify data.
454 [CF
] Windows
: Added fix to prevent linkage of smartd specific win32 modules
456 [PW
] Added Fujitsu MPG3153AH
, Hitachi Endurastar J4K20
/N4K20
(formerly
457 DK23FA
-20J
), Seagate Momentus family
, and Maxtor Fireball
3 family
458 to knowndrives table.
459 [PW
] Added missing Maxtor DiamondMax
16, Seagate Barracuda ATA IV
, and
460 Western Digital Caviar WDxxxAA
/WDxxxBA drives to knowndrives table.
461 [CF
] Windows
: Added ATA check power mode
for smartd
-n directive.
462 [CF
] Windows
: Fixed use of new service status flag which causes hang
463 of smartd service on WinNT4.
464 [CF
] Windows
: Fixed error checking of IOCTL_IDE_PASS_THROUGH
(used
465 for READ_LOG on
2000/XP
). Added some diagnostic messages on
466 -r ataioctl
[,2]. Thanks to Manfred Schwarb
for bug report and testing.
467 [BA
] Fixed code bug that made it impossible to
enable SMART on
468 disks with failing health status. This would happen
if the
469 os_
*.c author made STATUS and STATUS_CHECK work the same way.
470 I have corrected this at a higher level
; we now handle the
471 case where STATUS and STATUS_CHECK are identical without
473 [LW
] Make os_linux.c
/marvell_command_interface
() always
return 0 on STATUS.
474 Needed
for a disk having bad SMART status.
475 [CF
] smartctl
: Added drive family printing.
476 [CF
] autogen.sh
: Allow automake
1.9, added message
if automake
478 [BA
] smartctl
: use locale
-specific separators
for printing disk
479 capacity. Also use AC_CHECK_HEADERS not AC_CHECK_HEADER
in
481 [BA
] clean
-up of
#include structure so that -V options to smartd
482 and smartctl work correctly. Please
, don't
#include header
483 files into other header files.
485 * Fri Sep
10 2004 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
486 [BA
] smartctl
: ATA disks
, if SMART ATTRIBUTE THRESHOLDS page has ID
487 errors with some Attributes having NULL IDs
, print Attribute
488 info anyway
(but issuing a warning to the user
).
489 [DG
] [SCSI
] Decode Last n error events log page
; decode track following
490 and positioning errors
[Hitachi
]
491 [EM
] FreeBSD
: another tweak
, __packed__ introduced
in Version 5.0040
492 [EM
] Cleaner tweak of fixes
for FreeBSD
4.x.
493 [EM
] Fix compilation errors under FreeBSD
4.x
, as it is still using
495 [EM
] Remove
3ware
/FreeBSD specific files and just include pieces we need
496 [DG
] Add logic
in smartd to detect
3ware
, Marvell controllers and SATA
497 disks behind an ATA
-SCSI simulator
(in Linux
). If specific device
498 types are not given and they are picked
in a general SCSI device
499 scan
then warn and skip.
500 [GG
] insert correct path to smartd into smartd's init script
501 [BA
] Changed all default paths
in documentation to reflect
/usr
/local as
502 default path prefix. This affects on
-line man pages
, primarily.
503 [DS
] Added support
for OpenBSD.
504 [BA
] Added another environment variable SMART_FULLMESSAGE
set by
505 the smartd mailing feature
, and modified examplescripts
/Example1
507 [BA
] Fixed potentially misleading messages of the form
:
509 [DG
] emit warning
if SATA disk detected using libata
in Linux
; then exit
510 [PW
] Added Seagate U10 family
, Hitachi Travelstar
7K60
, Fujitsu MHR2020AT
,
511 and QUANTUM FIREBALLP AS20.5 to knowndrives table.
512 [DG
] Detect
3ware and Marvell controllers from SCSI INQUIRY vendor string
513 and suggest usage of appropriate '
-d' argument
in smartctl.
514 [LW
] Tested the RELEASE_5_33_WITH_MARVELL_SUPPORT branch on
515 actual Marvell
88SX5041 hardware
, with success.
517 [BA
] Fixed nasty DEVICESCAN bug
518 [BA
] Checked
in RELEASE_5_33_WITH_MARVELL_SUPPORT branch with
519 some Marvell support.
520 [BA
] Additional modifications of Ed's controller scheme. Fixed
521 broken
3ware support under linux
, problems with scanning
522 devices
in smartd
, and other small problems.
523 [EM
] Minor change to FreeBSD inclusion of 'twe' include files. Add
524 code to check
if they exising
in /usr
/include
/sys to use those
525 in preference to ones added here
526 [EM
] Very preliminary support attempt
for 3Ware controllers under
527 FreeBSD. Also
, switched 'escalade_type
/escalade_port' to
528 'controler_type
/controller_port' and moved away from
529 'tryata
/tryscsi' to using new 'controller
*' variables to
530 determine which controller
type (ATA
/SCSI
/3Ware
) to use.
531 [GK
] Added initscript support
for Darwin.
532 [CF
] Windows smartd
: Added ability to run smartd as a windows service
,
533 including new commands "smartd
install ..." and "smartd remove"
534 to
install and remove the service registry entry.
535 [BA
] smartd
: warn user
if -s regexp regular expression contains
536 characters other than
0123456789.
*()|
+?
[-]{}:=SLCO since such
537 characters are 'suspicous' and may indicate a poorly formed
538 regexp. Extended regular expression gurus
: can this list be
540 [CF
] Fixed bug
in Windows smartd
: Missing close of config file when
541 configuration is reloaded by smartd daemon.
542 [CF
] Windows smartd
: Added mail warning feature using the "Blat"
543 (http
://blat.sourceforge.net
/) mailer as a default.
544 [PW
] Added Maxtor DiamondMax Plus
5120 Ultra ATA
33 series and TOSHIBA
545 MK3017GAP to knowndrives table.
546 [CF
] Added fixes to build smartmontools on old Linux systems
547 (libc
< 6, Kernel
2.0.x
).
548 [BA
] Added ATA minor version identity strings
for latest ATA specification
549 updates
: ATA
/ATAPI
-7 T13
1532D revision
4a and ATA
/ATAPI
-6 published
,
551 [PW
] Added Hitachi Travelstar
5K80 family and Fujitsu MHTxxxxAH family to
553 [EM
] Fix up compilation under FreeBSD
< 5.x
554 [PW
] Added QUANTUM FIREBALL EX3.2A and missing Western Digital Caviar SE
555 drives to knowndrives table.
556 [BA
] Modified Hitachi Travelstar
80GN family regexp
in drive database.
557 Thanks to
[GK
/CF
] for problem
& solution.
558 [GK
] Added os_darwin.
[ch
]
559 [PW
] Added the following drives to the knowndrives table
: IBM Travelstar
560 48GH
, 30GN
, and
15GN family
; IBM Deskstar
37GP and
34GXP family
;
561 Western Digital WDC WD272AA
; Maxtor DiamondMax D540X
-4D family
;
562 TOSHIBA MK2016GAP
, MK2018GAP
, MK2018GAS
, MK2023GAS
; and
563 QUANTUM FIREBALL ST3.2A
564 [BA
] smartd
/smarctl now print build HOST
/OS information as part
565 of startup slogan. This should
make it slightly easier to
566 read bug reports from users.
567 [RZ
] Fixed the DEVICESCAN to
do what it was supposed to
do - give
568 error message unless scanning is
in progress.
569 [BA
] Update documentation to describe
3ware character devices. Better
570 error detection
for missing
/malfunctioning devices behind
3ware
571 controllers. Now pack
3ware ioctl structures explicitly.
572 [BA
] For ATA devices that support LBA mode
, print capacity as part
574 [RZ
] Made DEVICESCAN quiet about non
-existing devices unless debug
576 [DG
] treat "unit attention" SCSI warning as try again
in some contexts
577 (test unit ready and mode sense
)
578 [BA
] on drives that store max
/min rather than min
/max
, get order
579 correct
in printing temp.
580 [BA
] fixed typo
in 'smartctl
-h' output. Thanks to Gabor Z. Papp.
581 [BA
] linux
: clean
-up to
3ware
/AMCC support
; dynamically create
582 or fix
/dev
/tw
[ae
][0-15] device node entries
if they don't
583 exist or are incorrect. One can now use the character devices
584 /dev
/twe
[0-15] OR
/dev
/sd?
for 3ware
6000/7000/8000 series
585 cards. One must use
/dev
/twa
[0-15] for 3ware
9000 series cards.
586 Note that selective self
-tests now work via
/dev
/tw
[ae
] devices.
587 Next step
: documentation.
588 [BA
] linux
: experimental "support"
for 3ware
/AMCC
9000 series
589 controllers that use the
3w
-9xxx driver. This will be
in a
590 state of flux
for a few days. Note that this requires the
591 character interface
/dev
/twa
[0-15].
592 [DG
] linux
: extend general SCSI OS interface to use the SG_IO ioctl. If
593 not available
, use the older SCSI_IOCTL_SEND_COMMAND ioctl.
594 [KS
] Solaris
/x86
: fixed system identification problem
in configure
595 script. Thanks to Stuart Swales.
597 * Mon Jul
5 2004 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
598 [BA
] Update link to revised
/updated IBM Deskstar Firmware
599 [CF
] Cygwin
& Windows
: Added missing ASPI manager initialization
600 with GetASPI32SupportInfo
(). Thanks to Nikolai SAOUKH
for pointing
601 this out and providing a patch.
602 [BA
] modified smartd init script to work on whitebox
(thanks to
604 [BA
] removed
(reverted
) additional Attribute definitions from
605 http
://smart.friko.pl
/attributes.php. All
(or most?
) of these
606 appear to be
return code values
for the WD Digital Life Guard Utility.
607 [PW
] Added Seagate Medalist
17242, 13032, 10232, 8422, and
4312 to
608 knowndrives table. Added missing Seagate U Series
5 drives.
609 [PW
] Added the following QUANTUM models to knowndrives table
:
610 FIREBALL EX6.4A
, FIREBALLP AS10.2
, FIREBALLP AS40.0
, FIREBALL CR4.3A
,
611 FIREBALLP LM15
, FIREBALLP LM30
, and FIREBALLlct20
30
612 [PW
] Added missing Western Digital Protege drives to knowndrives table.
613 [PW
] Added Maxtor DiamondMax
40 ATA
66 series and DiamondMax
40 VL Ultra
614 ATA
100 series to knowndrives table.
615 [PW
] Added the following Hitachi
/IBM drives to knowndrives table
:
616 HITACHI_DK14FA
-20B
, Travelstar
40GNX series
, Travelstar
4LP series
,
617 and Travelstar DK23XXB series. Added the missing Travelstar
80GN
619 [PW
] Added Fujitsu MPB series and MPG series to knowndrives table. Added
620 the missing Fujitsu MHSxxxxAT drives.
621 [KS
] Solaris
: added workaround
for dynamic change of
time-zone.
622 [KS
] Solaris
: fixed problem that autogen.sh cannot detect absence of
624 [BA
] smartd
: added
time-zone bug information to man page.
625 Reverted CF code
for _WIN32
case.
626 [CF
] Cygwin
& Windows
: Added better error messages on IDE
/ATA device
628 [BA
] added additional Attribute definitions from
629 http
://smart.friko.pl
/attributes.php
630 [BA
] smartd
: reworked TimeZone bug workaround so it is only invoked
631 for glibc. Note
: this might not be right
-- a similar bug may
632 exist
in other platform's libcs.
633 [DG
] SCSI smartmontools documentation updated
[2004/5/6]. See
:
634 http
://smartmontools.sourceforge.net
/smartmontools_scsi.html
635 [CF
] Windows
: Fixed reset of TZ
=GMT
in glibc timezone bug workaround.
637 * Tue May
4 2004 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
638 [DG
] move SCSI device temperature and start
-stop log page output
639 (smartctl
) into
--attributes section
(was
in --info section
).
640 [GG
] change default installation location to
/usr
/local
641 [CF
] Cygwin smartd
: Fixed crash on access of SCSI devices after fork
().
642 [PW
] Added TOSHIBA MK4018GAS and the following Maxtor drive families
643 to knowndrives table
: DiamondMax D540X
-4G
, Fireball
541DX
,
644 DiamondMax
3400 Ultra ATA
, DiamondMax Plus
6800 Ultra ATA
66.
645 [PW
] Added missing Maxtor DiamondMax
16, DiamondMax D540X
-4K
, and
646 DiamondMax Plus
45 Ulta ATA
100 drives to knowndrives table.
647 [PW
] Added ExcelStor J240
, Hitachi Travelstar
80GN family
, Fujitsu
648 MHTxxxxAT family
, and IBM Deskstar
25GP and
22GXP families to
650 [CF
] Cygwin smartd
: Added workaround
for missing SIGQUIT via keyboard
:
651 To
exit smartd
in debug mode
, type CONTROL
-C twice.
652 [BA
] smartctl
: printing of the selective self
-test log is now
653 controlled by a new option
: -l selective
654 [BA
] Added entries
for Samsung firmware versions
-25 to
-39 based
655 on latest info about firmware bug fixes.
656 [PW
] Added Seagate U Series X family
, Seagate U8 family
, and Seagate
657 Medalist
8641 family to knowndrives table.
658 [CF
] smartd
: Added
exit values
5/6 for missing
/unreadable config file.
659 [BA
] smartd
: now monitor the Current Pending Sector count
(Attribute
197)
660 and the Offline Pending Sector Count
(Attribute
198). Log a
661 warning
(and send an email
, if so configured
) if the raw count
662 is nonzero. These are controlled by new Directives
: -C and
-U.
663 Currently they are enabled by default.
664 [CF
] Added option
-c FILE
, --configfile
=FILE to smartd to specify
665 an alternate configuration FILE or '
-'
for standard input.
666 [KS
] configure.
in now searches
for -lnsl and
-lsocket
for Solaris.
667 [CF
] Win32
/native smartd
: Added thread to combine several syslog output
668 lines into one single event log entry.
669 [CF
] Win32 smartd
: Added DEVICESCAN
for SCSI
/ASPI devices.
670 [GG
] Use gethostbyname
() the get the DNS domain since getdomainname
()
671 returns the NIS domain when sending mails from smartd.
672 [GG
] smartd.init.
in: pass smartd_opts to smartd on startup
, read distribution
673 specific configuration files
if found
674 [SS
] smartctl
: added NetBSD support
for Selective Self
-tests.
675 [BA
] smartd.conf example configuration file now has all examples
676 commented out except
for 'DEVICESCAN'.
677 [CF
] Win32
/native smartd
: Added ability to display warning "emails"
678 as message box by "
-m msgbox" directive. With "
-m sysmsgbox"
,
679 a system modal
(always on top
) message box is shown.
680 [BA
] smartctl
: printing of self
-test log
for disks that support
681 Selective self
-testing now shows the status of the
(optional
)
682 read-scan after the selective self
test. Also
, changed format
683 in printing self
-test log to print failing LBA
in base
10 not
684 base
16 (more compatible with kernel error messages
). Also
,
685 in printing SMART error log
, print timestamps
in format
686 days
+hours
+minutes
+seconds.
687 [CF
] Win32 smartd
: Added ability to log to stdout
/stderr
688 (-l local1
/2). Toggling debug console still works
689 if stdout is redirected.
690 [BA
] smartctl
: selective self
-test log
, print current status
691 in a more detailed way. Allow writing of selective self
-test
692 log provided that no other self
-test is underway.
693 [BA
] Linux
: eliminated dependency on kernel tree hdreg.h.
694 [BA
] smartctl
: -l selftest option now prints Selective self
-test
695 log
in addition to the normal self
-test log.
696 Added additional options
(-t pending
, -t afterselect
) to
697 control remaining Selective Self
-test capabilities. Tested
698 with several Maxtor disks. Modified error message printing
699 so that munged option messages print at the end not the
701 [CF
] Added daemon support to Win32 native version of smartd.
702 The daemon can be controlled by commands similar to initd
703 scripts
: "smartd status|stop|reload|restart|sigusr1|sigusr2".
704 [CF
] Added minor support
for option "
-l
local[0-7]" to Win32 native
705 (not Cygwin
) version of smartd. If specified
, the log output
706 is written to file ".
/smartd
[1-7]?.log" instead of event log.
707 [BA
] Added Selective Self
-test to smartctl
(-t selective
,M
-N
).
708 Currently only supported under Linux
; Solaris
, NetBSD
, FreeBSD
709 and Windows developers must add WRITE LOG functionality to
711 [BA
] Added workaround
for an annoying glibc bug
: if you change
712 timezones
, (eg
, flying with a laptop from USA to Europe
)
713 localtime
() does not notice this
in a running
714 executable
, so
time that appears
in the system log
(syslog
!)
715 will be incorrect. See
716 http
://bugs.debian.org
/cgi
-bin
/bugreport.cgi?bug
=48184
717 for additional examples of this bug.
718 [DG
] Set explicit timeouts
for SCSI commands
(most default to
6 seconds
).
719 Previously a
0 second timeout was meant to be interpreted as a
720 default timeout but the FreeBSD port had a problem
in this area.
721 [CF
] Fixed un
-thread
-safe
exit signal handler
for Win32
722 [BA
] Fixed un
-thread
-safe
exit signal handler pointed out
724 [BA
] Changed configure script to eliminate warnings under
725 Solaris from sys
/int_type.h conflicts with int64.h
726 Added header files
for umask to smartd.c.
727 [BA
] Man page format change from Werner LEMBERG. " " changed to \
&
728 [CF
] Added os_win32
/syslogevt.
* event message file tool
for Win32
729 smartd
(native
+cygwin
). May also be useful
for other cygwin
730 programs writing to syslog
().
731 [CF
] Added Win32 version of smartd
732 [CF
] Merged RELEASE_5_26_WIN32_BRANCH
733 [BA
] Made some changes to man page markup suggested by
734 Richard Verhoeven to work around bugs
in man2html.
735 Tested not to
break anything under Linux and Solaris.
736 [CF
] Moved PrintOut
() from utility.c to smart
{ctl
,d
}.c to avoid
737 syslog
() output of smartctl.
738 [BA
] Grew worried that some
time-zone names could be very long
(eg
,
739 Mitteleuropaische Zeit
) and put date string lengths into a
740 single macro
in utility.c
741 [EM
] Updated os_freebsd.c to handle older versions of FreeBSD
in a
742 more appropriate
/obvious fashion.
743 [EM
] Modified autogen.sh as FreeBSD installs automake
1.7 as
744 'automake17' and NOT 'automake
-1.7'
746 * Sat Mar
6 2004 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
747 [PW
] Added QUANTUM FIREBALLlct15
30, QUANTUM FIREBALLlct20
40, and
748 Maxtor
6Y060P0
(DiamondMax Plus
9 60GB
) to knowndrives table.
749 [PW
] Added Maxtor MaXLine II family to knowndrives table
(thanks to
750 Brett Russ
for submitting the patch
).
751 [BA
] Added remaining
read/write commands to detailed list of
752 error log commands that have text descriptions of problem
753 printed. For commands that support it
, print number of failed
754 sectors at problem LBA.
755 [BA
] Made SuSE section of smartd init script more SuSE
9 compatible.
756 Thanks to Hans
-Peter Jansen.
757 [CF
] Windows smartd
: Added IDE
/ATA device scan
758 Added windows device names to smartctl
.8.
in, smartd
.8.
in
759 [BA
] smartctl
/smartd
: user
-provided '
-F samsung' and '
-F samsung2'
760 command line options
/Directives did NOT over
-ride preset values
761 unless user specified '
-P ignore'. Now they will always over
-ride
762 preset values from the database.
763 [BA
] Added error decoding
for a few more READ and WRITE commands.
764 [PW
] Added Maxtor MaXLine Plus II
, Western Digital Caviar SE
(Serial ATA
)
765 series
, Hitachi Deskstar
7K250 series
, and Ultra ATA
66 models of
766 the Maxtor DiamondMax Plus
40 series to knowndrives table.
767 [BA
] Added Maxtor Diamondmax
250 GB drives to database. Note that
768 these model numbers are not listed
in Maxtor documentation
, but
770 [BA
] Removed the 'contact developers' phrase from the Samsung disk
772 [PW
] Added TOSHIBA MK2017GAP
, IBM Deskstar
14GXP and
16GP series
,
773 Fujitsu MPC series
, Seagate Barracuda ATA III family
, and missing
774 Seagate Barracuda U Series drives to knowndrives table
775 [BA
] smartd
: wrong loglevel
for message
: Configuration file
776 /etc
/smartd.conf parsed. Changed to LOG_INFO from LOG_CRIT.
777 Thanks to Emmanuel CHANTREAU
for the report.
778 [CF
] Checked
in development version of windows code base.
780 * Tue Feb
24 2004 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
781 [BA
] smartd
: configure script did not
set correct directory to search
for
782 smartd.conf based on
--prefix argument to .
/configure. Thanks to
783 GG
for identifying the problem and fix.
784 [BA
] make clean now removes man pages
(generated from
*.
in) files as well
786 [EM
] Correct copying of sense data
in FreeBSD SCSI implementation. Thanks
787 to Sergey Svishchev
for noticing the bug.
788 [BA
] On solaris
, wrong warning message
if no ATA support. Warning message
789 concerns
3ware controller
, not ATA.
790 [SS
] Added SCSI support
for NetBSD.
791 [BA
] on big
-endian linux machines
, fixed interpretation of HDIO_GET_IDENTITY
792 to correctly identify ATAPI bit
(was byte swapped
). This should
793 eliminate some SYSLOG noise
if user queries a packet device
(eg
, CD
795 [PW
] Removed warning
for IBM Deskstar
40GV
& 75GXP series drives with
796 A5AA
/A6AA firmware. Thanks to Gerald Schnabel.
797 [PW
] Added Toshiba TOS MK3019GAXB SUN30G to knowndrives table
798 [PW
] Added Western Digital Caviar AC12500
, AC24300
, AC25100
, AC36400
,
799 and AC38400 to knowndrives table
800 [BA
] When printing ATA error log
, print the LBA at which READ
801 or WRITE commands failed.
802 [BA
] Changed syntax of error message
in smartctl
803 [BA
] Added versioning info
(-V options to smartd
/smartctl
) for
806 * Thu Feb
12 2004 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
807 [KS
] Added ATA
/IDE support
for Solaris
/SPARC
(ATA
/IDE not yet
for
809 [BA
] 3ware controllers
: documented that one can monitor any of the
810 physical disks from any of the
3ware
/dev
/sd? logical devices.
811 Better warnings
if querying a disk that does not exist.
812 [PW
] Added Hitachi Travelstar DK23DA series
, Maxtor DiamondMax Plus
40
813 series
, Western Digital Caviar WDxxxAA
, WDxxxBA
, and WDxxxAB series
815 [BA
] missing 'pragma pack' on ATA IDENIFY DEVICE structure may have
816 caused odd or incorrect results on
64-bit machines.
817 [BA
] smartctl
/smartd allow inspection of self
-test and error logs even
818 if disk firmware claims that these don't exist. This is needed
819 for some Maxtor disks whose firmware does not indicate log support
820 even though the disk DOES support it.
821 [BA
] Improved porting instructions and documentation
in os_generic.c
822 [PW
] Add Western Digital Caviar WD136AA and SAMSUNG SP40A2H
(RR100
-07
823 firmware
) to knowndrives table.
824 [EM
] FreeBSD
: remove extra definition of FreeNonZero
825 [BA
] smartctl
: the
-q silent option was printing output
for some
826 error conditions. Fixed. Will rename relevant variables to
help
827 avoid these errors
in the future.
828 [SS
] NetBSD port added.
829 [BA
] more sensible error messages
for devfs and devfs
-like systems.
830 Instead of saying that the DIRECTORY does not exist
, say that
831 the DEVICE does not exist.
832 [BA
] smartd
: added
-n Directive
, to prevent disk spin
-up depending
833 upon the power mode
(SLEEP
, STANDBY
, or IDLE
).
834 [PW
] Added Maxtor DiamondMax
20 VL series
, Fujitsu MPF series
,
835 Maxtor DiamondMax
36 series
, Maxtor DiamondMax
4320 series
, and
836 Maxtor DiamondMax
536DX series to knowndrives table.
837 [BA
] many warning messages now give the file name AND VERSION
838 [BA
] smartd
: when the user provides multiple address recipients
839 to the '
-m' Directive
in a comma
-delineated list
, the commas
840 are stripped out before passing the list of addresses to the
841 mailer program.
(Thanks to Calin A. Culianu
for pointing this out
842 and providing a patch.
)
843 [BA
] smartd
: when the '
-M
exec path' Directive is used
, any stdout OR
844 stderr output from the executable "path" is assumed to indicate a
845 problem
, and is echoed to SYSLOG.
846 [BA
] Added all missing IBM
/Hitachi Deskstar
180GXP models to knowndrives
848 [PW
] Added some missing IBM
/Hitachi Deskstar
120GXP models to knowndrives
850 [PW
] Added IBM Travelstar
14GS to knowndrives table.
851 [PW
] Modified knowndrives table to match entire Hitachi Travelstar
852 DK23BA and DK23EA series of drives
(thanks to Norikatsu Shigemura
853 for submitting the patch
).
854 [PW
] Added some missing Fujitsu MPE series drives to knowndrives table.
855 [PW
] Added TOSHIBA MK4019GAX
, TOSHIBA MK6409MAV
, and QUANTUM
856 FIREBALLlct15
20 to knowndrives table.
857 [EM
] Fixup example
command output
for FreeBSD
858 [PW
] Added Maxtor DiamondMax
80 family to knowndrives table.
859 [EM
] Catch up FreeBSD code to switch PROJECTHOME to PACKAGE_HOMEPAGE
861 [BA
] smartd
: now watches stdout
/stderr when trying to run mail
, mailx
862 or mail warning script
, and reports any output to SYSLOG. This
863 gives a clearer error message
if something is wrong.
864 [BA
] smartd
: Solaris init script modified to accomodate grep that
865 lacks '
-q' quiet option. Also check
for running process to
kill
867 [PW
] Added some missing Seagate Barracuda
7200.7 and
7200.7 Plus drives
868 to knowndrives table.
869 [PW
] Added Maxtor DiamondMax Plus
60 family and Seagate U Series
5 20413
870 to knowndrives table.
871 [BA
] smartd
: under Solaris
, made default mailer be 'mailx' not
872 'mail'
, since Solaris 'mail' does not accept a '
-s' argument.
873 A workaround
for Solaris users of earlier versions is to
874 have '
-M
exec /bin
/mailx'
in their smartd.conf config file.
875 [DG
] some SCSI controllers don't like odd length transfers so
make
876 sure LOG SENSE transfers are rounded up to an even number when
877 and odd length is reported
(i.e. there is a double fetch
, the
878 first to find the length
, the second gets the data
)
879 [BA
] smartd man pages
: under Solaris
, correct section numbers
in the
881 [KS
/BA
] smartd man page
: describe how to
set Solaris syslog.conf
882 file to catch all messages. Give correct Solaris SYSLOG default
883 path
/var
/adm
/messages
in man pages.
884 [BA
] smartd
: incorporated Debian startup script submitted by user.
885 [BA
] smartctl
: modified printing of self
-test log entry number. Seagate
886 firmware can leave 'holes'
in the self
-test log
while a
test is
887 actually running. We now print entry numbers consistently
in this
888 case, not assuming that entries are contiguous.
889 [PW
] Added QUANTUM FIREBALL CX10.2A and Western Digital Caviar AC23200L
890 to knowndrives table.
891 [PW
] Added QUANTUM FIREBALLlct20
20 to knowndrives table.
892 [PW
] Added Maxtor DiamondMax Plus D740X family to knowndrives table.
893 [PW
] Added IBM Travelstar
32GH
, 30GT
, and
20GN family to knowndrives
895 [BA
] Slackware init script modified to search
for /etc
/slackware
-version
896 rather than
/etc
/slackware
-release.
897 [PW
] Added Seagate Barracuda ATA II family and TOSHIBA MK4019GAXB to
899 [GG
] explain howto use autoreconf
in autogen.sh
900 [KS
] Makefile.am
/configure.
in: changed manual page sections
for
902 [BA
] smartd
: reduced number of scheduled self
-test messages
if
903 test already run
in current hour.
904 [PW
] Added Maxtor DiamondMax Plus
8 family to knowndrives table.
905 [BA
] linux
: check
for linux
/hdreg.h. If it's there
, use it. If
906 not
, provide the necessary definitions ourselves.
907 [PW
] Removed warning
for IBM Deskstar
40GV
& 75GXP series drives
908 with TXAOA5AA firmware
909 [PW
] Added IBM Travelstar
25GS
, 18GT
, and
12GN family to knowndrives
911 [PW
] Added IBM
/Hitachi Travelstar
60GH
& 40GN family to knowndrives
913 [BA
] smartd
: made '
-s' Directive more efficient. Now store
914 compiled regex
, and re
-use. If device lacks certain self
-test
915 capabilities
, track it and don't try again.
916 [BA
] smartd
: made memory allocation
for device lists completely
917 dynamic
(eliminating compile
-time maximum length constants
).
918 [PW
] Removed warning
for SAMSUNG SP0802N with TK100
-23 firmware
919 [PW
] Added Seagate Barracuda ATA IV family to knowndrives table.
920 [BA
] smartd
: reduce per
-device memory footprint by making
921 mail
-warning info dynamically allocated. Also remove
922 potential memory leak
if use has
-m Directive twice and
923 keeps reloading the config file
(highly unlikely this would
925 [DG
] smartd
: added SCSI scheduled self
-tests
(Background
927 [BA
] smartd
: can now run scheduled offline immediate and
928 self
-tests. See man page and
-s Directive
for details.
929 [GG
] don't include manpages
in make-dist
-tarball.
930 [BA
] smartctl
: on
-line examples given with
-h are now correct
931 for solaris and linux
, but wrong
for freebsd. Ed?
932 [BA
] smartd
: man page now explains device scanning
for solaris as
933 well as linux and freebsd.
934 [BA
] smartd
/smartctl
: man pages now report correct CVS tag release
935 date
, and executables '
-V' options reports more build info.
937 * Sat Nov
29 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
938 [BA
] Improved user messages that appear from '
make install'
939 [PW
] Removed warning
for SAMSUNG SP1213N with firmware TL100
-23
940 [BA
] incorporated SuSE init script from user.
941 [DG
] if SCSI device is
read only
, then open it
read only.
942 [BA
] when compiled on non
-supported system
(NOT linux
, freebsd or solaris
) then
943 the run
-time error messages now clearly say 'your system is not supported'
944 and give clear directions.
945 [BA
] .
/configure script now works correctly on SuSE linux boxes
946 [BA
] minor improvements to man pages
947 [BA
] simplified detection of packet
(ATAPI
, CD
) devices.
948 [BA
] init script
(redhat
, mandrake
, yellowdog
) now uses correct
949 strings
for translation and is slightly more standard.
950 [DG
] smartctl
: output scsi Seagate vendor pages
for disks
(not tapes
)
951 * Wed Nov
19 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
952 [DG
] smartd
/smartctl
: changed scsiClearControlGLTSD
() to
953 scsiSetControlGLTSD
() with an 'enabled' argument so '
-S on'
954 and '
-S off' work
for SCSI devices
(if changing GLTSD supported
).
955 [BA
] smartd
/smartctl
: wired
in scsiClearControlGLTSD
(). Could still
956 use a corresponding Set
function. Left stubs
for this purpose.
957 [DG
] scsicmds
: added scsiClearControlGLTSD
() [still to be wired
in]
958 [BA
] smartctl
: make SCSI
-T options behave the same way as the
960 [DG
] smartctl
: output scsi transport protocol
if available
961 [DG
] scsi
: stop device scan
in smartd and smartctl
if badly formed
962 mode response
[heuristic to filter out USB devices before we
963 (potentially
) lock them up
].
964 [BA
] smartd
: deviceclose
()->CloseDevice
(). Got rid of SCSIDEVELOPMENT
965 macro
-enabled code. Added
-W to list of gcc specific options to
966 always
enable. Made code clean
for -W warnings.
967 [PW
] Added Maxtor DiamondMax VL
30 family to knowndrives table.
968 [DG
] scsi
: add warning
(when '
-l error' active
) if Control mode page
969 GLTSD bit is
set (global disable of saving log counters
)
970 [DG
] scsi
: remember mode sense cmd length. Output trip temperature
971 from IE lpage
(IBM extension
) when unavailable from temp lpage.
972 [BA
] smartd
: for both SCSI and ATA now warns user
if either
973 the number of self
-test errors OR timestamp of most
974 recent self
-test error have increased.
975 [DG
] smartctl
: output Seagate scsi Cache and Factory log pages
(if
976 available
) when vendor attributes chosen
977 [DG
] smartd
: add scsiCountFailedSelfTests
() function.
978 [DG
] Do more sanity checking of scsi log page responses.
979 [BA
] smartd
: now warns user
if number of self
-test errors has
980 increased
for SCSI devices.
981 [BA
] smartd
: warn user
if number of ATA self
-test errors increases
982 (as before
) OR
if hour
time stamp of most recent self
-test
984 [DG
] More checks
for well formed mode page responses. This has the side
985 effect of stopping scans on bad SCSI implementations
(e.g. some
986 USB disks
) prior to sending commands
(typically log sense
) that
988 [PW
] Added Western Digital Caviar family and Caviar SE family to
990 [BA
] smartd
: added
-l daemon
(which is the default value
if -l
992 [PW
] Added Seagate Barracuda ATA V family to knowndrives table.
993 [BA
] smartd
: added additional
command line argument
-l FACILITY
994 or
--logfacility FACILITY. This can be used to redirect
995 messages from smartd to a different file than the one used
996 by other system daemons.
997 [PW
] Added Seagate Barracuda
7200.7, Western Digital Protege WD400EB
,
998 and Western Digital Caviar AC38400 to knowndrives table.
999 [BA
] smartd
: scanning should now also work correctly
for
1000 devfs WITHOUT traditional links
/dev
/hd
[a
-t
] or
/dev
/sd
[a
-z
].
1001 [PW
] Added Maxtor
4W040H3
, Seagate Barracuda
7200.7 Plus
,
1002 IBM Deskstar
120GXP
(40GB
), Seagate U Series
20410,
1003 Fujitsu MHM2100AT
, MHL2300AT
, MHM2150AT
, and IBM
-DARA
-212000
1004 to knowndrives table.
1005 [PW
] Added remaining Maxtor DiamondMax Plus
9 models to knowndrives
1007 [EM
] smartd
: If no matches found
, then return 0, rather than an error
1008 indication
, as it just means no devices of the given
type exist.
1009 Adjust FreeBSD scan code to mirror Linux version.
1010 [BA
] smartd
: made device scan code simpler and more robust. If
1011 too many devices detected
, warn user but scan as many
1012 as possible. If error
in scanning
, warn user but don't
1014 [EM
] smartd
: To keep as consistent as possible
, migrate FreeBSD
1015 devicescan code to also use glob
(3). Also verified clean
1016 compile on a
4.7 FreeBSD system.
1017 [BA
] smartd
: Modified device scan code to use glob
(3). Previously
1018 it appeared to have trouble when scanning devices on an XFS
1019 file system
, and used non
-public interface to directory
1020 entries. Problems were also reported when
/dev
/ was on an
1021 ext2
/3 file system
, but there was a JFS partition on the same
1023 [BA
] Clearer error messages when device scanning finds no suitable
1025 [EM
] FreeBSD
: Fixup code to allow
for proper compilation under
1028 * Fri Oct
31 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1029 - [BA
] smartd
: didn't close file descriptors of ATA packet devices
1030 that are scanned. Fixed.
1031 - [BA
] Added reload
/report targets to the smartmontools init script.
1032 reload
: reloads config file
1033 report
: send SIGUSR1 to check devices now
1035 * Mon Oct
27 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1036 - [EM
] Fix compile issues
for FreeBSD
< 5-CURRENT.
1037 - [PW
] Added Fujitsu MHM2200AT to knowndrives table.
1038 - [BA
] To
help catch bugs
, clear ATA error structures before all
1039 ioctl calls. Disable code that attempted to
time-out on SCSI
1040 devices when they hung
(doesn't work
).
1041 - [BA
] Documented STATUS
/ERROR flags added by
[PW
] below.
1042 - [BA
] Improved algorithm to recognize ATA packet devices. Should
1043 no longer generate SYSLOG kernel noise when user tries either
1044 smartd or smartctl on packet device
(CD
-ROM or DVD
). Clearer
1045 warning messages from smartd when scanning ATA packet device.
1046 - [PW
] Added TOSHIBA MK4025GAS to knowndrives table.
1047 - [PW
] Added a textual interpretation of the status and error registers
1048 in the SMART error log
(ATA
). The interpretation is
1049 command-dependent and currently only eight commands are supported
1050 (those which produced errors
in the error logs that I happen to
1052 - [BA
] added memory allocation tracking to solaris code.
1053 Fixed solaris signal handling
(reset handler to default
1054 after first call to handler
) by using sigset. Added
1055 HAVE_SIGSET to configure.
in
1056 - [CD
] solaris port
: added SCSI functionality to solaris
1058 - [BA
] smartd
: attempt to address bug report about smartd
1059 hanging on USB devices when scanning
:
1060 https
://bugzilla.redhat.com
/bugzilla
/show_bug.cgi?id
=107615
1061 Set a timeout of SCSITIMEOUT
(nominally
7 seconds
) before
1063 - [EM
] smartd
: DEVICESCAN will follow links
in a devfs filesystem and
1064 make sure the end point is a disc. Update documentation
, added
1065 note about FreeBSD scanning
1066 - [BA
] smartd
: DEVICESCAN also looks
for block devices
in
1067 /dev. Updated documentation. Now scans
for up to
1068 20 ATA devices
/dev
/hda
-t rather than previous
12
1070 - [EM
] smartd
: mirror the FreeBSD DEVICESCAN logic
for Linux
,
1071 so that smartd now scans only devices found
in /dev
/. Also
,
1072 make utility memory functions take a line number and file so
1073 that we report errors with the correct location.
1074 - [GG
] add a note about Debian bug
#208964 to WARNINGS.
1075 - [BA
] smartctl
: -T verypermissive option broken. Use
1076 -T verpermissive
until the next release
, please.
1077 - [BA
] Syntax mods so that code also compiles on Solaris using
1078 Sun Workshop compiler. Need
-xmemalign
1i
-xCC flags
1081 * Wed Oct
15 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1082 [DK
] Changed configure.
in so
-Wall is only included
if gcc
1083 is used
(this is a gcc specific flag
) and
-fsignedchar
1084 is not used at all
(this is a gcc specific compiler
1086 [BA
] Modifications so that code now compiles under solaris. Now
1087 all that's needed
(:-) is to fill
in os_solaris.
[hc
]. Added
1088 os_generic.
[hc
] as guide to future ports. Fixed
-D option
1089 of smartd
(no file name
). Modified
-h opt of smartd
/smartctl
1090 to work properly with solaris getopt
().
1091 [EM
] Update MAN pages with notes that
3ware drives are NOT supported
1092 under FreeBSD. Cleanup FreeBSD warning message handling.
1093 [EM
] FreeBSD only
: Fix first user found bug....I guess I was making
1094 the wrong assumption on how to convert ATA devnames to
1095 channel
/unit numbers.
1096 [EM
] Allow
for option
--enable-sample to append '.sample' to installed
1097 smartd.conf and rc script files. Also
, let rc script shell setting
1098 be determined by configure
1099 [EM
] Minor autoconf update to include
-lcam
for FreeBSD
1100 [EM
] Add conditional logic to allow FreeBSD to compile pre
-ATAng.
1102 Add some documentation to INSTALL
for FreeBSD.
1103 [EM
] Implement SCSI CAM support
for FreeBSD. NOTE
: I am not an expert
1104 in the use of CAM. It seems to work
for me
, but I may be doing
1105 something horribly wrong
, so please exercise caution.
1106 [EM
] Switch over to using 'atexit' rather than 'on_exit' routine. This also
1107 meant we needed to save the
exit status elsewhere so our 'Goodbye'
1108 routine could examine it.
1109 [EM
] Move the DEVICESCAN code to os specific files. Also moved some of the
1110 smartd Memory functions to utility.c to
make available to smartctl.
1111 [EM
] Code janitor work on os_freebsd.c.
1112 [EM
] Added os_freebsd.
[hc
] code. Additional code janitor
1114 [BA
] Code janitor working
, moving OS dependent code into
1116 [GG
] conditionally compile os_
{freebsd
,linux
}.o depending on
1118 [PW
] Print estimated completion
time for tests
1119 [BA
] Added
-F samsung2 flag to correct firmware byte swap.
1120 All samsung drives with
*-23 firmware revision string.
1122 * Sun Oct
05 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1123 - [GG
] Fixed broken Makefile.am
(zero length smartd.conf
.5
1125 - [FM
] Improved Slackware init script added to
/etc
/smartd.initd
1127 * Fri Oct
03 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1128 - [BA
] smartctl
: added '
-T verypermissive' option which is
1129 equivalent to giving '
-T permissive' many
times.
1130 - [BA
] Try harder to identify from IDENTIFY DEVICE structure
1131 if SMART supported
/enabled. smartd now does a more
1132 thorough job of trying to assess this before sending
1133 a SMART status
command to find out
for sure.
1134 - [BA
] smartctl
: it's now possible to override the program's
1135 guess of the device
type (ATA or SCSI
) with
-d option.
1136 - [BA
] try hard to avoid sending IDENTIFY DEVICE to packet
1137 devices
(CDROMS
). They can't
do SMART
, and this generates
1138 annoying syslog messages. At the same
time, identify
type
1140 - [BA
] smartctl
: Can now use permissive option more
1141 than once
, to control how far to go before giving up.
1142 - [BA
] smartd
: if user asked to monitor either error or self
-test
1143 logs
(-l error or
-l selftest
) WITHOUT monitoring any of the
1144 Attribute values
, code will SEGV. For
5.1-18 and earlier
,
1145 a good workaround is to
enable Auto offline
(-o on
).
1146 - [BA
] smartctl
: If
enable auto offline
command given
, update auto
1147 offline status before printing capabilities.
1148 - [GG
] Make autotools build the default
, remove autotools.diff
1149 - [GG
] Add auto
{conf
,make} support
, not enabled by default.
1150 - [BA
] Eliminated
#include <linux/hdreg.h> from code. This
1151 should simplify porting to solaris
, FreeBSD
, etc. The
1152 only linux
-specific code is now isolated to three routines
,
1153 one
for SCSI
, one
for Escalade
, one
for ATA.
1155 * Fri Aug
22 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1156 - [BA
] smartd
: fixed serious bug
- Attributes not monitored unless
1157 user told smartd to ignore at least one of them
!
1159 * Tue Aug
19 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1160 - [BA
] Default runlevels
for smartd changed from
3 and
5 to
1162 - [BA
] Removed as much dynamic memory allocation as possible from
1163 configuration file parsing. Reloading config file
, even
in
1164 presence of syntax errors etc. should not cause memory leaks.
1165 - [PW
] It is no longer permissible
for the integer part
(if any
) of
1166 arguments to
--report and
--device to be followed by non
-digits.
1167 For example
, the "foo"
in --report
=ioctl
,2foo was previously
1168 ignored
, but now causes an error.
1169 - [BA
] smartd
: added
-q
/--quit
command line option to specify
1170 under what circumstances smartd should
exit. The old
1171 -c
/--checkonce option is now obsoleted by this more
1172 general
-purpose option.
1173 - [BA
] smartd now responds to a HUP signal by re
-reading its
1174 configuration file
/etc
/smartd.conf. If there are
1175 errors
in this file
, then the configuration file is
1176 ignored and smartd continues to monitor the devices that
1177 it was monitoring prior to receiving the HUP signal.
1178 - [BA
] Now correctly get SMART status from disks behind
3ware
1179 controllers
, thanks to Adam Radford. Need
3w
-xxxx driver
1180 version
1.02.00.037 or later. Previously the smartmontools
1181 SMART status always returned "OK"
for 3ware controllers.
1182 - [BA
] Additional work on dynamic memory allocation
/deallocation.
1183 This should have no effect on smartctl
, but clears that way
1184 for smartd to dynamically add and remove entries. It should
1185 also now be easier to modify smartd to re
-read its config
1186 file on HUP
(which is easy
) without leaking memory
(which is
1187 harder
). The philosophy is that memory
for data structures
in
1188 smartd is now allocated only on demand
, the first
time it
1190 - [BA
] smartd
: finished cleanup. Now use create
/rm functions
for
1191 cfgentries and dynamic memory allocation almost everywhere.
1192 Philosophy
: aggresively try and provoke SEGV to
help find
1194 - [BA
] Added SAMSUNG SV0412H to knowndrives table.
1195 - [BA
] smartd
: if DEVICESCAN used
then knowndrives table might not
set
1196 the
-v attributes correctly
-- may have been the same
for all
1197 the drives. Cleaned up some data structures and memory
1198 allocation to try and ensure segvs
if such problems are
1200 - [BA
] Now allow
-S on and
-o on
for the
3ware device
type. For these
1201 commands to be passed through
, the stock
3ware
3w
-xxxx driver
1202 must be patched
(8 lines
). I'll post a patch on the smartmontools
1203 home page after it's been tested by a few other people and
3ware
1204 have had a chance to look it over.
1206 * Wed Aug
06 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1207 - [BA
] smartd
- can now monitor ATA drives behind
3ware controllers.
1208 - [BA
] smartd
- changed some FATAL out of memory error messages from
1209 syslog level LOG_INFO to LOG_CRIT.
1210 - [BA
] smartctl
- added code to look at ATA drives behind
3ware RAID
1211 controllers using the
3w
-xxxx driver. Note that
for technical
1212 reasons related to the
3w
-xxxx driver
, the "Enable Autosave"
,
1213 "Enable Automatic Offline" commands are not implemented.
1214 I will add this to smartd shortly.
1215 - [BA
] smartd
- modified sleep loop
, so that smartd no longer comes
1216 on the run queue every second. Instead
, unless interrupted
,
1217 it sleeps
until the next polling
time, when it wakes up. Now
1218 smartd also tries to wake up at exactly the right
1219 intervals
(nominally
30 min
) even
if the user has been sending
1221 - [GG
] add Fujitsu MHN2300AT to vendoropts_9_seconds.
1222 - [EB
] Fujitsu change
in knowndrives ... match the whole MPD and
1223 MPE series
for vendoropts_9_seconds.
1224 - [BA
] smartd bug
, might cause segv
if a device can not be opened. Was
1225 due to missing comma
in char
* list. Consequence is that email
1226 failure messages might have had the wrong Subject
: heading
for
1227 errorcount
, FAILEDhealthcheck
, FAILEDreadsmartdata
, FAILEDreadsmarterrorlog
,
1228 FAILEDreadsmartsefltestlog
, FAILEDopendevice were all displaced by
1229 one. And FAILEDopendevice might have caused a segv
if -m was being
1230 used as a smartd Directive.
1232 * Wed Jul
23 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1233 - [BA
] Cleaned up smartmontools.spec so that upgrading
, removing
1234 and other such operations correctly preserve running behavior
1235 and booting behavior of smartd.
1236 - [BA
] Improved formatting of ATA Error Log printout
, and added
1237 listing of names of commands that caused the error. Added
1238 obsolete ATA
-4 SMART feature commands to table
, along with
1239 obsolete SFF
-8035i SMART feature
command.
1240 - [PW
] Added atacmdnames.
[hc
], which turn
command register
&
1241 feature register pairs into ATA
command names.
1242 - [BA
] Added conveyance self
-test. Some code added
for selective
1243 self
-tests
, but
#ifdefed out.
1244 - [BA
] Modified smartd
exit status and log levels. If smartd is
1245 "cleanly" terminated
, for example with SIGTERM
, then its
1246 exit messages are now logged at LOG_INFO not LOG_CRIT
1247 - [BA
] Added Attribute IDs
(Fujitsu
) 0xCA - 0xCE. This is decimal
1248 202-206. Added
-v switches
for interpretation of Attributes
1250 - [BA
] Made smartmontools work with any endian order machine
for:
1251 - SMART selftest log
1252 - SMART ATA error log
1253 - SMART Attributes values
1254 - SMART Attributes thesholds
1255 - IDENTIFY DEVICE information
1257 Smartmontools is now free of endian bias and works correctly
1258 on both little
- and big
-endian hardware. This has been tested by
1259 three independent PPC users on a variety of ATA and SCSI hardware.
1260 - [DG
] Check that certain SCSI
command responses are well formed. If
1261 IEC mode page response is not well formed
exit smartctl. This
1262 is to protect aacraid. smartd should ignore a aacraid device.
1264 * Mon Jun
16 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1265 - [BA
] smartctl
: added column to
-A output to show
if Attributes are
1266 updated only during off
-line testing or also during normal
1269 * Thu Jun
10 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1270 - [BA
] smartd
: attempt to
enable/disable automatic offline testing even
1271 if the disk appears not to support it. Now the same logic
1273 - [BA
] Added definition of Attribute
201, soft
read error rate.
1274 - [BA
] Added IBM
/Hitachi IC35L120AVV207
-1 (GXP
-180) and corresponding
1275 8MB Cache GXP
-120 to drive database.
1276 - [BA
] smartd
: if DEVICESCAN Directive used
in smartd.conf
, and
1277 -I
, -R or
-r Directives used
in conjunction with this
, got
1278 segv errors. Fixed by correcting memory allocation calls.
1279 - [BA
] smartd
: enable automatic offline testing was broken due
1280 to cut
-and
-paste error that disabled it instead of
1281 enabling it. Thanks to Maciej W. Rozycki
for pointing
1282 out the problem and solution.
1283 - [BA
] Fixed "spelling" of some Attribute names to replace spaces
1284 in names by underscores.
(Fixed field width easier
for awk
1286 - [BA
] Added mods submitted by Guilhem Frezou to support Attribute
193
1287 being load
/unload cycles. Add
-v
193,loadunload option
, useful
1288 for Hitachi drive DK23EA
-30, and add this drive to knowndrive.c
1289 Add meaning of attribute
250 : Read error retry rate
1290 - [BA
] Added another entry
for Samsung drives to knowndrive table.
1291 - [DG
] Refine SCSI log sense
command to
do a double fetch
in most cases
1292 (but not
for the TapeAlert log page
). Fix TapeAlert and Self Test
1293 log pgae response truncation.
1294 - [PW
] Added 'removable' argument to
-d Directive
for smartd. This indicates
1295 that smartd should
continue (rather than
exit) if the device does not
1296 appear to be present.
1297 - [BA
] Modified smartmontools.spec
[Man pages location
] and
1298 smartd.initd
[Extra space kills chkconfig
!] for Redhat
6.x
1299 compatibility
(thanks to Gerald Schnabel
).
1301 * Wed May
7 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1302 - [EB
] Add another Fujitsu disk to knowndrives.c
1303 - [GG
] match
for scsi
/ and ide
/ in case of devfs to exclude false postives
1304 - [BA
] If SCSI device listed
in /etc
/smartd.conf fails to open or
do
1305 SMART stuff correctly
, or not enough space
1306 to list all SCSI devices
, fail with error unless
1307 -DSCSIDEVELOPMENT
set during compile
-time.
1308 - [BA
] Added automatic recognition of
/dev
/i
* (example
: /dev
/ide
/...
)
1310 - [DG
] Add "Device
type: [disk | tape | medium changer | ...
]" line to
1311 smartctl
-i output
for SCSI devices.
1312 - [PW
] Fixed bug
in smartd where
test email would be sent regularly
(for
1313 example
, daily
if the user had specified
-M daily
) instead of just
1315 - [KM
] More TapeAlert work. Added translations
for media changer
1316 alerts. TapeAlert support reported according to the log page
1317 presence. ModeSense not attempted
for non
-ready tapes
(all
1318 drives
do not support this after all
). Get peripheral
type from
1319 Inquiry even
if drive info is not printed. Add QUIETON
()
1320 QUIETOFF
() to TapeAlert log check.
1321 - [BA
] Stupid bug
in atacmds.c minor_str
[] affected ataVersionInfo
().
1322 Two missing commas meant that minor_str
[] had two few elements
,
1323 leading to output like this
:
1324 Device Model
: Maxtor
6Y120L0
1325 Serial Number
: Y40BF74E
1326 Firmware
Version: YAR41VW0
1327 Device is
: Not
in smartctl database
[for details use
: -P showall
]
1329 ATA Standard is
: 9,minutes
1331 Missing commas inserted.
1332 - [BA
] Fixed smartd bug. On device registration
, if ATA device did
1333 not support SMART error or self
-test logs but user had asked to
1334 monitor them
, an attempt would be made to
read them anyway
,
1335 possibly generating "Drive Seek" errors. We now check that
1336 the self
-test and error logs are supported before trying to
1337 access them the first
time.
1338 - [GG
/BA
] Fixed bug where
if SMART ATA error log not supported
,
1339 command was tried anyway. Changed some error printing to use
1341 - [GG
] Makefile modifications to ease packaging
1342 - [DG
] Did work
for TapeAlerts
(SCSI
). Now can detect
/dev
/nst0 as a
1343 SCSI device. Also open SCSI devices O_NONBLOCK so they don't
1344 hang on open awaiting media. The ATA side should worry about
1345 this also
: during a DEVICESCAN a
cd/dvd device without media
1346 will hang. Added some TapeAlert code suggested by Kai Makisara.
1348 * Mon Apr
21 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1349 - [PW
] Extended the
-F option
/Directive to potentially fix other firmware
1350 bugs
in addition to the Samsung byte
-order bug. Long option name is
1351 now
--firmwarebug and the option
/Directive accepts an argument
1352 indicating the
type of firmware bug to fix.
1353 - [BA
] Fixed a bug that prevented the
enable automatic off
-line
1354 test feature from enabling. It also prevented the
enable Attribute
1355 autosave from working. See CVS entry
for additional details.
1356 - [PW
] Modified the
-r
/--report option
(smartctl and smartd
) to allow the
1357 user to specify the debug level as a positive integer.
1358 - [BA
] Added
--log directory option to smartctl. If the disk
1359 supports the general
-purpose logging feature
set (ATA
-6/7)
1360 then this option enables the Log Directory to be printed.
1361 This Log Directory shows which device logs are available
, and
1362 their lengths
in sectors.
1363 - [PW
] Added
-P
/--presets option to smartctl and
-P Directive to smartd.
1364 - [GG
] Introduce different
exit codes indicating the
type of problem
1365 encountered
for smartd.
1366 - [DG
] Add non
-medium error count to '
-l error' and extended self
test
1367 duration to '
-l selftest'. Get scsi IEs and temperature changes
1368 working
in smartd. Step over various scsi disk problems rather
1369 than abort smartd startup.
1370 - [DG
] Support
-l error
for SCSI disks
(and tapes
). Output error counter
1372 - [BA
] Added
-F
/--fixbyteorder option to smartctl. This allows us to
read
1373 SMART data from some disks that have byte
-reversed two
- and four
-
1374 byte quantities
in their SMART data structures.
1375 - [BA
] Fixed serious bug
: the
-v options
in smartd.conf were all put
1376 together and used together
, not drive
-by
-drive.
1377 - [PW
] Added knowndrives.h and knowndrives.c. The knowndrives array
1378 supersedes the drivewarnings array.
1379 - [GG
] add
{-p
,--pidfile
} option to smartd to write a PID file on
1380 startup. Update the manpage accordingly.
1381 - [DG
] Fix scsi smartd problem detecting SMART support. More cleaning
1382 and fix
(and rename
) scsiTestUnitReady
(). More scsi renaming.
1383 - [BA
] Fixed smartd so that
if a disk that is explictily listed is not
1384 found
, then smartd will
exit with nonzero status BEFORE forking.
1385 If a disk can't be registered
, this will also be detected before
1386 forking
, so that init scripts can react correctly.
1387 - [BA
] Replaced all linux
-specific ioctl
() calls
in atacmds.c with
1388 a generic handler smartcommandhandler
(). Now the only routine
1389 that needs to be implemented
for a given OS is os_specific_handler
().
1390 Also implemented the
--report ataioctl. This provides
1391 two levels of reporting. Using the option once gives a summary
1392 report of device IOCTL transactions. Using the option twice give
1393 additional info
(a printout of ALL device raw
512 byte SMART
1394 data structures
). This is useful
for debugging.
1395 - [DG
] more scsi cleanup. Output scsi device serial number
(VPD page
1396 0x80) if available as part of '
-i'. Implement '
-t offline' as
1397 default self
test (only self
test older disks support
).
1398 - [BA
] Changed crit to info
in loglevel of smartd complaint to syslog
1399 if DEVICESCAN enabled and device not found.
1400 - [BA
] Added
-v
194,10xCelsius option
/Directive. Raw Attribute number
1401 194 is ten
times the disk temperature
in Celsius.
1402 - [DG
] scsicmds.
[hc
] + scsiprint.c
: clean up indentation
, remove tabs.
1403 Introduce new intermediate interface based on "struct scsi_cmnd_io"
1404 to isolate SCSI generic commands
+ responses from Linux details
;
1405 should
help port to FreeBSD of SCSI part of smartmontools.
1406 Make SCSI
command builders more parametric.
1408 * Thu Mar
13 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1409 - [BA
] smartctl
: if HDIO_DRIVE_TASK ioctl
() is not implemented
(no
1410 kernel support
) then try to assess drive health by examining
1411 Attribute values
/thresholds directly.
1412 - [BA
] smartd
/smartctl
: added
-v
200,writeerrorcount option
/Directive
1414 - [BA
] smartd
: Now send email
if any of the SMART commands fails
,
1415 or
if open
()ing the device fails. This is often noted
1416 as a common disk failure mode.
1417 - [BA
] smartd
/smartctl
: Added
-v N
,raw8
-v N
,raw16 and
-v N
,raw48
1418 Directives
/Options
for printing Raw Attributes
in different
1420 - [BA
] smartd
: Added
-r ID and
-R ID
for reporting
/tracking Raw
1421 values of Attributes.
1422 - [BA
] smartd
/smartctl
: Changed printing of spin
-up
-time attribute
1423 raw value to reflect current
/average as per IBM standard.
1424 - [BA
] smartd
/smartctl
: Added
-v
9,seconds option
for disks which
1425 use Attribute
9 for power
-on lifetime
in seconds.
1426 - [BA
] smartctl
: Added a warning message so that users of some IBM
1427 disks are warned to update their firmware. Note
: we may want
1428 to add a
command-line flag to disable the warning messages.
1429 I have
done this
in a general way
, using regexp
, so that we
1430 can add warnings about any
type of disk that we wish..
1432 * Wed Feb
12 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1433 - [BA
] smartd
: Created a subdirectory examplescripts
/ of
source
1434 directory that contains executable scripts
for the
-M
exec PATH
1435 Directive of smartd.
1436 - [BA
] smartd
: DEVICESCAN
in /etc
/smartd.conf
1437 can now be followed by all the same Directives as a regular
1438 device name like
/dev
/hda takes. This allows one to use
1440 DEVICESCAN
-m root@example.com
1441 in the
/etc
/smartd.conf file.
1442 - [BA
] smartd
: Added
-c
(--checkonce
) command-line option. This checks
1443 all devices once
, then exits. The
exit status can be
1444 used to learn
if devices were detected
, and
if smartd is
1445 functioning correctly. This is primarily
for Distribution
1447 - [BA
] smartd
: Implemented
-M
exec Directive
for
1448 smartd.conf. This makes it possible to run an
1449 arbitrary script or mailing program with the
1451 - [PW
] smartd
: Modified
-M Directive so that it can be given
1452 multiple
times. Added
-M
exec Directive.
1454 * Tue Jan
21 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1455 - [BA
] Fixed bug
in smartctl pointed out by Pierre Gentile.
1456 -d scsi didn't work because tryata and tryscsi were
1457 reversed
-- now works on
/devfs SCSI devices.
1458 - [BA
] Fixed bug
in smartctl pointed out by Gregory Goddard
1459 <ggoddard@ufl.edu
>. Manual says that bit
6 of
return
1460 value turned on
if errors found
in smart error log. But
1461 this wasn't implemented.
1462 - [BA
] Modified printing format
for 9,minutes to
read
1463 Xh
+Ym not X h
+ Y m
, so that fields are fixed width.
1464 - [BA
] Added Attribute
240 "head flying hours"
1466 * Sun Jan
12 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1467 - [BA
] As requested
, local time/date now printed by smartctl
-i
1469 * Thu Jan
9 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1470 - [PW
] Added '
help' argument to
-v
for smartctl
1471 - [PW
] Added
-D
, --showdirectives option to smartd
1473 * Sat Jan
4 2003 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1474 - [DG
] add '
-l selftest' capability
for SCSI devices
(update smartctl
.8)
1475 - [BA
] smartd
,smartctl
: added additional Attribute modification option
1476 -v
220,temp and
-v
9,temp.
1477 - [PW
] Renamed smartd option
-X to
-d
1478 - [PW
] Changed smartd.conf Directives
-- see man page
1479 - [BA
/DG
] Fixed uncommented comment
in smartd.conf
1480 - [DG
] Correct 'Recommended start stop count'
for SCSI devices
1481 - [PW
] Replaced smartd.conf directive
-C with smartd option
-i
1482 - [PW
] Changed options
for smartctl
-- see man page.
1483 - [BA
] Use strerror
() to generate system call error messages.
1484 - [BA
] smartd
: fflush
() all open streams before fork
().
1485 - [BA
] smartctl
, smartd simplified internal handling of checksums
1486 for simpler porting and less code.
1488 * Sun Dec
8 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1489 - [PW
] smartd
--debugmode changed to
--debug
1490 - [BA
] smartd
/smartctl added attribute
230 Head Amplitude from
1492 - [PW
] Added list of proposed new options
for smartctl to README.
1493 - [PW
] smartd
: ParseOpts
() now uses getopt_long
() if HAVE_GETOPT_LONG is
1494 defined and uses getopt
() otherwise. This is controlled by CPPFLAGS
in
1496 - [BA
] smartd
: Fixed a couple of error messages
done with perror
()
1497 to redirect them as needed.
1498 - [BA
] smartctl
: The
-O option to
enable an Immediate off
-line
test
1499 did not print out the correct
time that the
test would take to
1500 complete. This is because the
test timer is volatile and not
1501 fixed. This has been fixed
, and the smartctl
.8 man page has been
1502 updated to explain how to track the Immediate offline
test as it
1503 progresses
, and to further emphasize the differences between the
1504 off
-line immediate
test and the self
-tests.
1505 - [BA
] smartd
/smartctl
: Added new attribute
(200) Multi_Zone_Error_Rate
1506 - [BA
] smartctl
: modified so that arguments could have either a single
-
1507 as
in -ea or multiple ones as
in -e
-a. Improved warning message
for
1508 device not opened
, and fixed error
in redirection of error output of
1509 HD identity
command.
1510 - [PW
] smartd
: added support
for long options. All short options are still
1511 supported
; see manpage
for available long options.
1512 - [BA
] smartctl. When raw Attribute value was
2^
31 or larger
, did
1513 not print correctly.
1515 * Fri Nov
22 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1516 - Allen
: smartd
: added smartd.conf Directives
-T and
-s. The
-T Directive
1517 enables
/disables Automatic Offline Testing. The
-s Directive
1518 enables
/disables Attribute Autosave. Documentation and
1519 example configuration file updated to agree.
1520 - Allen
: smartd
: user can
make smartd check the disks at any
time
1521 (ie
, interrupt sleep
) by sending signal SIGUSR1 to smartd. This
1522 can be
done for example with
:
1524 where
<pid
> is the process ID number of smartd.
1525 - Bolso
: scsi
: don't trust the data we receive from the drive too
1526 much. It very well might have errors
(like zero response length
).
1527 Seen on Megaraid logical drive
, and verified
in the driver
source.
1528 - Allen
: smartd
: added Directive
-m
for sending
test email and
1529 for modifying email reminder behavior. Updated manual
, and sample
1530 configuration file to illustrate
& explain this.
1531 - Allen
: smartd
: increased size of a continued smartd.conf line to
1533 - Allen
: Simplified Directive parsers and improved warning
/error
1536 * Sun Nov
17 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1537 - Fixed bug
in smartd where testunitready logic inverted
1538 prevented functioning on scsi devices.
1539 - Added testunitnotready to smartctl
for symmetry with smartd.
1540 - Brabec
: added Czech descriptions to .spec file
1541 - Brabec
: corrected comment
in smartd.conf example
1542 - Changed way that entries
in the ATA error log are printed
,
1543 to
make it clearer which is the most recent error and
1544 which is the oldest one.
1545 - Changed Temperature_Centigrade to Temperature_Celsius.
1546 The term "Centigrade" ceased to exist
in 1948.
(c.f
1547 http
://www.bartleby.com
/64/C004
/016.html
).
1549 * Wed Nov
13 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1550 - smartd SCSI devices
: can now send warning email message on failure
1551 - Added a new smartd configuration file Directive
: -M ADDRESS.
1552 This sends a single warning email to ADDRESS
for failures or
1553 errors detected with the
-c
, -L
, -l
, or
-f Directives.
1555 * Mon Nov
11 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1556 - Modified perror
() statements
in atacmds.c so that printout
for SMART
1557 commands errors is properly suppressed or queued depending upon users
1558 choices
for error reporting modes.
1559 - Added Italian descriptions to smartmontools.spec file.
1560 - Started impementing send
-mail
-on
-error
for smartd
; not yet enabled.
1562 * Sun Nov
10 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1563 - Added
-P
(Permissive
) Directive to smartd.conf file to allow SMART monitoring of
1564 pre
-ATA
-3 Rev
4 disks that have SMART but
do not have a SMART capability bit.
1566 * Thu Nov
7 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1567 - Added a Man section
5 page
for smartd.conf
1568 - Changed Makefile so that the
-V option does not reflect file state
1570 - modified .spec file so that locale information now contains
1571 character
set definition. Changed pt_BR to pt since we
do not use any
1572 aspect other than language. See man setlocale.
1573 - smartctl
: added new options
-W
, -U
, and
-P to control
if and how the
1574 smartctl exits
if an error is detected
in either a SMART data
1575 structure checksum
, or a SMART
command returns an error.
1576 - modified manual page to
break options into slightly more logical
1578 - reformatted 'usage' message order to agree with man page ordering
1580 * Mon Nov
4 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1581 - smartctl
: added new options
-n and
-N to force device to be ATA or SCSI
1582 - smartctl
: no longer dies silently
if device path does not start
/dev
/X
1583 - smartctl
: now handles arbitrary device paths
1584 - Added additional macros
for manual and sbin paths
in this SPEC file.
1585 - Modified Makefile to
install /etc
/smartd.conf
, but without overwriting existing config file
1586 - Modified this specfile to
do the same
, and to not remove any files that it did not
install
1588 * Thu Oct
30 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1589 - Fixed typesetting error
in man page smartd
.8
1590 - Removed redundant variable
(harmless
) from smartd.c
1592 * Wed Oct
29 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1593 - Added a new directive
for the configuration file. If the word
1594 DEVICESCAN appears before any non
-commented material
in the
1595 configuration file
, then the confi file will be ignored and the
1596 devices wil be scanned.
1597 - Note
: it has now been confirmed that the code modifications between
1598 5.0.23 and
5.0.24 have eliminated the GCC
3.2 problems. Note that
1599 there is a GCC bug howerver
, see
#8404 at
1600 http
://gcc.gnu.org
/bugzilla
/show_bug.cgi?id
=8404
1601 - Added new Directive
for Configuration file
:
1602 -C
<N
> This sets the
time in between disk checks to be
<N
>
1603 seconds apart. Note that although you can give
1604 this Directive multiple
times on different lines of
1605 the configuration file
, only the final value that
1606 is given has an effect
, and applies to all the
1607 disks. The default value of
<N
> is
1800 sec
, and
1608 the minimum allowed value is ten seconds.
1609 - Problem wasn't the print format. F.L.W. Meunier
<0@pervalidus.net
>
1610 sent me a gcc
3.2 build and I ran it under a debugger. The
1611 problem seems to be with passing the very large
(2x512
+4) byte
1612 data structures as arguments. I never liked this anyway
; it was
1613 inherited from smartsuite. So I've changed all the heavyweight
1614 functions
(ATA ones
, anyone
) to just passing pointers
, not hideous
1615 kB size structures on the stack. Hopefully this will now build OK
1616 under gcc
3.2 with any sensible compilation options.
1617 - Because of reported problems with GCC
3.2 compile
, I have gone
1618 thorough the code and explicitly changed all print format
1619 parameters to correspond EXACTLY to int unless they have to be
1620 promoted to long longs. To quote from the glibc bible
: [From
1621 GLIBC Manual
: Since the prototype doesn't specify types
for
1622 optional arguments
, in a call to a variadic
function the default
1623 argument promotions are performed on the optional argument
1624 values. This means the objects of
type char or short int
(whether
1625 signed or not
) are promoted to either int or unsigned int
, as
1627 - smartd
, smartctl now warn
if they find an attribute whose ID
1628 number does not match between Data and Threshold structures.
1629 - Fixed nasty bug which led to wrong number of arguments
for a
1630 varargs statement
, with attendent stack corruption. Sheesh
!
1631 Have added script to CVS attic to
help find such nasties
in the
1634 * Tue Oct
29 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1635 - Eliminated some global variables out of header files and other
1636 minor cleanup of smartd.
1637 - Did some revision of the man page
for smartd and made the usage
1638 messages
for Directives consistent.
1639 - smartd
: prints warning message when it gets SIGHUP
, saying that it is
1640 NOT re
-reading the config file.
1641 - smartctl
: updated man page to say self
-test commands
-O
,x
,X
,s
,S
,A
1642 appear to be supported
in the code.
[I can't
test these
, can anyone
1644 - smartctl
: smartctl would previously print the LBA of a self
-test
1645 if it completed
, and the LBA was not
0 or
0xff...f However
1646 according to the specs this is not correct. According to the
1647 specs
, if the self
-test completed without error
then LBA is
1648 undefined. This version fixes that. LBA value only printed
if
1649 self
-test encountered an error.
1650 - smartd has changed significantly. This is the first CVS checkin of
1651 code that extends the options available
for smartd. The following
1652 options can be placed into the
/etc
/smartd.conf file
, and control the
1654 - Configuration file Directives
(following device name
):
1655 -A Device is an ATA device
1656 -S Device is a SCSI device
1657 -c Monitor SMART Health Status
1658 -l Monitor SMART Error Log
for changes
1659 -L Monitor SMART Self
-Test Log
for new errors
1660 -f Monitor
for failure of any 'Usage' Attributes
1661 -p Report changes
in 'Prefailure' Attributes
1662 -u Report changes
in 'Usage' Attributes
1663 -t Equivalent to
-p and
-u Directives
1664 -a Equivalent to
-c
-l
-L
-f
-t Directives
1665 -i ID Ignore Attribute ID
for -f Directive
1666 -I ID Ignore Attribute ID
for -p
, -u or
-t Directive
1667 # Comment: text after a hash sign is ignored
1668 \ Line continuation character
1669 - cleaned up functions used
for printing CVS IDs. Now use string
1670 library
, as it should be.
1671 - modified length of device name string
in smartd internal structure
1672 to accomodate max length device name strings
1673 - removed un
-implemented
(-e
= Email notification
) option from
1674 command line arg list. We'll put it back on when implemeneted.
1675 - smartd now logs serious
(fatal
) conditions
in its operation at
1676 loglevel LOG_CRIT rather than LOG_INFO before exiting with error.
1677 - smartd used to open a file descriptor
for each SMART enabled
1678 - device
, and
then keep it open the entire
time smartd was running.
1679 This meant that some commands
, like IOREADBLKPART did not work
,
1680 since the fd to the device was open. smartd now opens the device
1681 when it needs to
read values
, then closes it. Also
, if one
time
1682 around it can't open the device
, it simply prints a warning
1683 message but does not give up. Have eliminated the .fd field from
1684 data structures
-- no longer gets used.
1685 - smartd now opens SCSI devices as well using O_RDONLY rather than
1686 O_RDWR. If someone can no longer monitor a SCSI device that used
1687 to be readable
, this may well be the reason why.
1688 - smartd never checked
if the number of ata or scsi devices detected
1689 was greater than the max number it could monitor. Now it does.
1691 * Fri Oct
25 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1692 - changes to the Makefile and spec file so that
if there are ungzipped manual
1693 pages
in place these will be removed so that the new gzipped man pages are
1695 - smartd on startup now looks
in the configuration file
/etc
/smartd.conf
for
1696 a list of devices which to include
in its monitoring list. See man page
1697 (man smartd
) for syntax. If not found
, try all ata and ide devices.
1698 - smartd
: close file descriptors of SCSI device
if not SMART capable
1699 Closes ALL file descriptors after forking to daemon.
1700 - added new temperature attribute
(231, temperature
)
1701 - smartd
: now open ATA disks using O_RDONLY
1703 * Thu Oct
24 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1704 - smartd now prints the name of a failed or changed attribute into logfile
,
1706 - Changed name of
-p
(print version
) option to
-V
1707 - Minor change
in philosophy
: if a SMART
command fails or the device
1708 appears incapable of a SMART
command that the user has asked
for,
1709 complain by printing an error message
, but go ahead and try
1710 anyway. Since unimplemented SMART commands should just
return an
1711 error but not cause disk problems
, this should't cause any
1713 - Added two new flags
: q and Q. q is quiet mode
- only print
: For
1714 the
-l option
, errors recorded
in the SMART error log
; For the
-L
1715 option
, errors recorded
in the device self
-test log
; For the
-c
1716 SMART "disk failing" status or device attributes
(pre
-failure or
1717 usage
) which failed either now or
in the past
; For the
-v option
1718 device attributes
(pre
-failure or usage
) which failed either now
1719 or
in the past. Q is Very Quiet mode
: Print no ouput. The only
1720 way to learn about what was found is to use the
exit status of
1722 - smartctl now returns sensible values
(bitmask
). See smartctl.h
1723 for the values
, and the man page
for documentation.
1724 - The SMART status check now uses the correct ATA call. If failure
1725 is detected we search through attributes to list the failed ones.
1726 If the SMART status check shows GOOD
, we
then look to see
if their
1727 are any usage attributes or prefail attributes have failed at any
1728 time. If so we print them.
1729 - Modified
function that prints vendor attributes to say
if the
1730 attribute has currently failed or has ever failed.
1731 - -p option now prints out license info and CVS strings
for all
1732 modules
in the code
, nicely formatted.
1733 - Previous versions of this code
(and Smartsuite
) only generate
1734 SMART failure errors
if the value of an attribute is below the
1735 threshold and the prefailure bit is
set. However the ATA Spec
1736 (ATA4
<=Rev
4) says that it is a SMART failure
if the value of an
1737 attribute is LESS THAN OR EQUAL to the threshold and the
1738 prefailure bit is
set. This is now fixed
in both smartctl and
1739 smartd. Note that this is a troubled subject
-- the original
1740 SFF
8035i specification defining SMART was inconsistent about
1741 this. One section says that Attribute
==Threshold is pass
,
1742 and another section says it is fail. However the ATA specs are
1743 consistent and say Attribute
==Threshold is a fail.
1744 - smartd did not print the correct value of any failing SMART attribute. It
1745 printed the index
in the attribute table
, not the attribute
1747 - when starting self
-tests
in captive mode ioctl returns EIO because
1748 the drive has been busied out. Detect this and don't
return an eror
1749 in this
case. Check this this is correct
(or how to fix it?
)
1750 - fixed possible error
in how to determine ATA standard support
1751 for devices with no ATA minor revision number.
1752 - device opened only
in read-only not
read-write mode. Don't need R
/W
1753 access to get smart data. Check this with Andre.
1754 - smartctl now handles all possible choices of "multiple options"
1755 gracefully. It goes through the following phases of operation
,
1756 in order
: INFORMATION
, ENABLE
/DISABLE
, DISPLAY DATA
, RUN
/ABORT TESTS.
1757 Documentation has bee updated to explain the different phases of
1758 operation. Control flow through ataPrintMain
()
1760 - If reading device identity information fails
, try seeing
if the info
1761 can be accessed using a "DEVICE PACKET"
command. This way we can
1762 at least get device info.
1763 - Modified Makefile to automatically tag CVS archive on issuance of
1765 - Modified drive detection so minor device ID code showing ATA
-3 rev
1766 0 (no SMART
) is known to not be SMART capable.
1767 - Now verify the checksum of the device ID data structure
, and of the
1768 attributes threshold structure. Before neither of these
1769 structures had their checksums verified.
1770 - New behavior vis
-a
-vis checksums. If they are wrong
, we log
1771 warning messages to stdout
, stderr
, and syslog
, but carry on
1772 anyway. All functions now call a checksumwarning routine
if the
1773 checksum doesn't vanish as it should.
1774 - Changed Read Hard Disk Identity
function to get fresh info from
1775 the disk on each call rather than to use the values that were
read
1776 upon boot
-up into the BIOS. This is the biggest change
in this
1777 release. The ioctl
(device
, HDIO_GET_IDENTITY
, buf
) call should
1778 be avoided
in such code. Note that
if people get garbled strings
1779 for the model
, serial no and firmware versions of their drives
,
1780 then blame goes here
(the BIOS does the byte swapping
for you
,
1782 - Function ataSmartSupport now looks at correct bits
in drive
1783 identity structure to verify first that these bits are valid
,
1785 - Function ataIsSmartEnabled
() written which uses the Drive ID state
1786 information to tell
if SMART is enabled or not. We'll carry this
1787 along
for the moment without using it.
1788 - Function ataDoesSmartWork
() guaranteed to work
if the device
1790 - Replace some numbers by
#define MACROS
1791 - Wrote Function TestTime to
return test time associated with each
1792 different
type of
test.
1793 - Thinking of the future
, have added a new
function called
1794 ataSmartStatus2
(). Eventually when I understand how to use the
1795 TASKFILE API and am sure that this works correctly
, it will
1796 replace ataSmartStatus
(). This queries the drive directly to
1797 see
if the SMART status is OK
, rather than comparing thresholds to
1798 attribute values ourselves. But I need to get some drives that fail
1799 their SMART status to check it.
1801 * Thu Oct
17 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1802 - Removed extraneous space before some error message printing.
1803 - Fixed some character buffers that were too short
for contents.
1804 Only used
for unrecognized drives
, so probably damage was minimal.
1806 * Wed Oct
16 2002 Bruce Allen
<smartmontools
-support@lists.sourceforge.net
>
1807 - Initial release. Code is derived from smartsuite
, and is
1808 intended to be compatible with the ATA
/ATAPI
-5 specifications.
1809 - For IBM disks whose raw temp data includes three temps. print all
1811 - print timestamps
for error log to msec precision
1812 - added
-m option
for Hitachi disks that store power on life
in
1814 - added
-L option
for printing self
-test error logs
1815 - in -l option
, now print power on lifetime
, so that one can see
1816 when the error took place
1817 - updated SMART structure definitions to ATA
-5 spec
1819 - added
-f and
-F options to
enable/disable autosave threshold