I was finally able to get the array reinitialized with my data intacted. I ended up rebooting the system. it seems like one of the drives still had a loose cable and wasn't being detected within the sata card bios. I fixed this and all drive came up.
I did a: sudo cat /proc/mdstat
and it listed two partial raid arrays. MD0 and MD_D0
I stopped both of these
Code:
mdadm --stop /dev/md0
mdadm --stop /dev/md_d0
then tried running a scan
Code:
sudo mdadm --assemble --scan -fv
but it wouldn't rebuild the array
ran the following command specifying the array and drive in order.
Code:
sudo mdadm --create --assume-clean --level=5 --raid-devices=4 /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
this was the results
Code:
mdadm: /dev/sdb1 appears to contain an ext2fs file system
size=-2097414144K mtime=Tue Jun 26 22:05:58 2012
mdadm: /dev/sdb1 appears to be part of a raid array:
level=raid5 devices=4 ctime=Mon Aug 22 20:39:28 2011
mdadm: /dev/sdc1 appears to be part of a raid array:
level=raid5 devices=4 ctime=Mon Aug 22 20:39:28 2011
mdadm: /dev/sdd1 appears to be part of a raid array:
level=raid5 devices=4 ctime=Sun Jul 1 14:38:38 2012
mdadm: /dev/sde1 appears to contain an ext2fs file system
size=-1828978688K mtime=Tue Jun 26 21:52:12 2012
mdadm: /dev/sde1 appears to be part of a raid array:
level=raid5 devices=4 ctime=Sun Jul 1 14:38:38 2012
Continue creating array? y
mdadm: array /dev/md0 started.
jim@U-NAS:~$ sudo mdadm --detail
mdadm: No devices given.
jim@U-NAS:~$ sudo mdadm --detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Sun Jul 1 14:55:44 2012
Raid Level : raid5
Array Size : 2197554816 (2095.75 GiB 2250.30 GB)
Used Dev Size : 732518272 (698.58 GiB 750.10 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Sun Jul 1 14:56:26 2012
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 64K
UUID : 17d2e6ce:b5dc496f:7a681604:9baa1d99 (local to host U-NAS)
Events : 0.2
Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 33 1 active sync /dev/sdc1
2 8 49 2 active sync /dev/sdd1
3 8 65 3 active sync /dev/sde1
Array came online instantly and share mounted with data intacted.
the major issue i was having through all this was a generic error the drive /dev/sd*1 was busy. this happen on all drives at one time or another. I believe this was due to the fact of a drive being powered down and / or being listed in the: sudo cat /proc/mdstat
my fixing the loose power cable and stopping the /dev/md* the last assembly command was able to access each drive and add then to the array.