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

mdadm and siI680 - can't make a superblock on secondary channel?



Hi all,

I have a Sid system running 2.4.25-1-k7.  I have an onboard VIA chipset and a 
PCI siI680 ide controller card.  I have three drives that comprise a raid-0 
array.  These drives have been part of another array earlier.

The problem is that I cannot create a new functioning raid-0 array with these 
three drives.  I have done the following:

mdadm --zero-superblock /dev/hdc2
mdadm --zero-superblock /dev/hde2
mdadm --zero-superblock /dev/hdg2
mdadm -Cv /dev/md0 -l0 -n3 -c32 /dev/hdc2 /dev/hde2 /dev/hdg2

However, the superblock on hdg2 is messed up.  When I examine the good drives 
I get:
> # mdadm -E /dev/hde2
> /dev/hde2:
>           Magic : a92b4efc
>         Version : 00.90.00
>            UUID : 7861e030:d464ec25:b39045ea:80d77ca9
>   Creation Time : Sun May 16 00:20:37 2004
>      Raid Level : raid0
>     Device Size : 119254400 (113.73 GiB 122.12 GB)
>    Raid Devices : 3
>   Total Devices : 3
> Preferred Minor : 0
> 
>     Update Time : Sun May 16 00:20:37 2004
>           State : dirty, no-errors
>  Active Devices : 3
> Working Devices : 3
>  Failed Devices : 0
>   Spare Devices : 0
>        Checksum : b2c438fa - correct
>          Events : 0.1
> 
>      Chunk Size : 32K
> 
>       Number   Major   Minor   RaidDevice State
> this     1      33        2        1      active sync   /dev/hde2
>    0     0      22        2        0      active sync   /dev/hdc2
>    1     1      33        2        1      active sync   /dev/hde2
>    2     2      34        2        2      active sync   /dev/hdg2

However, when I examine hdg, I get:
> # mdadm -E /dev/hdg2
> /dev/hdg2:
>           Magic : a92b4efc
>         Version : 00.90.00
>            UUID : 7861e030:d464ec25:b39045ea:80d77ca9
>   Creation Time : Sun May 16 00:20:37 2004
>      Raid Level : raid0
>     Device Size : 119254400 (113.73 GiB 122.12 GB)
>    Raid Devices : 3
>   Total Devices : 3
> Preferred Minor : 0
> 
>     Update Time : Sun May 16 00:20:37 2004
>           State : dirty, no-errors
>  Active Devices : 3
> Working Devices : 14339
>  Failed Devices : 0
>   Spare Devices : 14336
>        Checksum : b2c438fd - expected b2c828fd
>          Events : 0.14337
> 
>      Chunk Size : 32K
> 
>       Number   Major   Minor   RaidDevice State
> this     2      34        2        2      active sync   /dev/hdg2
>    0     0      22        2        0      active sync   /dev/hdc2
>    1     1      33        2        1      active sync   /dev/hde2
>    2     2      34        2        2      active sync   /dev/hdg2
>    3     0       0        0        0      spare
>    4     0       0        0        0      spare
>    5     0       0        0        0      spare
>    6     0       0        0        0      spare
>    7     0       0        0        0      spare
>    8     0       0        0        0      spare
>    9     0       0        0        0      spare
>   10     0       0        0        0      spare
>   11     0       0        0        0      spare
>   12     0       0        0        0      spare
>   13     0       0        0        0      spare
>   14     0       0        0        0      spare
>   15     0       0        0        0      spare
>   16     0       0        0        0      spare
>   17     0       0        0        0      spare
>   18     0       0        0        0      spare
>   19     0       0        0        0      spare
>   20     0       0        0        0      spare
>   21     0       0        0        0      spare
>   22     0       0        0        0      spare
>   23     0       0        0        0      spare
>   24     0       0        0        0      spare
>   25     0       0        0        0      spare
>   26     0       0        0        0      spare
>   27     2      34        2        2      active sync   /dev/hdg2
>   28 -1073743708   134576992    134577056       -1      spare
>   29     0       0        0        0      spare
>   30     0       0    1073972368    1073950848
>   31 -1073743868   1073947344    1073838024       47
>   32     3   -1073743708    -1073743692    134516992      spare
>   33 -1073743143   -1073743066    -1073743048    -1073743026      removed
>   34     6    4096       17      100      faulty active
>   35 1684104301   1160577133    1701064448    1684549494      faulty active 
sync
>   36 2036428076   1932291686    1684367459    1952804140      removed
>   37 1714302835   1937010287    1263814400    1598247519      active sync
>   38 1916621381   7630703    1381319512    1599229779      faulty active
>   39 859517232   774519346    1030906228    859517232      faulty
>   40 825441073   1915628090    809332080    825441073      active removed
>   41 1030578808   859517232    774519349    1030582392
>   42 774519349   1030120312    859517232    774519349      removed
>   43 1818373996   1768645473    1949252197    774860909      faulty removed
>   44 1647276659   1479503465    792342833    796029813      sync removed
>   45 1096171850   1297041503    1966030149    1815048819      faulty active 
sync removed
>   46 1330860629   1213488978    1027951941    1634100580      faulty sync
>   47 1732068163   1124098915    1380928591    1297237332      faulty sync 
removed
> Segmentation fault

The drives are good.  I got the same result after physically switching the 
drives... always hdg with the error.  hde and hdg are masters on the siI680 
card channels.  The siI680 card is new, but seems to work on both channels 
with other functions (fdisk, hdparm, mkfs).  I have tried switching cables, 
without change.  If I try to make an array using only two drives, it will 
work with only hdc and hde, but hdg always fails.

Does anyone have an idea why I can't make the superblock properly on hdg?  I 
suspect it is either the controller itself that is faulty, or the siimage 
module that has a bug.  Where do I go from here?




Thanks in advance,
Peter



Reply to: