| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
linux_software_raid [2022/04/20 16:03] warmachine |
linux_software_raid [2022/04/20 16:10] (current) warmachine |
| when installing ubuntu server, follow through the prompts until you reach the 'storage configuration' step, then select 'custom storage layout'. | when installing ubuntu server, follow through the prompts until you reach the 'storage configuration' step, then select 'custom storage layout'. |
| |
| <color #ed1c24>reformat both drives.</color> | * <color #ed1c24>reformat both drives.</color> |
| |
| to avoid confusion, we'll call the disks 'disk1' and 'disk2', this does not literally mean that is what they will be labeled on your machine. apply the following steps accordingly to what your first and second disk in the RAID1 array are **actually** called. | to avoid confusion, we'll call the disks 'disk1' and 'disk2', this does not literally mean that is what they will be labeled on your machine. apply the following steps accordingly to what your first and second disk in the RAID1 array are **actually** called. |
| there should be 2x 1mb bios grub partitions. if this does not exist under secondary, you can manually create a 1mb partition so the other partitions align. 2 grub partitions are not necessary. | there should be 2x 1mb bios grub partitions. if this does not exist under secondary, you can manually create a 1mb partition so the other partitions align. 2 grub partitions are not necessary. |
| |
| <color #ed1c24>add 1gb GPT partition on disk1, leave unformatted, repeat for disk2. </color> under each disk on available devices, you will now see 'partition 2', this is for boot. | * <color #ed1c24>add 1gb GPT partition on disk1, leave unformatted, repeat for disk2. </color> |
| |
| <color #ed1c24>add 16gb (or whatever half your RAM size is) GPT partition on disk1 and leave it unformatted. repeat for disk2.</color> you will now see 'partition 3'. this is for swap. | under each disk on available devices, you will now see 'partition 2', this is for boot. |
| |
| <color #ed1c24>add GPT partition to disk1 (do not set a size) and leave it unformatted. repeat for disk2.</color> you will now see 'partition 4'. this is for root. | * <color #ed1c24>add 16gb (or whatever half your RAM size is) GPT partition on disk1 and leave it unformatted. repeat for disk2.</color> |
| |
| <color #ed1c24>choose 'create software RAID (md)' under 'available devices'.</color> | you will now see 'partition 3'. this is for swap. |
| |
| <color #ed1c24>create md0 by selecting 'partition 2' from both disk1 and disk2, choose save. | * <color #ed1c24>add GPT partition to disk1 (do not set a size) and leave it unformatted. repeat for disk2.</color> |
| |
| repeat for md1 and both 'partition 3'. save. | you will now see 'partition 4'. this is for root. |
| |
| and gain for md2 and both 'partition 4'. save.</color> | * <color #ed1c24>choose 'create software RAID (md)' under 'available devices'.</color> |
| | |
| | * <color #ed1c24>create md0 by selecting 'partition 2' from both disk1 and disk2, choose save.</color> |
| | |
| | * <color #ed1c24>repeat for md1 and both 'partition 3'. save.</color> |
| | |
| | * <color #ed1c24>and gain for md2 and both 'partition 4'. save.</color> |
| |
| there should now be 3 pairs of available devices. | there should now be 3 pairs of available devices. |
| |
| <color #ed1c24>select md0 and 'add GPT partition', format as EXT4 and mount on /boot. | * <color #ed1c24>select md0 and 'add GPT partition', format as EXT4 and mount on /boot.</color> |
| |
| select md1 and 'add GPT partition', format as SWAP | * <color #ed1c24>select md1 and 'add GPT partition', format as SWAP</color> |
| |
| select md2 and 'add GPT partition', format as EXT4 and mount on /.</color> | * <color #ed1c24>select md2 and 'add GPT partition', format as EXT4 and mount on /. </color> |
| |
| these should now appear under 'used devices' | these should now appear under 'used devices' |