Skip to main content

Creatin RAID and mounting it

Is [[Formatting - Drives]] needed? Do that first, then come back.

See if mdadm is installed or not
mdadm

  If not, install it
  apt install mdadm

Check for all storage drives in system
lsblk

Create the RAID with the drive you are going to use
mdadm --create /dev/md999((create your own file name)) --level=5 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

Check to see if the array is in progress
cat /proc/mdstat

Check the block ID for the new virtual drive/s
blkid

Make a File System on that new drive
mkfs.ext4 /dev/md999 (find your own disk location)

mkfs.ext4 - .ext4 means the "type" of file. shown on "sudo blkin" then state locate of the file its going to be

Create a location to mount the new virtual drive/s
"/" is a good place to start

Mount the RAID to the storage location