emscom > emscom Help Desk > Knowledgebase

Search help:

Linux create MD RAID5 device


Linux MD RAID5 Creation

1. Wipe the current partition table


2. Parted /dev/sda

mklabel gpt

makepart, name p1, type btrfs, min=1MiB, max= -1

set 1 raid on

align-check opt 1

#Repeat for each raid5 member


3. create raid5 from 4 member disks sda, sdb, sdd, sde

mdadm --create --chunk=4 --level=5 --raid-devices=4 --name=arry0 /dev/md0 /dev/sda /dev/sdb /dev/sdd /dev/sde


4. restart PENDING resync

mdadm --readwrite /dev/md0


5. monitor rebuild

cat /proc/mdstat


Was this article helpful? yes / no
Related articles Linux MD RAID optimisation
Build. Align partition
Article details
Article ID: 140
Category: NAS
Date added: 07-12-2020 13:59:46
Views: 63
Rating (Votes): Article not rated yet (0)

« Go back

Powered by Help Desk Software HESK, in partnership with SysAid Technologies