RAID Array with Two Separate Controllers: Configuring mdadm on Intel Z270 Chipset

Abstract: Configure mdadm RAID5 across separate Intel and ASMedia SATA controllers on Z270 by bypassing BIOS hardware RAID.

Created: 2026-08-31 by

Configure a mdadm RAID5 array across two separate SATA controllers by assembling the device nodes directly, bypassing BIOS-level hardware RAID. This approach treats all drives as independent block devices managed entirely by the Linux kernel software RAID layer.

Understanding the Hardware Topology

When working with motherboards like those featuring the Intel Z270 chipset combined with an ASMedia controller, you are dealing with distinct physical buses. The Intel controller typically handles high-speed NVMe or primary SATA ports, while the ASMedia chip often manages secondary or expansion ports. In a standard UEFI/BIOS environment, these controllers operate independently unless explicitly linked via a proprietary hardware RAID feature. However, for this guide, we assume you want to use mdadm, which is a software solution that ignores the physical separation of the controllers. The key challenge here is not the logical configuration of the RAID itself, but ensuring that the operating system sees all the target drives as accessible block devices before attempting to assemble the array. Because the controllers are separate, the kernel may assign different naming conventions or initialization times to the disks attached to each chip. It is crucial to verify that all drives intended for the RAID are present and correctly identified in the system before proceeding. You can check this using the lsblk command, which lists all block devices along with their sizes and types. Ensure that the drives connected to the Intel Z270 port and those connected to the ASMedia port are both listed under /dev/sdX or /dev/nvmeXnY depending on the drive type.

Preparing the Drives

Before creating the array, you must ensure that no existing filesystems, partitions, or RAID signatures remain on the target drives. If these drives were previously used in another RAID configuration or formatted with a filesystem, they must be wiped. Use the wipefs command to remove all file system signatures from the drives. For example, if your drives are sdb, sdc, and sdd, you would run:
wipefs -a /dev/sdb
wipefs -a /dev/sdc
wipefs -a /dev/sdd
This step is critical because mdadm will refuse to create a new array if it detects leftover metadata, which could lead to data corruption or assembly errors. Additionally, ensure that the drives are healthy by checking their SMART status using tools like smartctl. A drive failing at the start of a RAID5 rebuild can compromise the entire array's stability.

Creating the mdadm Array

With the drives prepared, you can now create the RAID5 array. The mdadm utility allows you to specify the level, chunk size, and number of active devices. For a RAID5 array spanning three drives, the command structure is straightforward. Run the following command, replacing the device names with your actual drive identifiers:
mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb /dev/sdc /dev/sdd
The --level=5 flag specifies RAID5, which provides block-level striping with distributed parity. This configuration allows the array to survive the failure of one drive without data loss. The --raid-devices=3 parameter tells mdadm that three drives will participate in the stripe set. Note that the order of the devices in the command does not strictly matter for the initial creation, but it is good practice to keep them consistent for future reference. Once the command executes, mdadm will begin synchronizing the parity data across the drives. This process can take several hours depending on the drive capacities and speeds. You can monitor the progress by reading the /proc/mdstat file:
cat /proc/mdstat
Look for the line corresponding to md0 which will show the synchronization percentage and estimated time remaining. During this phase, avoid heavy I/O operations on the array to ensure optimal rebuild speed.

Formatting and Mounting

After the array has fully synchronized, you need to format it with a filesystem. Ext4 is a reliable choice for general-purpose storage. Use the mkfs.ext4 command to format the new array:
mkfs.ext4 /dev/md0
Once formatted, create a mount point and mount the array. For instance:
mkdir -p /mnt/raid5
mount /dev/md0 /mnt/raid5
To make this mount persistent across reboots, add an entry to your /etc/fstab file. Use the UUID of the array rather than the device name to avoid issues if device ordering changes. You can find the UUID using:
blkid /dev/md0
Then add a line like this to /etc/fstab:
UUID=your-uuid-here /mnt/raid5 ext4 defaults,nofail 0 2

Configuring mdadm for Persistence

Finally, you must save the array configuration so that mdadm can automatically assemble it on boot. Run the following command to update the configuration file:
mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
On Debian-based systems, you may also need to update the initramfs to ensure the array is available early in the boot process:
sudo update-initramfs -u
This ensures that even if the drives are detected in a different order due to the separate controllers, mdadm will still recognize and assemble the correct array based on the metadata stored within the drives themselves. For more complex scenarios involving large arrays, refer to our guide on growing a RAID6 array with large drives to understand scalability limits.

Frequently Asked Questions

Can I mix drives of different sizes in a RAID5 array?

Yes, but the usable capacity is limited by the smallest drive in the set. Any excess space on larger drives remains unallocated. It is highly recommended to use identical drives to maximize efficiency and simplify replacement strategies.

What happens if one drive fails during the rebuild?

RAID5 can tolerate a single drive failure. However, during the rebuild process after a failure, the array is vulnerable. If another drive fails before the rebuild completes, all data is lost. Always have backups before performing any RAID maintenance.

Does the position of the drives matter between Intel and ASMedia controllers?

No, the logical position in the mdadm array does not depend on which physical controller the drive is plugged into. mdadm uses unique identifiers (UUIDs) stored on the drives to assemble the array, making the physical connection irrelevant to the software logic.

How do I check the health of the array after setup?

Use the mdadm --detail /dev/md0 command to view detailed status information. Look for the "State" field, which should read "clean" or "active." Also, check for any degraded states or failed devices in the output.

Is RAID5 suitable for modern storage needs?

While RAID5 offers good read performance and storage efficiency, it has longer rebuild times compared to RAID6 or RAID10. For large-capacity drives, consider RAID6 for double parity protection, as discussed in our article on troubleshooting large drive RAID growth.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More