How-To: Create RAID Array on Armbian/Debian-based Systems

How-To: Create RAID Array on Armbian/Debian-based Systems


Here at ameriDroid, we run our infrastructure on the products that we sell. This not only proves that it can be done, but also increases our expertise and familiarity with the products and available software. In addition, it helps us do our part in reducing our overall energy consumption as compared to running on "traditional" power-hungry infrastructure.

Our existing Cloudshell2 unit run by an ODROID-XU4Q is getting really close to having its 2x 1TB hard disk drives (HDDs) filled up. This is what it looks like right now:

# df -h |grep raid
/dev/sda        917G  870G  415M 100% /media/raid

In addition, we'd like to have a 2nd backup for this. Our plan is this:

  1. Build a new server with a RAID1 (mirrored disks) of 2x 4TB HDDs plus one spare 4TB HDD (in case one of the drives fails, we'll have a new drive to replace it with immediately)
  2. Copy the data from the Cloudshell2 to the new server
  3. Make the new server the primary file server
  4. Replace the 2x 1TB HDDs in the Cloudshell2 with 4TB HDDs
  5. Backup the data from the new server to the Cloudshell2 on a regular basis
  6. Potentially build a 2nd copy of the new system to use as additional capacity and to act as a failover in case of a major system failure

The main component of our new server is a ROCKPro64 with a PCIe dual-SATA card which controls the 4TB HDDs. We've loaded Armbian onto a 16GB eMMC to hold the main OS.

NOTE: The Cloudshell2 is a really easy way to set up a RAID and doesn't need any additional setup as it is all handled by the hardware, and the implementation is very well done as we've discovered in our disaster simulation tests. We're using the ROCKPro64 as part of a test to discover how much SBC power we can pack into an old-school mini-ATX tower.

How to create the RAID array

As usual, the Internet is our friend, but sometimes it can be difficult to find a really good article that gets straight to the point. Here's the article we used, and everything went smoothly for us following this guide.

Previous article Scraping 101: The Best Programming Languages for Web Scraping

Leave a comment

Comments must be approved before appearing

* Required fields