20131127 removing a linux software raid array - plembo/onemoretech GitHub Wiki

title: Removing a linux software raid array link: https://onemoretech.wordpress.com/2013/11/27/removing-a-linux-software-raid-array/ author: phil2nc description: post_id: 6670 created: 2013/11/27 15:35:37 created_gmt: 2013/11/27 20:35:37 comment_status: closed post_name: removing-a-linux-software-raid-array status: publish post_type: post

Removing a linux software raid array

A few steps to dismantling a Linux software RAID array. I've obviously been playing around with software RAID on Linux. Sometimes you have to do something several times before finally getting it right. Volume groups that have been overlaid onto a RAID array need to be removed first. Note: Remember, when making changes to disk configurations: if there's any doubt, reboot. 1. Check all devices.

fdisk -l

2. Check the raid disk.

mdadm --detail /dev/md0

3. Unmount the raid device.

umount -l /dev/md0

4. Stop the raid device

mdadm --stop /dev/md0

5. Zero the superblocks on each raid volume.

mdadm --zero-superblock /dev/sdb
...

6. Remove the raid device.

mdadm --remove /dev/md0

7. Remove relevant lines from /etc/fstab. 8. Reboot.

Copyright 2004-2019 Phil Lembo