@Ancool, welcome to the flock!
As an alternative to RAID, you can consider logical volumes - if you're on Debian, install it with apt install lvm2
. I much prefer it over RAID because it is so very convenient, at least for the way I manage my systems. The principle is simple enough:
- You mark your disks/partitions as physical volumes:
# pvcreate /dev/sda
- you do that to either a whole disk or to a partition
- Collect your physical volumes into one or more volume groups:
vgcreate vg00 /dev/sda /dev/sdb ...
- Create logical volumes:
lvcreate -L 100G -n var vg00
This last command creates a device, /dev/vg00/var
, which can be formatted like any disk device.
lvcreate
has a large number of options - some for RAID like functionality, although I never use them, and you can specify on which physical volumes your filesystem should be allocated. The main advantage, in my view, is that you can increase the size of the logical volume with lvextend
(followed by the appropriate command to extend the filesystem) - and unlike fixed partitions, you are not constrained by whether there is a partition after the one you want to extend.
It may not be what you are looking for, but study it a bit - I think everyone who uses Linux should at least know about LVM; and in fact, they exist across all UNIXes, so they are worth knowing.