Fedora Linux Support Community & Resources Center
  #1  
Old 24th April 2007, 06:32 AM
yagerd001 Offline
Registered User
 
Join Date: Aug 2006
Posts: 3
Failed raid 01 - mdadm

Horrors. I setup a raid using /dev/sda and /dev/sdb. Within a couple of weeks, sdb failed with a repetitive clicking sound. I immediately turned off my computer and shipped the thing back to Seagate, and they sent me a replacement. Now when I print the partition table for sda using fdisk, it says:

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Evidently I didn't follow the procedure to "fail" the bad drive, and now I can't figure out how to retrieve the information on the good drive, /dev/sda.

Anyone help me out of this jam?

Oddly enough, the replacement disc shows that it's already partitioned.

DY

email:
yagerd001@hawaii.rr.com
Reply With Quote
  #2  
Old 24th April 2007, 03:01 PM
DBizzle
Guest
 
Posts: n/a
You should be able to fix this in four steps:


first guest partition to see what it thought was really there by issuing this command

eqgpart /dev/hdc

Secondly save the MBR and the partition table

dd if=/dev/hdc of=mbr bs=512 count=1

Third, use gpart and tell it that you have faith in what it
believed was in the first partition, and for it to re-create the
partition table

gpart -W /dev/hdc /dev/hdc

Fourth reboot after running gpart.

This should help
Reply With Quote
  #3  
Old 25th April 2007, 07:11 PM
yagerd001 Offline
Registered User
 
Join Date: Aug 2006
Posts: 3
Gparted shows that /dev/sda is unallocated. It does give me the option of assigning a disk label. If I assign a disk label, will that damage any contents that still might be there?
Reply With Quote
  #4  
Old 25th April 2007, 07:35 PM
Flyboy917 Offline
Registered User
 
Join Date: Jan 2005
Location: Wichita, KS
Posts: 373
I dissagree on this. There are specific tools/ in md or mdadm used to rebuild a failed drive in an array. Unfortunatly, I can't tell you what they are because its been such a long since I set up my raid. When I did originally set it up, I intentionally "failed" a drive just to test my ability to restore it. It was simple a simple command line if I recall. Be carefull with gpart.

here is a start:
http://tldp.org/HOWTO/Software-RAID-0.4x-HOWTO-4.html

Last edited by Flyboy917; 25th April 2007 at 07:39 PM. Reason: add link
Reply With Quote
Reply

Tags
failed, mdadm, raid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID 5 - mdadm jscheponik Hardware & Laptops 3 12th June 2008 07:14 PM
what is md? How is it related to RAID? What is 'mdadm'? balajiitian Using Fedora 1 2nd April 2008 10:21 PM
Mdadm -- Raid-10 BillT440 Using Fedora 1 7th December 2006 03:29 PM


Current GMT-time: 11:35 (Tuesday, 02-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat