LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2008, 09:18 AM   #1
jackpal
Member
 
Registered: Oct 2003
Location: Florida USA
Distribution: Fedora, RHEL
Posts: 57

Rep: Reputation: 15
Removing HW RAID Question


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

Update:
I was able to erase the metadata by using:
dmraid -r /dev/sdb -E
dmraid -r /dev/sdd -E

dmraid reports the following now:
]# dmraid -r
ERROR: asr: Invalid magic number in RAID table; saw 0x0, expected 0x900765C4 on /dev/sda
No RAID disks

I'm not sure what the magic number is about but I've managed to remove the raid disks. Still /dev/dm-0 persists on reboots. How do I get rid of this ?

Last edited by jackpal; 03-01-2008 at 05:39 PM.
 
Old 03-02-2008, 06:41 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
try wiping your mbr....warning this will mean a clean install.....so grab any data with the live cd if you need it now.

boot live cd open shell

Code:
dd if=/dev/zero of=/dev/hda bs=512 count=1
...................or /sda...............
same for.............../hdb.............
.....................or /sdb
 
Old 03-02-2008, 07:02 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look at the "sudo /sbin/fisk -l" listing. What ID are the partitions? They should be 83.

Also, from "mdadm --misc --help"
Code:
 
--zero-superblock  : erase the MD superblock from a device.
So you could run "sudo /sbin/mdadm --misc --zero-superblock <devices>"

Last edited by jschiwal; 03-02-2008 at 07:07 PM.
 
Old 03-03-2008, 12:09 PM   #4
jackpal
Member
 
Registered: Oct 2003
Location: Florida USA
Distribution: Fedora, RHEL
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks. No data on the drives to worry about. I ended up just doing dd if=/dev/zero of=/dev/[sdx] count=1.

I also found that:
dmraid -rD /dev/ad[bd]

would work also.
 
  


Reply

Tags
dmraid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
software raid 10 (yes, another raid question) aunquarra Linux - Server 3 06-15-2007 05:28 PM
removing software raid configuration sbabcock23 Linux - Software 4 03-07-2007 09:32 AM
will removing a raid disc delete its data? nadroj Linux - Hardware 15 02-15-2006 05:15 AM
Removing Raid 1 krishvij Linux - Newbie 2 03-09-2005 10:23 PM
Question about removing Linux jpan Linux - General 8 10-02-2004 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration