« HOWTO: Startup and Connect to a Remote VirtualBox MachineHOWTO: Expand a RAID 5 by adding another disk »

HOWTO: Remove RAID Arrays

16/12/09

Permalink 06:59:43 pm, by richard Email , 95 words   English (GB)
Categories: Ubuntu Linux, OS and Systems Administration, Filing Systems

HOWTO: Remove RAID Arrays

The filesytem should not be mounted.

sudo umount /dev/md0

Stop the array allowing us to remove thew array.

sudo mdadm --stop /dev/md0
sudo mdadm --remove /dev/md0

Remove the marker from the disk that it was part of an array

sudo mdadm --zero-superblock /dev/sdb1 
sudo mdadm --zero-superblock /dev/sdc1

Now remove the array from the mdadm.cong file and rebuild the RAM image in initr. WE may need to find the UUID for the drives, blkid lists them all.

sudo blkid
sudo nano /etc/mdadm/mdadm.conf
sudo update-initramfs -c -k `uname -r`

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What can birds and aeroplanes both do?
antispam test