On 24/05/2010 13:40, David Reniau wrote:
In Feb 2010, I (had to) extract(ed) the 4 disks off the NAS rack in order to remount the RAID under a regular Linux box. I placed the 4 disks in USB cases, labelled the cases (1,2,3,4) according to the disks genuine order in the NAS rack (see Figure 1 below), and tried to rebuild the RAID-0 array by means of mdadm under Ubuntu 9.10, using the disks connection situation depited in Figure 2. After several trial and error manipulations (not only, but in particular, to regenerate the RAID superblocks), I was able to re-create the RAID-0 array but... I am unable to mount the RAID file system in the end.
If you've recreated the array under Ubuntu with something like `mdadm -C /dev/mdX -l 0 -n 4 /dev/disc1p2 /dev/disc2p2 /dev/disc3p2 /dev/disc4p2` then you may have the discs in the wrong order, the NAS may internally count from the bottom up, so you should also try `mdadm -C /dev/mdX -l 0 -n 4 /dev/disc4p2 /dev/disc3p2 /dev/disc2p2 /dev/disc1p2`. Other orders are also possible but perhaps unlikely.
It's also possible that Thecus used a non-default chunk size. If they did you need to find out and include it in your array creation line with -c. This is a good one to check out since if the order of the discs is right but the chunk size is wrong I can imagine perhaps a quarter of blocks appearing in the right places in the resulting /dev/mdX, perhaps enough for e2fsck to think there is a damaged ext2/3 filesystem there.
It's also possible that Thecus used a non-default metadata type. If they did you need to find out and include it in your array creation line with -e. Note also that mdadm's default metadata type has changed so if Ubuntu's mdadm is recent enough you may need to specify the 0.90 metadata if that's what Thecus used.
If you have definitely only ever attempted to assemble the array with `mdadm -A` and never recreated it with `mdadm -C` then don't go trying any new create lines, there may be valuable information available in the RAID superblocks that I couldn't quite get a handle on from your original 50K+ email.
Good luck. Cheers, John. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html