Results 1 to 3 of 3

Thread: mdadm release of drives

  1. #1
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,571
    Distro
    Ubuntu Development Release

    mdadm release of drives

    After an array is created with mdadm what is the best way to release all drives of the array to be used for other purposes?

    One purpose would be to use some of the drives in a new array. What does it take to remove all references to the old array's UUID and superblocks so that the new build occurs without incident?
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q33WB, Intel i7-4790K 4.6GHz, SSDs,32G RAM | Dell Laptop 13.3".
    Oracle VBox w/ WinXP/Win10 running Xara Designer, PaintShopPro, and InDesign CS.

  2. #2
    Join Date
    Jun 2008
    Beans
    7

    Re: mdadm release of drives

    To stop a RAID array use
    Code:
    mdadm --stop /dev/md0
    where
    Code:
    /dev/md0
    is your raid device.

    To clear RAID-specific data from a partition, use
    Code:
    mdadm --zero-superblock /dev/sda1
    where
    Code:
    /dev/sda1
    is the partition you want to clean RAID metadata from.

  3. #3
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,571
    Distro
    Ubuntu Development Release

    Re: mdadm release of drives

    Thanks... I take note.

    umount the array, stop it, then zero the superblocks on each drive in the array. Then we can create another array using a different md number, md[nn]. Okay!

    I wonder how you get the already used md number removed from the boot list that the kernel and md use to assemble the old array? Get rid of the old mdadm.conf for one thing, then what?
    Last edited by fjgaude; June 16th, 2008 at 10:35 PM. Reason: added question
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q33WB, Intel i7-4790K 4.6GHz, SSDs,32G RAM | Dell Laptop 13.3".
    Oracle VBox w/ WinXP/Win10 running Xara Designer, PaintShopPro, and InDesign CS.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •