Results 1 to 9 of 9

Thread: Anyone know how to remove dmraid?

  1. #1
    Join Date
    Jan 2008
    Location
    London, UK
    Beans
    474
    Distro
    Ubuntu 10.04 Lucid Lynx

    Anyone know how to remove dmraid?

    LOL! and before you say duh, sudo apt-get remove dmraid, thats not quite what i meant.

    Once upon a time I had mirrored drives. One died, decided not to mess with it anymore and keep a backup like I probably really should anyways (mirrors don't protect against human error )

    Well I had problems installing karmic and after checking the logs, noticed that the drive that was part of that mirror, is still being seen as part of that mirror. Like when you create the array, theres some metadata somewhere so the drive so it can go "hey, I'm part of a raid array!)

    So how do I completely remove/erase/demote this labeling?

    and just in case...
    Code:
    :~$ sudo dmraid -r
    /dev/sdb: pdc, "pdc_bfehaige", mirror, ok, 976562500 sectors, data@ 0

    Oh, I had tried this before but get an error
    Code:
    :~$ sudo dmraid -x
    
    About to delete RAID set pdc_bfehaige
    
    WARNING: The metadata stored on the raidset(s) will not be accessible after deletion
    Do you want to continue ? [y/n] :y
    ERROR: Raid set deletion is not supported in "pdc" format
    Last edited by b0b138; November 10th, 2009 at 10:55 PM.

  2. #2
    Join Date
    Jan 2009
    Beans
    1

    Re: Anyone know how to remove dmraid?

    I had exactly the same problem with an Nvidia RAID - the only difference being the error message:

    ERROR: Raid set deletion is not supported in "nvidia" format

    I managed to work around as follows:

    Booted the 9.10 LiveCD
    Removed dmraid using > apt-get purge dmraid
    It complained about the RO nature of the disk but removed dmraid anyway
    Clicked the install icon
    The partition editor now showed me my /dev/sd* partitions

    Good luck!

  3. #3
    Join Date
    Nov 2009
    Beans
    2

    Re: Anyone know how to remove dmraid?

    I also have the same problem, purge dmraid only removes the program for me, when I install it again it will still read the metadata from the disks:

    sudo dmraid -r
    /dev/sdc: pdc, "pdc-fdiagdeb", mirror, ok, 2929687488 sectors, data@ 0
    /dev/sdb: pdc, "pdc-fdiagdeb", mirror, ok, 2929687488 sectors, data@ 0

    And same problem as thread starter when doing
    sudo dmraid -x

    Have tried to delete all arrays in the rocket raid 1742 controller bios but still the metadata is there.

    testdisk show there is one extra disk named /dev/mapper/pdc_fdiagdeb

    Is there a way to completely remove everything on the disks ? Tried dban but it didn't find the disks.

  4. #4
    Join Date
    Nov 2009
    Beans
    2

    Re: Anyone know how to remove dmraid?

    DBAN (www.dban.org) quick wipe of all HDD solved problem for me

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Anyone know how to remove dmraid?

    I saw in this thread the same issue and how to fix it. See Presence's comments:

    Presence1960 on remove old raid setting from HD
    http://ubuntuforums.org/showthread.php?t=1325650
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Jan 2008
    Location
    London, UK
    Beans
    474
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Anyone know how to remove dmraid?

    Finally figured out how to remove the metadata

    Code:
    sudo dmraid -rE
    And it didn't mess with any data I did have to fsck it though

  7. #7
    Join Date
    Dec 2007
    Beans
    3
    Distro
    Ubuntu

    Re: Anyone know how to remove dmraid?

    Quote Originally Posted by b0b138 View Post
    Finally figured out how to remove the metadata

    Code:
    sudo dmraid -rE
    And it didn't mess with any data I did have to fsck it though
    thanks Bob, this worked for me without the fsck, cheers

  8. #8
    Join Date
    Apr 2011
    Beans
    1

    Re: Anyone know how to remove dmraid?

    Quote Originally Posted by trostr View Post
    I also have the same problem, purge dmraid only removes the program for me, when I install it again it will still read the metadata from the disks:

    sudo dmraid -r
    /dev/sdc: pdc, "pdc-fdiagdeb", mirror, ok, 2929687488 sectors, data@ 0
    /dev/sdb: pdc, "pdc-fdiagdeb", mirror, ok, 2929687488 sectors, data@ 0

    And same problem as thread starter when doing
    sudo dmraid -x

    Have tried to delete all arrays in the rocket raid 1742 controller bios but still the metadata is there.

    testdisk show there is one extra disk named /dev/mapper/pdc_fdiagdeb

    Is there a way to completely remove everything on the disks ? Tried dban but it didn't find the disks.
    This is what I used to install Ubuntu 11.04. Load live cd, open terminal and give the command.

    ubuntu@ubuntu:~$ sudo apt-get remove dmraid

    Than click the icon on desktop Install Ubuntu 11.04. Should be able to do install, will read all of your partition. Worked for me. Also worked the same in Ubuntu 10.10

  9. #9
    Join Date
    Feb 2007
    Beans
    1

    Re: Anyone know how to remove dmraid?

    Quote Originally Posted by b0b138 View Post
    Finally figured out how to remove the metadata

    Code:
    sudo dmraid -rE
    And it didn't mess with any data I did have to fsck it though
    Double props to b0b for posting this. I'm running CentOS 5.6 (blasphemy?) and had been trying to mount an old failed nvidia raid hdd that had come from an old windows box and this kept causing it to fail. Thank you thank you thank you!!

Tags for this Thread

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
  •