linux-logo-300x300

Creating a software raid of disks is quite easy in Ubuntu, I will assume the disks are attached (physically or virtually) to the guest operating system.

Currently Ubuntu supports the following raid levels:

  • RAID level 0
  • RAID level 1
  • RAID level 2
  • RAID level 3
  • RAID level 4
  • RAID level 5
  • RAID level 6
  • RAID level 10
  • RAID level 50
  • RAID level 0+1

In this example I am using sdb1 and sdc1 disks and settings the raid to a mirror (1) with a total mirrored size of 4TB (3906885440K)

  • Install mdadm (if not already installed)

  • Run mdadm to create the mirror

mdadm_create_raid1
  • Run mkfs.ext3 to create a ext3 filesystem on the mirror volume

mkfs.ext3_dev_md0
  • Mount the mirror by creating a mount point and running mount to mount the md0 volume

mount_raid1
  • Check to see if you can see the mirror

df_h_raid1
  • Check the status of the build

mdadm_raid_build_cat_proc
  • Add to fstab to auto mount on startup

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.