raid0_debian
This is an old revision of the document!
How to setup RAID-0 on Debian
The RAID 0 array works by breaking up data into chunks and striping it across the available disks. This means that each disk contains a portion of the data and that multiple disks will be referenced when retrieving information.
- Requirements: minimum of 2 storage devices
- Primary benefit: Performance
- Make sure that you have functional backups. A single device failure will destroy all data in the array.
Identify the disks you want to use
lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
say you see sda, sdb and sdc. SDA is possibly divided in sda1 and sda2, meaning that this disk is in use. If the other are just SDB and SDC these should be the disk you are aiming for.
NAME SIZE FSTYPE TYPE MOUNTPOINT sdb 100G disk sdc 100G disk sda 25G disk ├─sda1 24.9G ext4 part / ├─sda14 4M part └─sda15 106M vfat part /boot/efi
Create the Array
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sda /dev/sdb
check if it is crated successful by doing a
cat /proc/mdstat
The output should look something like:
Personalities : [raid0] md0 : active raid0 sdb[1] sda[0] 209584128 blocks super 1.2 512k chunks unused devices: <none>
Your ArtIT Team
raid0_debian.1589270619.txt.gz · Last modified: 2020/05/12 10:03 by chris