comparison content/Linux/software-raid-setup.md @ 87:abc2401e9958

Typo fix
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 19 Jul 2017 03:39:05 +0200
parents 2444e4533089
children 1d9382b0329b
comparison
equal deleted inserted replaced
86:5691417eabd5 87:abc2401e9958
5 5
6 I'm helping a friend to set up a machine with [Gentoo](http://www.gentoo.org). This will be a machine to host production applications and it is equipped with 2 identical hard drives. I will set up a [software RAID 1](https://raid.wiki.kernel.org). This has been a life saver on a similar machine before where one of the drives failed and we had no data loss and only minimal downtime during which the drive was replaced. 6 I'm helping a friend to set up a machine with [Gentoo](http://www.gentoo.org). This will be a machine to host production applications and it is equipped with 2 identical hard drives. I will set up a [software RAID 1](https://raid.wiki.kernel.org). This has been a life saver on a similar machine before where one of the drives failed and we had no data loss and only minimal downtime during which the drive was replaced.
7 7
8 One goal of the new setup is to remain bootable even if one of the drives fails. I had trouble accomplishing this in earlier setups so this time I tested the process locally on a virtual machine before setting up the real iron. 8 One goal of the new setup is to remain bootable even if one of the drives fails. I had trouble accomplishing this in earlier setups so this time I tested the process locally on a virtual machine before setting up the real iron.
9 9
10 The first step of the setup is partitioning the drives. The [handbook](https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks) suggests adding a small partition at the beginning of the drive to enabl booting from a gpt partitioned drive. The `/boot` partition will be formatted using [ext4](https://en.wikipedia.org/wiki/Ext4) because the filesystem will remain bootable even if one of the drives is missing. The rest of the disk will be formatted using [xfs](https://en.wikipedia.org/wiki/XFS). To recap the layout: 10 The first step of the setup is partitioning the drives. The [handbook](https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks) suggests adding a small partition at the beginning of the drive to enable booting from a gpt partitioned drive. The `/boot` partition will be formatted using [ext4](https://en.wikipedia.org/wiki/Ext4) because the filesystem will remain bootable even if one of the drives is missing. The rest of the disk will be formatted using [xfs](https://en.wikipedia.org/wiki/XFS). To recap the layout:
11 11
12 Number Start End Size File system Name Flags 12 Number Start End Size File system Name Flags
13 1 1.00MiB 3.00MiB 2.00MiB grub bios_grub 13 1 1.00MiB 3.00MiB 2.00MiB grub bios_grub
14 2 3.00MiB 95.0MiB 92.0MiB boot 14 2 3.00MiB 95.0MiB 92.0MiB boot
15 3 95.0MiB 8191MiB 8096MiB rootfs raid 15 3 95.0MiB 8191MiB 8096MiB rootfs raid