mdadm acting oddly with RAID 5 array
I have been having some odd issues over the last day or so while trying to get a raid 5 array running in software under Kubuntu.
I installed 3 1TB drives and started up, my sd* order got all messed up( sda was now sdc and so on). This wasn't entirely unexpected, so I fixed up fstab and booted again. I found all three of the drives I installed, set them to raid auto-detect and used mdadm to create /dev/md0. I then created mdadm.conf by piping the output of mdadm --detail --scan --verbose into /etc/mdadm.conf. At this point, everything was still going swimmingly. I copied over a few hundred GB of data from another failing drive and everything seemed ok. I went to reboot once the copy was done and everything just went weird. All of the sd* drives went back to the original. Of course, this meant that the mdadm.conf was wrong. I tried to just change the device list, but that didn't work. I then deleted mdadm.conf and rebooted. The drive list stayed in the original order this time, so I just tried manually starting the array. By erasing the partition table of the 3rd drive, I've been able to get it to the status of spare, but it says it is busy when I try to add it to the array. A grep through dmesg makes me think that md has a lock on it. I'm not sure where to go with it now. If anyone has any pointers, I would like to hear them. Thanks in advance. Device List(original): /dev/sda => boot drive, /home / /dev/sdb => 1.5TB media storage, failing /dev/sdc => 1 TB raid element /dev/sdd => 1 TB raid element /dev/sde => 1 TB raid element Device List( changed ) /dev/sda => 1 TB raid element /dev/sdb => 1 TB raid element /dev/sdc => boot drive, /home, / /dev/sdd => 1.5TB media storage, failing /dev/sde => 1 TB raid element Code:
mdadm: |
Hmm, changing what I'm looking for in dmesg changes things... looks like my disk might be DOA
root@butters:/home/colin# dmesg | grep sde [ 2.369406] sd 6:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB) [ 2.369429] sd 6:0:0:0: [sde] Write Protect is off [ 2.369431] sd 6:0:0:0: [sde] Mode Sense: 00 3a 00 00 [ 2.369441] sd 6:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.369522] sde: sde1 [ 2.370863] sd 6:0:0:0: [sde] Attached SCSI disk [ 17.072829] md: bind<sde1> [23603.802516] sd 6:0:0:0: [sde] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [23603.802524] sd 6:0:0:0: [sde] Sense Key : Aborted Command [current] [descriptor] [23603.802569] sd 6:0:0:0: [sde] Add. Sense: No additional sense information [23603.802578] sd 6:0:0:0: [sde] CDB: Write(10): 2a 00 00 00 04 00 00 04 00 00 [23603.802597] end_request: I/O error, dev sde, sector 1024 [23603.802606] Buffer I/O error on device sde, logical block 128 [23603.802611] lost page write due to I/O error on sde [23603.802621] Buffer I/O error on device sde, logical block 129 [23603.802626] lost page write due to I/O error on sde [23603.802632] Buffer I/O error on device sde, logical block 130 [23603.802636] lost page write due to I/O error on sde [23603.802642] Buffer I/O error on device sde, logical block 131 [23603.802647] lost page write due to I/O error on sde [23603.802653] Buffer I/O error on device sde, logical block 132 [23603.802657] lost page write due to I/O error on sde [23603.802663] Buffer I/O error on device sde, logical block 133 [23603.802667] lost page write due to I/O error on sde [23603.802673] Buffer I/O error on device sde, logical block 134 [23603.802677] lost page write due to I/O error on sde [23603.802683] Buffer I/O error on device sde, logical block 135 [23603.802687] lost page write due to I/O error on sde [23603.802693] Buffer I/O error on device sde, logical block 136 [23603.802697] lost page write due to I/O error on sde [23603.802703] Buffer I/O error on device sde, logical block 137 [23603.802707] lost page write due to I/O error on sde [23603.802916] sd 6:0:0:0: [sde] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [23603.802923] sd 6:0:0:0: [sde] Sense Key : Aborted Command [current] [descriptor] [23603.802964] sd 6:0:0:0: [sde] Add. Sense: No additional sense information [23603.802972] sd 6:0:0:0: [sde] CDB: Write(10): 2a 00 00 00 00 00 00 04 00 00 [23603.802989] end_request: I/O error, dev sde, sector 0 |
All times are GMT -5. The time now is 07:27 AM. |