Hello there,
I'm new to linux-raid, and I've been playing with setting up a raid0 device to
play with. I've got a few questions.
Even though the kernel comes with software-raid support, it seems that I still
need to patch the kernel to implement it. The last patch I saw was for
2.2pre5, I'm running 2.2pre7. The patch applied ok (hunks were moved around a
bit), and I'm recompiling the kernel right now. Will these patch eventually be
merged into the mainstream kernel? Hopefully for 2.2? I haven't been
successful in getting the /dev/md* devices to work using the stock 2.2pre7
kernel, I get this output when attempting to create the raid0 device:
spoke:~| mkraid /dev/md0
handling MD device /dev/md0
analyzing super-block
disk 0: /dev/sda1, 28192kB, raid superblock at 28096kB
disk 1: /dev/hda2, 56448kB, raid superblock at 56384kB
disk 2: /dev/sdb1, 51184kB, raid superblock at 51072kB
mkraid: aborted
I'm hoping that using the patched kernel will fix this behavior. It also seems
that the documentation for the raidtools is pretty out of date, and very
confusing. I've browsed through a bunch of the list archives, and have come to
this conclusion. All you need to do to get a md device running initially is
edit /etc/raidtab. Run mkraid on the device. And then run raidstart. I
didn't see what type of filesystem to create the partitions as, I assumed that
ext2 would be fine. After all this you should be able to use the md devices
just as a regular filesystem.
Any thoughts?
-Dave