Remove HW RAID /dev/dm-0 device

Heinz Mauelshagen mauelshagen at redhat.com
Mon Mar 3 13:20:35 UTC 2008


On Sat, Mar 01, 2008 at 10:37:48AM -0500, Jack Palmadesso wrote:
> Yesterday I set up a Promise hw raid controller in my FC8_64 system. I ended
> up returning it but before I removed it I initialized 2 drives into a RAID0
> setup. Now that the controller is gone my system is complaining about
> /dev/mapper. I ended up clearing this by booting into rescue and
> initializing the 2 drives I had setup with the controller. The system is
> happy again but when I do an fdisk -l I still show a /dev/dm-0 device. My
> question is how can I initialize the drives without booting to rescue mode ?
> And how can I get rid of the /dev/dm-0 device ?
> 
> dmraid still shows the 2 devices. I've initialized and formatted both but it
> won't go away.
> # dmraid -r
> ERROR: asr: Invalid magic number in RAID table; saw 0x0, expected 0x900765C4
> on /dev/sda
> /dev/sdb: pdc, "pdc_bicfbbcgbh", stripe, ok, 312450720 sectors, data@ 0
> /dev/sdd: pdc, "pdc_bicfbbcgbh", stripe, ok, 312450720 sectors, data@ 0

See dmraid manual:

dmraid -rD /dev/ad[bd]

> _______________________________________________
> Ataraid-list mailing list
> Ataraid-list at redhat.com
> https://www.redhat.com/mailman/listinfo/ataraid-list

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Storage Development                               56242 Marienrachdorf
                                                  Germany
Mauelshagen at RedHat.com                            PHONE +49  171 7803392
                                                  FAX   +49 2626 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the Ataraid-list mailing list