What RAID level does it support?
RAID levels 0, 1, 5, 6
To create, format and resize the disk array, we will need to install only one package, mdadm.
You can use #apt-get install mdadm to install the software package.(Internet online install.)
How do I configure the RAID for my video storage?
1. Check the HDDs
Before we start to creat the actual RAID array, it is suggested that put a partition on each hard drive that you plan to use in your array. This is not a requirement with mdadm, but could help you get more clearer on how you use the harddrive.
First, let’s view a list of our available hard drives and partitions.This will output, for each drive you have, something along the lines of:
2. Create the Array
Now it’s time to start building an mdadm RAID5 array. We use the mdadm create flag. We also need to specify the RAID level (RAID5 in this example), as well as how many devices(3 HDDs) and what they are(/dev/sdb, /dev/sdc, /dev/sdd).
The following command will use 3 of our newly partitioned disks.
#mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sd[bcd]1
While the array is being built you can check the status by output the file, /proc/mdstat.
This will output the contents of the file to the screen, refreshing every 2 seconds (by default). While the array is being built it will show how much of the “recovery” has been done, and an estimated time remaining. This process can take many hours depending on how big the array you’re assembling is.
3. Setup OS
Now we need to edit the mdadm configuration file so that it knows how to assemble the array when the system reboots.
4. update the initramfs
OS now can access to your new mdadm array at boot time.
5. Creating and mounting the filesystem
This will take a while, especially if your array is large. By default ext4 will reserve 5% of the drives space, which only root is able to write to.
Besides, we want to use all the space on this storage, so we use tune2fs to set the reserved space to 0%,
6. Edit the fstab
Next we should add the array to the fstab, so that it will automatically be mounted when the system boots up. This can be done by editing the file /etc/fstab.
I would suggest you to use UUID as the identifier, so you can type #ll /dev/disk/by-uuid, then copy the UUID of /dev/md0.