LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2008, 01:18 PM   #1
qwerty_tele
Member
 
Registered: Oct 2007
Posts: 32

Rep: Reputation: 15
Help Bring Partition Table Back from the Dead-Centos 5 (RHEL)


Hello!

I need some advice. Here is what happened:

The set-up:

Two 4 port High Point 1740 SATA controllers. Each controller had four 250GB drives attached to it. Each controller was set-up as a separate RAID5 with one spare drive. In Centos 5 Linux, this created two drives in /dev, sda and sdb.

I needed a large storage space, without (as I thought) a high level of safety. So I partitioned the drives in parted and created sda1 and sdb1. I then used mdadm to create a RAID0 system across these two drives. The RAID device is called md0.

Everything worked fine. It was doing exactly what it was designed for, which was a large (1TB) temp storage space. Then people saw that it was a large storage space, so they started storing semi-critical data (images) there. They stored a lot of this data 300+ GB. Then we had a power surge. The power surge damaged the power supply. It wasn't damaged enough to just drop the motherboard or fry a drive, it acted slowly. It started with one drive on the second controller. It worked intermittently during one week (while I was on vacation). When I got back to work on the machine, another drive dropped, then another in quick succession.

So I replaced the power supply and hooked the drives back up. Two of the three dropped drives came back. One of the drives was completely dead. I was able to add a spare drive and use the High Point supplied GUI to rebuild the RAID5 array.

Here is where it stands: sda and sdb appear in /dev. That is good. sda1 appears in /dev. that is good. sdb1 does not appear in /dev. That is bad. Apparently, the partition table was dropped on the second array. When I run mdadm to rebuild, it tells me there is only one drive (sda1) in the array. When I run parted, it cannot find any partition information on sdb.

So here is where I am at. Does anybody know of a way to restore/rebuild this partition table? Are the tables identical in sda1 and sdb1? What I mean is, in a RAID0, are the tables written across the drives? Can I copy the table from sda1 to sdb? How do I do that?

Thanks in advance. And I already know, it was a stupid set-up, it was a frail system, etc., etc. But before you let me have it, take this into account: the power surge was caused by the owner of the company indiscriminately throwing circuit breakers Even better: he was throwing circuit breakers with an electrician because they were trying to determine how to run power down to the new data center.

TW
 
Old 10-30-2008, 01:43 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
You could try testdisk:

http://packman.links2linux.org/package/testdisk/75402

-----------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Firefox extensions to bring back the dead LXer Syndicated Linux News 0 06-16-2008 10:30 AM
RHEL 4 Partition Table corrupted pawan Linux - Enterprise 1 02-20-2008 06:50 AM
Partition deleted from table, can I get it back? serafean Linux - General 3 11-11-2006 01:25 PM
how do i bring back windows OMEGA-DOOM Linux - Newbie 6 11-15-2004 03:06 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration