Newsgroup: it.comp.os.linux.sys
Titolo: Dmesg log di errore RAID1

Aproposito di WD green,
sto bestemmiando da un mese su un server in Raid1 mdadm,
su 4 partizioni, dove Home occupa 844Giga su un tera,
appunto /home non si sincronizza e da una sfilza di questi:
[2123944.349369]  disk 0, wo:0, o:1, dev:sda6
[2123944.349372]  disk 1, wo:1, o:1, dev:sdb6
[2123944.349375] RAID1 conf printout:
[2123944.349377]  --- wd:1 rd:2
[2123944.349380]  disk 0, wo:0, o:1, dev:sda6
[2123944.349383]  disk 1, wo:1, o:1, dev:sdb6
[2123944.584789] RAID1 conf printout:
[2123944.584793]  --- wd:1 rd:2
[2123944.584796]  disk 0, wo:0, o:1, dev:sda6
[2123944.584799]  disk 1, wo:1, o:1, dev:sdb6
[2123944.584801] RAID1 conf printout:
[2123944.584804]  --- wd:1 rd:2
[2123944.584806]  disk 0, wo:0, o:1, dev:sda6
[2123944.584809]  disk 1, wo:1, o:1, dev:sdb6
[2123952.228764] RAID1 conf printout:
[2123952.228769]  --- wd:1 rd:2
[2123952.228773]  disk 0, wo:0, o:1, dev:sda6
[2123952.228776]  disk 1, wo:1, o:1, dev:sdb6
[2123952.228779] RAID1 conf printout:
[2123952.228781]  --- wd:1 rd:2
L'hdparm:
 hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
        Model Number:       WDC WD10EADS-65M2B0
        Serial Number:      WD-WCAV51276301
        Firmware Revision:  01.00A01
        Transport:          Serial, SATA 1.0a, SATA II Extensions,
SATA Rev 2.5
Standards:
        Supported: 8 7 6 5
        Likely used: 8
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors: 1953525168
        device size with M = 1024*1024:      953869 MBytes
        device size with M = 1000*1000:     1000204 MBytes (1000 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, with device specific
minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 128
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5
*udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow
control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                Power-Up In Standby feature set
           *    SET_FEATURES required to spinup after power up
           *    Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    64-bit World wide name
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    SATA-I signaling speed (1.5Gb/s)
           *    SATA-II signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
           *    unknown 76[12]
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
           *    SMART Command Transport (SCT) feature set
           *    SCT Long Sector Access (AC1)
           *    SCT LBA Segment Access (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
                unknown 206[12] (vendor specific)
                unknown 206[13] (vendor specific)
Security:
        198min for SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50014ee2ade3922f
        NAA             : 5
        IEEE OUI        : 14ee
        Unique ID       : 2ade3922f
Checksum: correct
--------------------------------------------------------------------------------------
SMART:
smartctl --all /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce
Allen
Home page is 
http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model:     WDC WD10EADS-65M2B0
Serial Number:    WD-WCAV51276301
Firmware Version: 01.00A01
User Capacity:    1,000,204,886,016 bytes
Device is:        Not in smartctl database [for details use: -P
showall]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Fri Dec 18 13:26:02 2009 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status:  (0x84) Offline data collection
activity
                                        was suspended by an
interrupting command from host.
                                        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:                 (19560) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline
immediate.
                                        Auto Offline data collection
on/off support.
                                        Suspend Offline collection
upon new
                                        command.
                                        Offline surface scan
supported.
                                        Self-test supported.
                                        Conveyance Self-test
supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before
entering
                                        power-saving mode.
                                        Supports SMART auto save
timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging
supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 226) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x303f) SCT Status supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.
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     0x002f   200   200   051    Pre-fail
Always       -       0
  3 Spin_Up_Time            0x0027   133   133   021    Pre-fail
Always       -       6325
  4 Start_Stop_Count        0x0032   100   100   000    Old_age
Always       -       9
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail
Always       -       0
  7 Seek_Error_Rate         0x002e   200   171   000    Old_age
Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age
Always       -       1018
 10 Spin_Retry_Count        0x0032   100   253   000    Old_age
Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   000    Old_age
Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age
Always       -       8
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age
Always       -       6
193 Load_Cycle_Count        0x0032   200   200   000    Old_age
Always       -       333
194 Temperature_Celsius     0x0022   122   118   000    Old_age
Always       -       25
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age
Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age
Always       -       3
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age
Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age
Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age
Offline      -       0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute
delay
-----------------------------------------------------------------
A me sembra tutto OK ... invece nulla ..
cat /proc/mdstat
Personalities : [raid1]
md5 : active raid1 sda5[0] sdb5[1]
      8193024 blocks [2/2] [UU]
md2 : active raid1 sda3[0] sdb3[1]
      4096448 blocks [2/2] [UU]
md3 : active raid1 sda2[0] sdb2[1]
      30716160 blocks [2/2] [UU]
md1 : active raid1 sda1[0] sdb1[1]
      20482752 blocks [2/2] [UU]
md6 : active raid1 sdb6[2] sda6[0]
      913271040 blocks [2/1] [U_]
unused devices: <none>
--------------------------------------------------------
mdadm --examine /dev/sda6
/dev/sda6:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : e9ba89ab:69fac89e:e8cecf4d:f1459e30
  Creation Time : Fri Nov  6 03:14:53 2009
     Raid Level : raid1
  Used Dev Size : 913271040 (870.96 GiB 935.19 GB)
     Array Size : 913271040 (870.96 GiB 935.19 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 6
    Update Time : Fri Dec 18 13:27:21 2009
          State : clean
 Active Devices : 1
Working Devices : 2
 Failed Devices : 1
  Spare Devices : 1
       Checksum : a3ba21a4 - correct
         Events : 1791660
      Number   Major   Minor   RaidDevice State
this     0       8        6        0      active sync   /dev/sda6
   0     0       8        6        0      active sync   /dev/sda6
   1     1       0        0        1      faulty removed
   2     2       8       22        2      spare   /dev/sdb6
-----------------------------------------------------------------------------
Devo cambiare dischi vero .. :*(
Peccato averli comperati 2 mesi fa ...
Grazie!
-- Yena --

 -- Steve VanDevender
KERNEL:
uname -a
Linux ( Debian Lenny ) vserver2 2.6.31.6-vs2.3.0.36.24-beng #1 SMP Mon
Nov 16 16:56:44 GMT 2009 i686 GNU/Linux
mdadm -V
mdadm - v2.6.7.2 - 14th November 2008
Test ADD ( sdb6 rimane in spare ):
Ecco cosa da:
mdadm --add /dev/md6 /dev/sda6
mdadm: Cannot open /dev/sda6: Device or resource busy
mdadm --add /dev/md6 /dev/sdb6
mdadm: Cannot open /dev/sdb6: Device or resource busy
mdadm --examine /dev/sdb6
/dev/sdb6:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : e9ba89ab:69fac89e:e8cecf4d:f1459e30
  Creation Time : Fri Nov  6 03:14:53 2009
     Raid Level : raid1
  Used Dev Size : 913271040 (870.96 GiB 935.19 GB)
     Array Size : 913271040 (870.96 GiB 935.19 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 6
    Update Time : Fri Dec 18 15:31:44 2009
          State : clean
 Active Devices : 1
Working Devices : 2
 Failed Devices : 1
  Spare Devices : 1
       Checksum : a3ba6095 - correct
         Events : 1795978
      Number   Major   Minor   RaidDevice State
this     2       8       22        2      spare   /dev/sdb6
   0     0       8        6        0      active sync   /dev/sda6
   1     1       0        0        1      faulty removed
   2     2       8       22        2      spare   /dev/sdb6
-------------------------------------------------------------------
mdadm --examine /dev/sda6
/dev/sda6:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : e9ba89ab:69fac89e:e8cecf4d:f1459e30
  Creation Time : Fri Nov  6 03:14:53 2009
     Raid Level : raid1
  Used Dev Size : 913271040 (870.96 GiB 935.19 GB)
     Array Size : 913271040 (870.96 GiB 935.19 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 6
    Update Time : Fri Dec 18 15:31:04 2009
          State : clean
 Active Devices : 1
Working Devices : 2
 Failed Devices : 1
  Spare Devices : 1
       Checksum : a3ba602b - correct
         Events : 1795952
      Number   Major   Minor   RaidDevice State
this     0       8        6        0      active sync   /dev/sda6
   0     0       8        6        0      active sync   /dev/sda6
   1     1       0        0        1      faulty removed
   2     2       8       22        2      spare   /dev/sdb6
-------------------------------------------------------------------
Per finire, con il kernel di default scrivevo molto lento sui dischi,
con l'attuale, le performance sono buone ... ma
permane il problema del sync della partizione "grossa" ..
A mio parere i dischi non sono rotti .. ma sono questi modelli "Green"
che oltre una certa soglia non riescono a reggere il raid .. non
chiedetemi il perchè ..
A dimenticavo, ho già provato a dare il fail sull' sdb6,
il remove ed il rebuid 2 volte.
-- Yena --

 partizione completamente, rifarla e riaggiungerlo al raid.
Io su quel disco ci farei magari anche girare il diagnostico WD.
Su ultimate boot cd c'e`.
Andrea

 -----------------------------------------------------------------------------
mi pare di capire che hai fatto casino, come spiegato qui:
http://en.wikipedia.org/wiki/Mdadm#Known_problems
A common error when creating RAID devices is that the dmraid-driver has
taken control of all the devices that are to be used in the new RAID
device. Error-messages like this will occur: mdadm: Cannot
open /dev/sdb1: Device or resource busy
già che ci sei posta l'outputo di: cat /proc/mdstat
-- 
echo onailimissaM | awk 'BEGIN { FS = "" }
{ for (i = NF; i >= 1; i-- )
  printf $i }'; echo

 ha scritto:

cat /proc/mdstat
Personalities : [raid1]
md5 : active raid1 sda5[0] sdb5[1]
      8193024 blocks [2/2] [UU]
md2 : active raid1 sda3[0] sdb3[1]
      4096448 blocks [2/2] [UU]
md3 : active raid1 sda2[0] sdb2[1]
      30716160 blocks [2/2] [UU]
md1 : active raid1 sda1[0] sdb1[1]
      20482752 blocks [2/2] [UU]
md6 : active raid1 sdb6[2] sda6[0]
      913271040 blocks [2/1] [U_]
unused devices: <none>
Grazie
-- Yena --