[CentOS] CentOS 7 : create RAID arrays manually using mdadm --create ?

Tue Feb 10 19:54:28 UTC 2015
Chris Murphy <lists at colorremedies.com>

On Mon, Feb 9, 2015 at 11:57 PM, Niki Kovacs <info at microlinux.fr> wrote:

> I'd like to be able to create either a simple RAID 1 layout with two disks,
> with a separate /boot partition, or a simple RAID 5 layout with 4 disks,
> with a separate /boot partition too.

The installer can create either of these layouts in manual partitioning.


>
> The layouts are described in this little Slackware-based HOWTO I wrote, and
> which I'm using on my servers. It's in French, but the command-line bits are
> universal :o)
>
> http://www.microlinux.fr/slackware/Linux-HOWTOs/LAN-Server-HOWTO.txt

This can also be exactly reproduced with the installer using manual
partitioning. However:

- I'd substitute ext4 or xfs for /boot instead of ext2
- I'd make /boot bigger than 100MB which is almost certainly too small
to hold 3 kernels and initramfs's.
- I would not put swap on an md device, I'd just put a plain swap
partition on each device; first create two swap mountpoints, by
default this creates two swaps on one device. Select one of them and
click on the screwdriver+wrench icon (configure selected mountpoint),
and choose a specific drive, click select, then click Update Settings.
Repeat for each additional swap, making sure each is on its own drive.


-- 
Chris Murphy