raid:mdadm:stop_and_delete_a_raid_array
Table of Contents
RAID - mdadm - Stop and delete a RAID array
To completely remove a raid array it has to be stopped first before it can be removed.
mdadm --stop /dev/md0 mdadm --remove /dev/md0
Delete the superblock from the individual drives
mdadm --zero-superblock /dev/sda
Copy the partitions to other drives
When using RAID, such as RAID1 arrays, where identical partitions exist on both drives it can be useful to copy the partitions from sda to sdb:
sfdisk -d /dev/sda | sfdisk /dev/sdb
WARNING: This will dump the partition table of sda, removing completely the existing partitions on sdb, so be sure you want this before running this command, as it will not warn you at all!
raid/mdadm/stop_and_delete_a_raid_array.txt · Last modified: 2021/09/13 23:17 by peter