MDADM: - MDADM command is used to monitor and manage software RAID devices.
Use Case
lsblk: - Get Block Devices Name
yum install -y mdadm:- Install MDADM
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc: - Here
/dev/md0: - Creating RAID
--level=0:- Define RAID Level
--raid-devices=2:- No of Storage Devices
/dev/sdb:- Name of Storage Device1 (get this using lsblk command) which you want to create RAID.
/dev/sdc:- Name of Storage Device2 (get this using lsblk command) which you want to create RAID.
mkdir /mnt/raid0-drive: - Creates Directory.
mkfs.ext4 /dev/md0: - Creating File System
mount /dev/md0 /mnt/raid0-drive: - Mount RAID to system
df -h: - Report File System Disk Space Usage.