Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Configure Debian Software RAID 1 during installation

Rumi, August 6, 2021

Step 1
Perform normal installation process up to the disk partitioning menu.

Step 2
Select manual partitioning method in the disk partitioning menu.

Step 3
Create empty partition table on each disk used to create RAID1 array.

Step 4
Create partitions on the first disk.

During partition creation process select physical volume for RAID as partition type.

Replicate changes in the same way to the second disk.

Step 5
Execute configure software RAID option.

You will be asked to store changes applied to the partition tables – do it so partitions created in the previous step can be used to create RAID arrays.

Create new MD device for identical partitions on recently configured disks.

Choose RAID1 as device type.

Select 2 as a number of active devices for the RAID1 array.

Select 0 as a number of spare devices.

Select identical partitions on recently configured disks (eg. md0 → [sda1, sdb1] and md1 → [sda2,sdb2]).

Step 6
Create root file-system on the first RAID1 device.

Create swap space on the second RAID1 device.

Select finish partitioning and write changes to disk option to confirm changes applied to the RAID1 devices.

Step 7
Continue installation process up to the install the grub boot loader on a hard disk menu.

By default grub will be installed only on the first disk so switch to the second (ALT + F2) or third (ALT + F3) console before system reboot, and execute the following commands to install it on the second disk.

Make your Grub choice and you are done.

Administrations Configurations (Linux) DebainRAIDRAID 1

Post navigation

Previous post
Next post

Comments (8)

  1. ben says:
    November 5, 2021 at 12:00 am

    By default grub will be installed only on the first disk so switch to the second (ALT + F2) or third (ALT + F3) console before system reboot, and execute the following commands to install it on the second disk.

    What commands? They are not listed in this tutorial and are required for protection against boot failure.

    Reply
    1. Rumi says:
      November 26, 2021 at 9:27 am

      Yes you are right and identified my mistake. I’ll check back and re-run the process and update the document soon.

      Reply
  2. Luciano de Paula says:
    February 3, 2022 at 11:35 pm

    Please, update the document to show the command line.

    Reply
    1. Rumi says:
      March 15, 2022 at 9:24 am

      I’ll try to create a video file on this.

      Reply
  3. Luciano de Paula. says:
    February 3, 2022 at 11:38 pm

    Would it be “grub-install /dev/sda” and “grub-install /dev/sdb” ?

    Reply
    1. Rumi says:
      March 15, 2022 at 9:22 am

      If you wish your /boot to be running under RAID-1 then while selecting the grub at the last state of installation, is fine, because /boot a.k.a grub is already is under RAID-1 partition.

      Reply
  4. Looking for commands says:
    September 12, 2022 at 6:18 am

    What are the commands after all?

    Reply
    1. manux says:
      September 11, 2023 at 3:01 pm

      it should be:

      After first boot, consider executing dpkg-reconfigure grub-pc (or dpkg-reconfigure grub-efi-amd64 on EFI systems), and install to all devices. This way, your system will still boot correctly even if you reorder your drives.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes