Newsgroup: it.comp.os.linux.iniziare
Titolo: [lungo] allarme raid sw... che fare?

Ciao a tutti.
Ho appena controllato la posta e il mio serverino di casa me ne ha appena 
mandate due con questi oggetti:
SMART error (ErrorCount) detected on host: bell
Fail event on /dev/md0:bell
:-(
bell è un serverino athlon con un array raid 1 software (80G+80G) con una 
ubuntu server 8.04
Attualmente mdstat riporta questo stato:
md1 : active raid1 sda2[0] sdb2[1]
      1911616 blocks [2/2] [UU]
 
md0 : active raid1 sda1[0]
      78123968 blocks [2/1] [U_]
Quello che mi pare strano è che il secondo disco non è morto 
completamente... infatti il device md1 è ancora vivo e vegeto.
Solo md0 è degradato.
SMART mi dice, su tutti e due i dischi che:
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
(forse dovrei lanciare qualche test?)
Che mi consigliate di fare?
Grazie!
P.s.: il tutto è successo questa notte...
Nov  2 01:06:01 bell /USR/SBIN/CRON[5378]: (root) CMD ([ -x /usr/share/
mdadm/checkarray ] && [ $(date +%d) -le 7 ] && /usr/share/mdadm/
checkarray --cron --all --quiet)
Nov  2 01:06:02 bell mdadm: RebuildStarted event detected on md device /
dev/md0
Nov  2 01:06:02 bell kernel: [40372.478733] md: data-check of RAID array 
md0
Nov  2 01:06:02 bell kernel: [40372.478746] md: minimum _guaranteed_  
speed: 1000 KB/sec/disk.
Nov  2 01:06:02 bell kernel: [40372.478749] md: using maximum available 
idle IO bandwidth (but not more than 200000 KB/sec) for data-check.
Nov  2 01:06:02 bell kernel: [40372.478756] md: using 128k window, over a 
total of 78123968 blocks.
Nov  2 01:06:02 bell kernel: [40372.488688] md: delaying data-check of 
md1 until md0 has finished (they share one or more physical units)
[...]
Nov  2 01:23:02 bell mdadm: Rebuild40 event detected on md device /dev/md0
Nov  2 01:23:16 bell smartd[4991]: Device: /dev/sda, SMART Prefailure 
Attribute: 8 Seek_Time_Performance changed from 247 to 249 
Nov  2 01:23:16 bell smartd[4991]: Device: /dev/sda, SMART Usage 
Attribute: 190 Temperature_Celsius changed from 57 to 54 
Nov  2 01:23:17 bell smartd[4991]: Device: /dev/sdb, SMART Prefailure 
Attribute: 8 Seek_Time_Performance changed from 247 to 249 
[...]
Nov  2 01:31:02 bell mdadm: Rebuild60 event detected on md device /dev/md0
[...]
Nov  2 01:41:02 bell mdadm: Rebuild80 event detected on md device /dev/md0
[...]
Nov  2 01:52:37 bell kernel: [43164.909804] md: md0: data-check done.
Nov  2 01:52:39 bell kernel: [43166.339709] ata4.00: exception Emask 0x0 
SAct 0x0 SErr 0x0 action 0x0
Nov  2 01:52:39 bell kernel: [43166.339750] ata4.00: BMDMA stat 0x4
Nov  2 01:52:39 bell kernel: [43166.339772] ata4.00: cmd 
c8/00:00:3f:1d:50/00:00:00:00:00/e9 tag 0 dma 131072 in
Nov  2 01:52:39 bell kernel: [43166.339774]          res 
51/40:00:b5:1d:50/00:00:00:00:00/e9 Emask 0x9 (media error)
Nov  2 01:52:39 bell kernel: [43166.339804] ata4.00: status: { DRDY ERR }
Nov  2 01:52:39 bell kernel: [43166.339820] ata4.00: error: { UNC }
Nov  2 01:52:39 bell kernel: [43166.374076] ata4.00: configured for 
UDMA/133
Nov  2 01:52:39 bell kernel: [43166.374096] ata4: EH complete
Nov  2 01:52:40 bell kernel: [43167.696234] ata4.00: exception Emask 0x0 
SAct 0x0 SErr 0x0 action 0x0
Nov  2 01:52:40 bell kernel: [43167.696269] ata4.00: BMDMA stat 0x4
Nov  2 01:52:40 bell kernel: [43167.696291] ata4.00: cmd 
c8/00:00:3f:1d:50/00:00:00:00:00/e9 tag 0 dma 131072 in
Nov  2 01:52:40 bell kernel: [43167.696293]          res 
51/40:00:b5:1d:50/00:00:00:00:00/e9 Emask 0x9 (media error)
[...]
Nov  2 01:52:46 bell kernel: [43173.265689] sd 3:0:0:0: [sdb] Sense Key : 
Medium Error [current] [descriptor]
Nov  2 01:52:46 bell kernel: [43173.265696] Descriptor sense data with 
sense descriptors (in hex):
Nov  2 01:52:46 bell kernel: [43173.265698]         72 03 11 04 00 00 00 
0c 00 0a 80 00 00 00 00 00 
Nov  2 01:52:46 bell kernel: [43173.265706]         09 50 1d b5 
Nov  2 01:52:46 bell kernel: [43173.265709] sd 3:0:0:0: [sdb] Add. Sense: 
Unrecovered read error - auto reallocate failed
Nov  2 01:52:46 bell kernel: [43173.265717] end_request: I/O error, dev 
sdb, sector 156245429
Nov  2 01:52:46 bell kernel: [43173.265739] ata4: EH complete
Nov  2 01:52:46 bell kernel: [43173.277516] sd 3:0:0:0: [sdb] 160086528 
512-byte hardware sectors (81964 MB)
Nov  2 01:52:46 bell kernel: [43173.281043] sd 3:0:0:0: [sdb] Write 
Protect is off
Nov  2 01:52:46 bell kernel: [43173.281050] sd 3:0:0:0: [sdb] Mode Sense: 
00 3a 00 00
Nov  2 01:56:47 bell kernel: [43173.289622] sd 3:0:0:0: [sdb] Write 
cache: enabled, read cache: enabled, doesn't support DPO or FUA
Nov  2 01:56:47 bell kernel: [43173.298206] sd 3:0:0:0: [sdb] 160086528 
512-byte hardware sectors (81964 MB)
Nov  2 01:56:47 bell kernel: [43173.301734] sd 3:0:0:0: [sdb] Write 
Protect is off
Nov  2 01:56:47 bell kernel: [43173.301740] sd 3:0:0:0: [sdb] Mode Sense: 
00 3a 00 00
Nov  2 01:56:47 bell kernel: [43173.310312] sd 3:0:0:0: [sdb] Write 
cache: enabled, read cache: enabled, doesn't support DPO or FUA
[...]
Nov  2 01:56:47 bell kernel: [43414.470731] Descriptor sense data with 
sense descriptors (in hex):
Nov  2 01:56:47 bell kernel: [43414.470734]         72 0b 00 00 00 00 00 
0c 00 0a 80 00 00 00 00 00 
Nov  2 01:56:47 bell kernel: [43414.470741]         09 50 1d b5 
Nov  2 01:56:47 bell kernel: [43414.470745] sd 3:0:0:0: [sdb] Add. Sense: 
No additional sense information
Nov  2 01:56:47 bell kernel: [43414.470750] end_request: I/O error, dev 
sdb, sector 156245311
Nov  2 01:56:47 bell kernel: [43414.470760] raid1: Disk failure on sdb1, 
disabling device. 
Nov  2 01:56:47 bell kernel: [43414.470762] ^IOperation continuing on 1 
devices
Nov  2 01:56:47 bell kernel: [43414.470879] ata4: EH complete
Nov  2 01:56:47 bell kernel: [43414.472120] md: data-check of RAID array 
md1
Nov  2 01:56:47 bell kernel: [43414.472125] md: minimum _guaranteed_  
speed: 1000 KB/sec/disk.
Nov  2 01:56:47 bell kernel: [43414.472129] md: using maximum available 
idle IO bandwidth (but not more than 200000 KB/s
ec) for data-check.
Nov  2 01:56:47 bell kernel: [43414.472134] md: using 128k window, over a 
total of 1911616 blocks.
Nov  2 01:56:47 bell kernel: [43414.554876] sd 3:0:0:0: [sdb] 160086528 
512-byte hardware sectors (81964 MB)
Nov  2 01:56:47 bell kernel: [43414.569436] sd 3:0:0:0: [sdb] Write 
Protect is off
Nov  2 01:56:47 bell kernel: [43414.569451] sd 3:0:0:0: [sdb] Mode Sense: 
00 3a 00 00
Nov  2 01:56:47 bell kernel: [43414.577541] sd 3:0:0:0: [sdb] Write 
cache: enabled, read cache: enabled, doesn't support
 DPO or FUA
Nov  2 01:56:47 bell kernel: [43414.586148] sd 3:0:0:0: [sdb] 160086528 
512-byte hardware sectors (81964 MB)
Nov  2 01:56:47 bell kernel: [43414.589664] sd 3:0:0:0: [sdb] Write 
Protect is off
Nov  2 01:56:47 bell kernel: [43414.589674] sd 3:0:0:0: [sdb] Mode Sense: 
00 3a 00 00
Nov  2 01:56:47 bell kernel: [43414.598253] sd 3:0:0:0: [sdb] Write 
cache: enabled, read cache: enabled, doesn't support
 DPO or FUA
Nov  2 01:56:47 bell kernel: [43414.622077] RAID1 conf printout:
Nov  2 01:56:47 bell kernel: [43414.622089]  --- wd:1 rd:2
Nov  2 01:56:47 bell kernel: [43414.622093]  disk 0, wo:0, o:1, dev:sda1
Nov  2 01:56:47 bell kernel: [43414.622096]  disk 1, wo:1, o:0, dev:sdb1
Nov  2 01:56:47 bell kernel: [43414.650105] RAID1 conf printout:
Nov  2 01:56:47 bell kernel: [43414.650117]  --- wd:1 rd:2
Nov  2 01:56:47 bell kernel: [43414.650121]  disk 0, wo:0, o:1, dev:sda1
[...]
Nov  2 01:56:47 bell smartd[4991]: Device: /dev/sdb, SMART Prefailure 
Attribute: 8 Seek_Time_Performance changed from 24
9 to 251 
Nov  2 01:56:48 bell mdadm: RebuildFinished event detected on md device /
dev/md0, component device  mismatches found: 30976
Nov  2 01:56:48 bell smartd[4991]: Device: /dev/sdb, ATA error count 
increased from 424 to 430 
Nov  2 01:56:48 bell smartd[4991]: Sending warning via /usr/share/
smartmontools/smartd-runner to xxxxxxxxxxxxxx@xxxxxxxx ... 
Nov  2 01:56:52 bell mdadm: Fail event detected on md device /dev/md0, 
component device /dev/sdb1
Nov  2 01:56:52 bell mdadm: RebuildStarted event detected on md device /
dev/md1
Nov  2 01:56:52 bell smartd[4991]: Warning via /usr/share/smartmontools/
smartd-runner to xxxxxxxxxxxxxx@xxxxxxxx: successful 
Nov  2 01:57:52 bell mdadm: Rebuild80 event detected on md device /dev/md1
Nov  2 01:57:53 bell kernel: [43479.960003] md: md1: data-check done.
Nov  2 01:57:53 bell kernel: [43480.033539] RAID1 conf printout:
Nov  2 01:57:53 bell kernel: [43480.033549]  --- wd:2 rd:2
Nov  2 01:57:53 bell kernel: [43480.033553]  disk 0, wo:0, o:1, dev:sda2
Nov  2 01:57:53 bell kernel: [43480.033556]  disk 1, wo:0, o:1, dev:sdb2
Nov  2 01:57:53 bell mdadm: RebuildFinished event detected on md device /
dev/md1

 dev/md1
io giocherei d'anticipo. backup completo SUBITO  e sostituzione del disco.
meglio non rischiare 
-- 
--------------------------------
linux slackware
tutto il resto e' inutile
--------------------------------

 meglio non rischiare
Questo sì ma io mi affiderei ai backup precedenti.
Li hai fatti vero?

 Questo sì ma io mi affiderei ai backup precedenti.
Anche io, ma un mirror è perfettamente funzionante con un disco rotto, 
per definizione.
ciao, f.

 
[...]
Grazie a tutti per le risposte.
Premetto che il serverino non contiene alcun dato che non sia backuppato 
(e comunque non è roba essenziale :-) )
Forse il problema era dovuto ad un eccessivo surriscaldamento dei 
dischi... li ho spostati e liberato un po' il case.
Poi ho fatto un paio di controlli con SMART e sono andati ok.
Ho riaggiunto il disco all'array e si è risincronizzato.
Nei prossimi giorni comunque lo cambierò....
Ciao e grazie di nuovo.
-- 
Sandro