Marco Scoffier wrote: > Hello all, > > I have an old raid0 with no superblocks. > > I have just upgraded the machine with this raid and mdadm is incapable of > mounting it. Unfortunately raidtools will no longer compile*. So I am a > bit stuck as I would like to save the data on this raid0. > > Can I create a new raid0 using mdadm ? > > mdadm -C -n 2 -c 128 -l 0 /dev/md0 /dev/hde1 /dev/hdg1 Well, mdadm is able to assemble it. It's called 'build' (--build) -- mdadm --build -n 2 -c 128 -l 0 /dev/md0 /dev/hde1 /dev/hdg1 > or should I build a new raid0 and then upgrade that to a raid0 with > superblocks (how would I do that?) I think the best option is to convert it to raid0-with-superblocks. For that, I'd go this route: - build the array as above - fsck the filesystem on it - resize the filesystem to be, say, 1Mb smaller - stop the array - create new array as you've shown above with -C - and finally resize the filesystem to utilize all available space Or something like that, anyway. Sure, backing up data and restoring it after creating the array is safer. > Thanks for any pointers, > > As there are no super-blocks mdadm is > giving very little information: > > mdadm -E /dev/hde1 > mdadm: No md superblock detected on /dev/hde1. Well, it's expectable. -E = show superblock contents. > mdadm -As /dev/md0 > mdadm: /dev/hde1 has no superblock - assembly aborted Assembly needs devices with superblocks. Try -B. /mjt - 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