Donc je disais:
Comment préserver vos disque dur et surtout comment les controler avant une casse irrémédiable.
Ouvrez une console xterm ou autre terminal.
alt + f2
et a l'invite tapez : konsole
ou xterm
puis faire entrer
veuillez passer en mode administrateur, soit supert utilisateur, donc en root
faire : su
taper votre mot de pass root puis valider par entrer
On va faire le chose proprement, donc on va se mettre dans le répertoire /usr/local
pour ce faire:
tapez :
cd /usr/local
-vous allez vous retrouver donc dans le répertoire /usr/local
C'est ici que nous allons installer, et downloader nos rpm, tarball etc...
-dans votre console d'administrateur tapez :
wget http://jaist.dl.sourceforge.net/sourceforg...5.36-1.i386.rpm
valider par entrer.
vous devez avoir :
Code
open:/srv/www/htdocs # cd /usr/local/
open:/usr/local # wget http://jaist.dl.sourceforge.net/sourceforge/smartmontools/smartmontools-5.36-1.i386.rpm
--19:31:46-- http://jaist.dl.sourceforge.net/sourceforge/smartmontools/smartmontools-5.36-1.i386.rpm
=> `smartmontools-5.36-1.i386.rpm'
Résolution de jaist.dl.sourceforge.net... 150.65.7.130
Connexion vers jaist.dl.sourceforge.net|150.65.7.130|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 369,283 (361K) [application/x-redhat-package-manager]
100%[==============================================
================================>] 369,283 18.93K/s ETA 00:00
19:32:04 (22.12 KB/s) - « smartmontools-5.36-1.i386.rpm » sauvegardé [369283/369283]
open:/usr/local #
open:/usr/local # wget http://jaist.dl.sourceforge.net/sourceforge/smartmontools/smartmontools-5.36-1.i386.rpm
--19:31:46-- http://jaist.dl.sourceforge.net/sourceforge/smartmontools/smartmontools-5.36-1.i386.rpm
=> `smartmontools-5.36-1.i386.rpm'
Résolution de jaist.dl.sourceforge.net... 150.65.7.130
Connexion vers jaist.dl.sourceforge.net|150.65.7.130|:80...connecté.
requête HTTP transmise, en attente de la réponse...200 OK
Longueur: 369,283 (361K) [application/x-redhat-package-manager]
100%[==============================================
================================>] 369,283 18.93K/s ETA 00:00
19:32:04 (22.12 KB/s) - « smartmontools-5.36-1.i386.rpm » sauvegardé [369283/369283]
open:/usr/local #
ceci vous à permis de télécharger le rpm de smart, nous allons maintenant l'installer:
rpm -ivh smartmontools-5.36-1.i386.rpm
attendre la fin de l'install.
nous allons activer SMART, et faire en sorte de sauvegarder automatiquement la sauvegarde des attributs ainsi que la mise à jour automatique des attributs « offline » du disque.
avant nous allons savoir quel sont nos disqu, par la commande df(je m'y attarderais par la suite)
df -h
Code
open:/usr/local # df -h
Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/hda2 27G 23G 4,2G 85% /
tmpfs 506M 12K 506M 1% /dev/shm
/dev/hdc6 70G 18G 53G 25% /ancien
open:/usr/local #
Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/hda2 27G 23G 4,2G 85% /
tmpfs 506M 12K 506M 1% /dev/shm
/dev/hdc6 70G 18G 53G 25% /ancien
open:/usr/local #
maintenant que l'on connait nos disque dur, /dev/hda2 & /dev/hdc6
vérifions si smart est activé :
smartctl -a /dev/hda2
Code
open:/usr/local # smartctl -a /dev/hda2
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 ===
Model Family: Western Digital Caviar family
Device Model: WDC WD300BB-00AUA1
Serial Number: WD-WMA6W1376899
Firmware Version: 18.20D18
User Capacity: 30,020,272,128 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 5
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sun Jul 9 19:42:03 2006 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
SMART Disabled. Use option -s with argument 'on' to enable it.
open:/usr/local # smartctl -a /dev/hdc6
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 ===
Model Family: Hitachi Deskstar 7K80 series
Device Model: HDS728080PLAT20
Serial Number: PFD216S4SVYXHV
Firmware Version: PF2OA21B
User Capacity: 82,348,277,760 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1
Local Time is: Sun Jul 9 19:42:08 2006 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
SMART Disabled. Use option -s with argument 'on' to enable it.
open:/usr/local #
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 ===
Model Family: Western Digital Caviar family
Device Model: WDC WD300BB-00AUA1
Serial Number: WD-WMA6W1376899
Firmware Version: 18.20D18
User Capacity: 30,020,272,128 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 5
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sun Jul 9 19:42:03 2006 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
SMART Disabled. Use option -s with argument 'on' to enable it.
open:/usr/local # smartctl -a /dev/hdc6
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 ===
Model Family: Hitachi Deskstar 7K80 series
Device Model: HDS728080PLAT20
Serial Number: PFD216S4SVYXHV
Firmware Version: PF2OA21B
User Capacity: 82,348,277,760 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1
Local Time is: Sun Jul 9 19:42:08 2006 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
SMART Disabled. Use option -s with argument 'on' to enable it.
open:/usr/local #
On s'apperçois que le smart n'ai pas activé, donc pour l'activer:
smartctl --smart=on --offlineauto=on --saveauto=on /dev/hda
Code
open:/usr/local # smartctl --smart=on --offlineauto=on --saveauto=on /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.
open:/usr/local #
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
SMART Attribute Autosave Enabled.
SMART Automatic Offline Testing Enabled every four hours.
open:/usr/local #
Maintenant si on vérifie, l'activation de smart sur le disque dur :
smartctl -a /dev/hda2
Code
open:/usr/local # smartctl -a /dev/hda2
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 ===
Model Family: Western Digital Caviar family
Device Model: WDC WD300BB-00AUA1
Serial Number: WD-WMA6W1376899
Firmware Version: 18.20D18
User Capacity: 30,020,272,128 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 5
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sun Jul 9 19:50:47 2006 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (1530) seconds.
Offline data collection
capabilities: (0x1b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 24) minutes.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0007 106 103 021 Pre-fail Always - 3525
4 Start_Stop_Count 0x0032 096 096 040 Old_age Always - 4992
5 Reallocated_Sector_Ct 0x0032 187 187 112 Old_age Always - 52
7 Seek_Error_Rate 0x000b 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 087 087 000 Old_age Always - 10174
10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 096 096 000 Old_age Always - 4926
196 Reallocated_Event_Count 0x0032 179 179 000 Old_age Always - 21
197 Current_Pending_Sector 0x0012 198 198 000 Old_age Always - 10
198 Offline_Uncorrectable 0x0012 199 199 000 Old_age Always - 7
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 190 190 051 Pre-fail Offline - 83
SMART Error Log Version: 1
ATA Error Count: 12 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 12 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:47.550 READ DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
Error 11 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:42.900 READ DMA
c8 00 08 cb 35 ec e2 00 01:13:42.900 READ DMA
c8 00 08 eb 35 ec e2 00 01:13:42.850 READ DMA
c8 00 08 c3 34 ec e2 00 01:13:42.850 READ DMA
ca 00 10 c3 87 08 e3 00 01:13:42.850 WRITE DMA
Error 10 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:38.050 READ DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
Error 9 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:33.400 READ DMA
c8 00 08 f3 35 ec e2 00 01:13:33.400 READ DMA
c8 00 08 9b 36 ec e2 00 01:13:33.350 READ DMA
c8 00 08 43 35 ec e2 00 01:13:33.350 READ DMA
c8 00 08 c3 36 ec e2 00 01:13:33.350 READ DMA
Error 8 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:28.000 READ DMA
ca 00 48 63 a2 20 e0 00 01:13:27.950 WRITE DMA
ca 00 00 63 a1 20 e0 00 01:13:27.950 WRITE DMA
ca 00 00 63 a0 20 e0 00 01:13:27.950 WRITE DMA
ca 00 00 63 9f 20 e0 00 01:13:27.950 WRITE DMA
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
Device does not support Selective Self Tests/Logging
open:/usr/local #
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 ===
Model Family: Western Digital Caviar family
Device Model: WDC WD300BB-00AUA1
Serial Number: WD-WMA6W1376899
Firmware Version: 18.20D18
User Capacity: 30,020,272,128 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 5
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sun Jul 9 19:50:47 2006 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (1530) seconds.
Offline data collection
capabilities: (0x1b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 24) minutes.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0007 106 103 021 Pre-fail Always - 3525
4 Start_Stop_Count 0x0032 096 096 040 Old_age Always - 4992
5 Reallocated_Sector_Ct 0x0032 187 187 112 Old_age Always - 52
7 Seek_Error_Rate 0x000b 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 087 087 000 Old_age Always - 10174
10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 096 096 000 Old_age Always - 4926
196 Reallocated_Event_Count 0x0032 179 179 000 Old_age Always - 21
197 Current_Pending_Sector 0x0012 198 198 000 Old_age Always - 10
198 Offline_Uncorrectable 0x0012 199 199 000 Old_age Always - 7
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 190 190 051 Pre-fail Offline - 83
SMART Error Log Version: 1
ATA Error Count: 12 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 12 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:47.550 READ DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:47.550 WRITE DMA
Error 11 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:42.900 READ DMA
c8 00 08 cb 35 ec e2 00 01:13:42.900 READ DMA
c8 00 08 eb 35 ec e2 00 01:13:42.850 READ DMA
c8 00 08 c3 34 ec e2 00 01:13:42.850 READ DMA
ca 00 10 c3 87 08 e3 00 01:13:42.850 WRITE DMA
Error 10 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:38.050 READ DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
ca 00 08 cb 87 08 e3 00 01:13:38.050 WRITE DMA
Error 9 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:33.400 READ DMA
c8 00 08 f3 35 ec e2 00 01:13:33.400 READ DMA
c8 00 08 9b 36 ec e2 00 01:13:33.350 READ DMA
c8 00 08 43 35 ec e2 00 01:13:33.350 READ DMA
c8 00 08 c3 36 ec e2 00 01:13:33.350 READ DMA
Error 8 occurred at disk power-on lifetime: 554 hours (23 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 08 df 35 ec e2 Error: UNC 8 sectors at LBA = 0x02ec35df = 49034719
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 db 35 ec e2 00 01:13:28.000 READ DMA
ca 00 48 63 a2 20 e0 00 01:13:27.950 WRITE DMA
ca 00 00 63 a1 20 e0 00 01:13:27.950 WRITE DMA
ca 00 00 63 a0 20 e0 00 01:13:27.950 WRITE DMA
ca 00 00 63 9f 20 e0 00 01:13:27.950 WRITE DMA
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
Device does not support Selective Self Tests/Logging
open:/usr/local #
On fait de même pour le disque 2
smartctl --smart=on --offlineauto=on --saveauto=on /dev/hdc
puis on vérifie.
Donc smart est installé puis nos disques dur sont activé.
La partie de la sortie de smart, fous informe sur le N° de série du disque ainsi que le modèle, a savoir que smart a une base de donnée de nombreux modèl, si le votre est dans sa base, il pourra vous sortir d'autre information.
Dans un second temps smart vous indique la température de votre disque, et beaucoup d'autre information:
Si a la ligne:
SMART overall-health self-assessment test result: affiche FAILING
eteignez votre ordinateur, laisser refroidir votre disque dur 1h00 mini, puis redémarrer avec un autre disque dur en esclave et faite une sauvegarde immédiate de vos données, sinon utiliser une cd-live linux pour faire une backup complète sur un autre disque avec dd (prochain topics)
dd if=/dev/hda of=/dev/hdb
sauvegardez vos données le plus rapidement possible.
Code
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART overall-health self-assessment test result: PASSED
Nous allons tester nos disque dur avec une boucle que le disque dur vas effectuer, puis gardé en mémoire, afin que nous puissions l'intéroger:
smartctl -t short /dev/hda2
Code
open:/usr/local # smartctl -t short /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Sun Jul 9 20:16:05 2006
Use smartctl -X to abort test.
open:/usr/local #
puis nous allons lire les log :
smartctl -l selftest /dev/hda
[code]
open:/usr/local # smartctl --test=long /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 24 minutes for test to complete.
Test will complete after Sun Jul 9 20:43:16 2006
Use smartctl -X to abort test.
open:/usr/local # smartctl -l selftest /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Aborted by host 80% 344 -
# 2 Short offline Completed without error 00% 344 -
# 3 Short offline Aborted by host 80% 344 -
open:/usr/local #
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Sun Jul 9 20:16:05 2006
Use smartctl -X to abort test.
open:/usr/local #
puis nous allons lire les log :
smartctl -l selftest /dev/hda
[code]
open:/usr/local # smartctl --test=long /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 24 minutes for test to complete.
Test will complete after Sun Jul 9 20:43:16 2006
Use smartctl -X to abort test.
open:/usr/local # smartctl -l selftest /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Aborted by host 80% 344 -
# 2 Short offline Completed without error 00% 344 -
# 3 Short offline Aborted by host 80% 344 -
open:/usr/local #
Un test short(cour) dure environ 1 minute
Un test long(long) dure environ 1 heure
cela peut ce faire sans problème avec un environnement en marche, et l'altère en rien les data.
Mais maintenant tous ceci ce fait à la mano donc pour automatiser le contrôle périodique de nos disque et avoir les information critique mel ou sms, il faut utiliser un demon fournis par l'utilitaire smart, et c'est ce que nous allons voir, maintenant.
@microsp
PS: petite pause
