Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Creating and Managing a Software RAID

RAID is used to combine multiple devices into one or more logical units. In this hands-on lab, we are tasked with creating a RAID 5 array, failing active devices and observing the behavior, and adding new devices to the RAID to replace the ones that have failed.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 24, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create a RAID 5 Array Based on the Instructions

    Use the mdadm command to create the RAID 5 array.

    mdadm -C /dev/md0 -l raid5 -n 3 /dev/xvdf1 /dev/xvdg1 /dev/xvdj1 -x 3 /dev/xvdf2 /dev/xvdg2 /dev/xvdj2
    

    Create the mdadm.conf file to ensure the RAID is available on boot.

    mdadm -D -s -v > /etc/mdadm.conf
    
  2. Challenge

    Create an Ext4 Filesystem, Mount It, and Ensure It Persists Through a Reboot

    Use the mkfs command to create an ext4 filesystem on /dev/md0.

    mkfs -t ext4 /dev/md0
    

    Create the /mnt/raid mount point.

    mkdir /mnt/raid
    

    Mount /dev/md0 on /mnt/raid.

    mount -t ext4 /dev/md0 /mnt/raid
    

    Use the blkid command to obtain the UUID of /dev/md0:

    blkid /dev/md0
    

    Use a text editor to open /etc/fstab and add the following entry at the bottom of the file (using the UUID observed in the previous step):

    UUID=uuid_of_md0    /mnt/raid    ext4    defaults    0 0
    
  3. Challenge

    Fail the Active Devices in the Array One at a Time and Remove Them

    Fail the active devices using the -f option (Note: Wait until a spare device has been added to the array before proceeding to the next to prevent RAID failure. The state can be checked by running mdadm -D /dev/md0).

    mdadm -f /dev/md0 /dev/xvdf1
    mdadm -f /dev/md0 /dev/xvdg1
    mdadm -f /dev/md0 /dev/xvdj1
    

    Remove failed devices from the array.

    mdadm -r /dev/md0 /dev/xvdf1 /dev/xvdg1 /dev/xvdj1
    
  4. Challenge

    Add Three New Devices to the Array Based on the Instructions

    Add new devices to /dev/md0.

    mdadm -a /dev/md0 /dev/xvdf3 /dev/xvdg3 /dev/xvdj3
    

    Update /etc/mdadm.conf with new configuration changes.

    mdadm -D -s -v > /etc/mdadm.conf
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight