KB045289 – Redundant Installation of Ubuntu 20.04LTS on mdadm RAID1

Last modified: March 17, 2021
You are here:
  • KB Home
  • Ubuntu
  • KB045289 – Redundant Installation of Ubuntu 20.04LTS on mdadm RAID1
Estimated reading time: 2 min

Redundant Installation of Ubuntu 20.04LTS on mdadm RAID1

Scope/Description:

This article will walkthrough the process of installing Ubuntu 20.04 on redundant boot drives

Prerequisites:

Steps:

  1. Verify server BIOS is set to “legacy” boot mode
  2. Boot attached Ubuntu20.04 installation ISO
  3. Once booted into Installation ISO, the first choice presented will be “Language”
  4. You may be presented with the option to update the installer. Choose to update
  5. Next choose keyboard layout
  6. Choose which interface to configure.
    1. Configure a interface so it has internet access. This is not required, but is convinient as updates will be installed during install time
    2. Do not configure anything beyond basic connection for insatlltion as we will be switching to NetworkManager after installation
  7. Proxy Address, leave blank unless proxy server is present.
  8. Alternative ubuntu mirror for installation, leave the default choice
  9. Storage Configuration, select “Custom Storage Layout”
    1. If the disks have already been used (ex. installing over an existing OS) then choose “reformat” on each boot disk. This will not actually erasre any data until the process commited at the end.
    2. Select each disk to be used as a boot device
    3. Create a 1GB partition for the first raid device on each disk. Leave the partition “unformatted”
    4. Create a 4GB partition for the second raid device on each disk. Leave the partition “unformatted”
    5. Create a partition that fills the rest of the space for the third raid device on each disk. Leave the partition “unformatted”
    6. Select “Create Software Raid (md)” to create first raid device, Choose 1GB partition on each disk and name the device “boot”
    7. Select “Create Software Raid (md)” to create second raid device, Choose 4GB partition on each disk and name the device “swap”
    8. Select “Create Software Raid (md)” to create third raid device, Choose teh last partition on each disk and name the device “root”
    9. Verify all three boot devices, boot,swap and root are created
    10. Create partition on boot raid device. Leave “size” blank, select “ext4” and change mount point to “/boot”
    11. Create partition on swap raid device. Leave “size” blank, format as “swap”.
    12. Create partition on root raid device. Leave “size” blank, format as “ext4” and change mount point to “/”
    13. Verify that each raid device is created and all three are formatted, the “Done” button will activate at the bottom of the screen
    14. Confirm Storage Layout, WARNING, there is not turning back as existing data WILL be overwritten.
  10. Create local user
  11. Check box to install openssh, leave user import blank
  12. Do not install any snap packages as we will be removing snapd completely after installation
  13. Installation will begin. Select “View Full Log” to see more detailed process logging. Select “Reboot Now” when installation finishes
  14. If installer is stuck trying to “Remove Media” It ios safe to power reset the server. Either detach iso through IPMI windows or physically remove USB stick from server.
  15. Boot into system and verify raid devices
  16. Installation is now finished and you can follow this documentation to finish configuration of Ubuntu

Verification:

Troubleshooting:

Was this article helpful?
Dislike 0
Views: 174
Unboxing Racking Storage Drives Cable Setup Power UPS Sizing Remote Access