User Tools

Site Tools


raid:mdadm:remove_the_raid

RAID - mdadm - Remove the RAID

sudo mdadm --remove /dev/md0

Then edit the /etc/mdadm/mdadm.conf file and comment out the RAID definition.

/etc/mdadm/mdadm.conf
#ARRAY /dev/md0 level=raid5 num-devices=3 metadata=1.2 spares=1 name=bionic:0 UUID=76c80bd0:6b1fe526:90807435:99030af9
#  devices=/dev/sdb1,/dev/sdc1,/dev/sdd1

Also, edit /etc/fstab file and comment out the line that enables auto-mount of the RAID device.


Wipe everything

mdadm --stop /dev/md0
mdadm --zero-superblock /dev/sda1
mdadm --zero-superblock /dev/sdb1
mdadm --zero-superblock /dev/sdc1
raid/mdadm/remove_the_raid.txt · Last modified: 2021/09/26 12:19 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki