[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: caractéristique d'un dd sata



Sylvain Sauvage a écrit :
Mercredi 13 septembre 2006, 20:54:55 CEST, Thierry B a écrit :
[...] Hello,

ca me donne ca mnt:

# smartctl -i -d ata /dev/sda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce
Allen Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:
Serial Number:
Firmware Version: 3.AAC
User Capacity:    320,072,933,376 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Sep 13 20:47:45 2006 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Donc ça marche.

Par contre, qd je fais:

# /etc/init.d/smartmontools restart
Restarting S.M.A.R.T. daemon: smartd (failed)


Apparemment, il n'arrive pas à lancer smartd:

J'ai decommenter cette ligne dans le smartd.conf:

# Linux-specific example: monitor a SATA (Serial ATA) disk which uses
# the libata driver.  This requires a Linux 2.6.15 or later kernel.
# Note that the disk is addressed via a SCSI device, but the
# underlying disk type is actually ATA
/dev/sda -a -s on -d ata

Une idée, pour que smartd fonctionne en plus de smartctl lol?

Regarde /var/log/daemon.log, smartd y donne des infos. Il devrait dire
pourquoi il ne se lance pas.

Vérifie aussi qu'il n'y a pas d'autres lignes non commentées dans
smartd.conf, notamment DEVICESCAN...

Oui, effectivement DEVICESCAN était commenté.


Personnellement, je mets : /dev/hda -a -m root@localhost
(
 -m ...      : envoie un courriel en cas de pépin ;

 -a          : -H -f -t -l error -l selftest -C 197 -U 198 ;
 -H          : (health) surveiller la santé du disque et reporter les
               erreurs ;
 -f          : (fail) surveiller d'autres erreurs ;
-l error -l selftest : surveille les logs ;
 -C 197      : vérifie que l'attribut « Current_Pending_Sector » (n°197)
               n'est pas à zéro ;
 -U 198      : vérifie l'attribut « Offline_Uncorrectable » (n°198).
)

[
  lol = laughing out loud : rire très fort ; je ne vois pas trop ce que
  ça a à voir avec la question...
  (parfois, lol = lots of love...)
]

Oui, je mets souvent "lol", sur les listes, forums, tchats...je vais faire attention ici.

Par contre, je ne vois pas trop ce que veut dire:

Autosave' (-S on) and 'Enable Automatic Offline'  (-o  on)  com-
              mands  to  the  disk

Je les ai qd mm mis, pq ils sont mis dans un exemple de smartd.conf pour hda, mais je ne comprends pas trop leur utilité.

p 14 10:41:21 serveurP4 smartd[16098]: Device: /dev/sda, opened
Sep 14 10:41:21 serveurP4 smartd[16098]: Device: /dev/sda, not found in smartd database. Sep 14 10:41:21 serveurP4 smartd[16098]: Device: /dev/sda, could not enable SMART Attribute Autosave. Sep 14 10:41:21 serveurP4 smartd[16098]: Device: /dev/sda, enable SMART Automatic Offline Testing failed. Sep 14 10:41:21 serveurP4 smartd[16098]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Sep 14 10:41:21 serveurP4 smartd[16098]: Monitoring 1 ATA and 0 SCSI devices
Sep 14 10:41:22 serveurP4 smartd[16100]: smartd has fork()ed into background mode. New PID=16100. Sep 14 10:41:22 serveurP4 smartd[16100]: file /var/run/smartd.pid written containing PID 16100

Je vais les enlever sinon, vu que je comprends pas trop leur utilité exact donc mnt ca me donne cela:

/dev/sda -a -d ata -m postmaster@xxx
/dev/sdb -a -d ata -m postmaster@xxx

et niveau logs:

ep 14 10:51:41 serveurP4 smartd[16410]: Home page is http://smartmontools.sourceforge.net/ Sep 14 10:51:41 serveurP4 smartd[16410]: Opened configuration file /etc/smartd.conf Sep 14 10:51:41 serveurP4 smartd[16410]: Configuration file /etc/smartd.conf parsed.
Sep 14 10:51:41 serveurP4 smartd[16410]: Device: /dev/sda, opened
Sep 14 10:51:41 serveurP4 smartd[16410]: Device: /dev/sda, not found in smartd database. Sep 14 10:51:41 serveurP4 smartd[16410]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Sep 14 10:51:41 serveurP4 smartd[16410]: Device: /dev/sdb, opened
Sep 14 10:51:41 serveurP4 smartd[16410]: Device: /dev/sdb, not found in smartd database. Sep 14 10:51:41 serveurP4 smartd[16410]: Device: /dev/sdb, is SMART capable. Adding to "monitor" list.
Sep 14 10:51:41 serveurP4 smartd[16410]: Monitoring 2 ATA and 0 SCSI devices
Sep 14 10:51:41 serveurP4 smartd[16412]: smartd has fork()ed into background mode. New PID=16412. Sep 14 10:51:41 serveurP4 smartd[16412]: file /var/run/smartd.pid written containing PID 16412

PS: Je vais poster un nouveau thread à partir d'un pb que j'ai eu hier, et que j'ai pas trop réussi à debugger, ce qui m'a vallut un reboot, si tu as une idee, je veux bien que tu me le dises :-)

Je te remercie pour tout :-)



Reply to: