I have 3 ssd disks (59 GB) each. I want to use them as sofware raid5 with fedora 15. I read that it is recommended to have /boot on a separate disk. 2 questions:
1) is it possible and advisable to have a 6 GB partition on each disk (and make them as raid 1), for the /boot and /swap partitions? in this case would recovery of the raid1 and raid5 arrays be easy?
2) having /boot and /swap on a separate 4th disk (thus apart from the abovemensioned 3), how would be the recovery procedure if this disk fails?
Thanks
I would just do /boot as a three way software RAID-1. Sure three way RAID-1 wastes space and increases writes, but /boot is tiny and has close to zero writes so that doesn't in practice matter.
I don't see the issue with having swap as either a separate RAID-5 or else a swap file inside the RAID-5 that you'll be using for your main OS.
As long as you retain redundancy then there is no recovery process to speak of since nothing is lost. Everything carries on working, but slightly slower and with no further redundancy.
To return to a fully redundant configuration you would use
mdadm
to fail out a disk, physically remove it (while the machine is still running if your chassis/case/caddies support hot swap), physically replace with new disk, repartition new disk the same as one that was removed, usemdadm
to add back partitions on the new disk into the arrays. That's it.A three disk RAID-1 can lose any two disks. A three disk RAID-5 can lose any one disk.
If I was partitioning your system I would setup the partitions like so that you used small partition for a RAID1 of boot, and the rest of the space for a big RAID5. Then setup LVM on the RAID5 and create logical volumes for root, swap and any other filesystems you want.
you need only about 200MB on /boot really, max 500MB if you want to be safe. The point of having a separated
/boot
is to make it bootable without the need of extra modules, if you make it another RAID array you will defeat this. Just create a small partition for it on one of the disks and format it asext2
(simpler fs, easier to mount in case of accidents).As about the swap, it doesn't make much difference where you are going to put it, but it will be faster to use it on an SSD than on a HDD.