Ah!
My apologies, you have to specify
--raid-devices=#, then specify the devices, like this;
Code:
mdadm --assume-clean --raid-devices=4 /dev/md2 /dev/sda9 missing /dev/sdb6
However, I must admit, I would have run this after swapping disk, then having the second disk freak-out on you.
As for your version of mdadm, 2.6.7 (06jun08), that's not terribly old. The current version is 2.6.9 released about seven months ago, 10mar09.
The project's GIT repository is
over here.
I made a boo-boo referencing the "
--start" command, my mistake.
On a side note, "
mkraid" is a part of the
raidtools package developed for Red Hat-based distributions, and from what I can tell, that's been deprecated in favor of mdadm. As it seems it was just a set of wrapper scripts to begin with (but I could be wrong).
As for the current start of your filesystem; With the rebuilding you've done, I'm surprised there was a filesystem to fsck in the first place. Since you now have ~300GB in the lost+found on that filesystem, I think we're going to need to start from there.
This is where the "
file" command comes in handy. If you have an extravagant "
magic" file, then it should do a good job of identifying what those files are (JPEGs, Videos, MP3s etc). You can grab the latest magic file from
ftp.astron.com:/pub/file.
The current one is
file-5.03.tar.gz (as of May 6th, 2009).
On the few occasions where I've run systems without backups, I've kept an MD5 of all the files, along with their filenames. Things like "
md5deep" come in rather handy for that. (It also acts as a poor-man's TripWire.) A downside is that you have to fetch and compile it, as it's not included in any Linux distribution that I'm aware of. (Also helps if the information was generated before a data loss.)
I know it's going to be arduous, but at this point, I don't think it's possible to return the filesystem to a usable state. You can give tools like
e2undelete a shot (after all ext3 is just ext2 with journaling).
However, the first thing I would seriously consider doing is finding a good backup solution. There's NAS devices out there that you could pick up and dump your filesystem onto with rsync, NFS, or heck, SMB. Several BYOD (bring your own disks) NAS devices can be had for under $200.
I would recommend the
NSLU2, as there's a great Linux project out there to
tweak it up.
Good luck, and let me know how it goes!
P.S: I realize the irony of pointing out things that could have prevented this data loss. However, you do have my condolences, and I seriously hope there was no Production data on there.