Tuesday, 22 December 2020

Prepare and create a RAID5 Array of 5 * 4TB Segate Barracuda Disks

 We need to prepare the disks as GPT labeled as they are > 2TB.

For each disk:

  • parted -a optimal /dev/sdx
  • mklabel gpt
  • mkpart primary 0% 100%
  • set 1 raid on
  • align-check optimal 1
  • print
  • quit

Create the array:
  • mdadm --create /dev/md0 --level=raid5 --raid-devices=5 /dev/sdx1 /dev/sdx1 /dev/sdx1 /dev/sdx1 /dev/sdx

In all of the above replace /dev/sdx1 with appropriates devices, e.g /dev/sda1 /dev/sda2 etc.

No comments:

Post a comment