RAID – How to Delete Mdadm Array but Keep Data

mdadmraid

I have a two-disk mdadm RAID1 array. One of the disks has died so the array is in a degraded state. It's been like this for a while and while I didn't mind getting the occasional email through, recently mdadm had an update that now forces the boot process to halt in an interactive mode where I have to press y to continue or it falls to busybox. Very dull.

I'd like to keep the remaining data but I'd like the drive not to be mdadm-reliant any more. Is there a quick way to delete toe MD superblocks and mount it directly without losing data?

Best Answer

No. But if I understand correctly, the update of mdadm has replaced your configuration. It should've asked you if you wanted to keep the old one or replace it. If that is the case, then you can either use "sudo dpkg-reconfigure mdadm" or edit /etc/initramfs-tools/conf.d/mdadm so that BOOT_DEGRADED=true.

Related Question