Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_software_raid [2022/04/20 15:52]
warmachine created
linux_software_raid [2022/04/20 16:10] (current)
warmachine
Line 1: Line 1:
 +----
 ref: https://askubuntu.com/questions/1234949/install-ubuntu-20-04-focal-fossa-with-raid-1-on-two-devices ref: https://askubuntu.com/questions/1234949/install-ubuntu-20-04-focal-fossa-with-raid-1-on-two-devices
 +----
  
-This is for manually configuring software RAID1 for two disks. This can be useful for isolating your boot drive from your storage RAID pool, but still ensuring redundancy, without the need for chipset specific software/mobo RAID or a secondary RAID controller. +=== This is for manually configuring software RAID1 for two disks. This can be useful for isolating your boot drive from your storage RAID pool, but still ensuring redundancy, without the need for chipset specific software/mobo RAID or a secondary RAID controller.=== 
 + 
  
 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'.
  
-reformat both drives. 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.+  * <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.
  
 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. 
  
-add 1gb GPT partition on disk1, leave unformatted, repeat for disk2. 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>  
 + 
 +under each disk on available devices, you will now see 'partition 2', this is for boot. 
 + 
 +  * <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. 
 + 
 +  * <color #ed1c24>add GPT partition to disk1 (do not set a size) and leave it unformatted. repeat for disk2.</color> 
  
-add 16gb (or whatever half your RAM size is) GPT partition  on disk1 and leave it unformatted. repeat for disk2. you will now see 'partition 3'. this is for swap.+you will now see 'partition 4'. this is for root.
  
-add GPT partition to disk1 (do not set a sizeand leave it unformatted. repeat for disk2. you will now see 'partition 4'this is for root.+  * <color #ed1c24>choose 'create software RAID (md)' under 'available devices'.</color> 
  
-choose 'create software RAID (md)under 'available devices'+  * <color #ed1c24>create md0 by selecting 'partition 2from both disk1 and disk2, choose save.</color> 
  
-create md0 by selecting 'partition 2from both disk1 and disk2, choose save.+  * <color #ed1c24>repeat for md1 and both 'partition 3'save.</color> 
  
-repeat for md1 and both 'partition 3'. save.+  * <color #ed1c24>and gain for md2 and both 'partition 4'. save.</color>
  
-and gain for md2 and both 'partition 4'. save.+there should now be 3 pairs of available devices
  
-there should now be 3 pairs of available devices. 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 #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'
Last modified: le 2022/04/20 15:52