LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-07-2014, 09:01 PM   #16
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0

You wouldn't by chance be able to point me to where you got that kind of assistance would you? I'm still trying to get this problem figured out.
 
Old 12-07-2014, 11:20 PM   #17
Soapm
Member
 
Registered: Dec 2012
Posts: 182

Rep: Reputation: Disabled
Quote:
Originally Posted by daisychick View Post
You wouldn't by chance be able to point me to where you got that kind of assistance would you? I'm still trying to get this problem figured out.
It was either here or the debian forum but it would have been years ago when my raid failed. What I remember is the person pm'd me and we worked my issue offline for fear that others might try the medicine meant to cure my disease. I didn't save the pm's and I don't recall who they were...

Any reason your drives have a last update time back in 2013???
 
Old 12-09-2014, 06:15 PM   #18
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
Because I've been putting off doing this? I knew it was going to be a nightmare. I wish now that I could change the title to something different since the data is most likely recoverable... I may just create a new thread.
 
Old 12-09-2014, 07:56 PM   #19
Soapm
Member
 
Registered: Dec 2012
Posts: 182

Rep: Reputation: Disabled
Doesn't have to be a nightmare, but you will have to have the confidence to try somethings to see what works for you.

I pretty much gave you the extent of their help (from my notes) minus the lessons and learning dialogue, the command that restored my raid 5 was;

Code:
mdadm --create /dev/md0 --assume-clean -l5 -n4 -c512 /dev/sd[bcd]1 missing
I don't know if you can remove the "--assume clean" if that worries you. You can always try it without the --assume-clean. We had to take several stabs at restoring mine because I didn't know my chunk size etc... Once he explained that the commands were only writing to the superblock, I pretty much ran with it from there.

I've had to restore my raid since because of a power failure and I used these same commands. From what I can see, the raid is fairly bullet proof as long as you don't kick off a rebuild/resync...

Disclaimer... I'm no expert which is why I didn't suggest you try the create command and I'm old, and working with very bad memory (old) but they basically explained that the raid shouldn't try to rebuild as long as you input the missing device parameter. And as long as it doesn't try to rebuild/resync, then all this command is doing is creating a new/clean superblock, but it shouldn't disturb any of your data because what you're creating is a raid drive with no parity (missing drive means no parity).

In my case I would create a superblock with xxx chunk size, mount the drive then try to read the data. When that didn't work I'd try yyy chunk size then zzz chunk size etc... Each time I tried the command, all it was doing was creating a new superblock which assembled the raid. My data would be there, but unreadable. Once we found the right chunk size which was 512, I was able to read my data...

Is there any way you can make a back up of 3 of these drives? If so, make a back up and try fiddling with the command to see if you can make it work. Backup doesn't have to be to another similar drive, you can make an compressed image of the drives.

You know all your parameters from your initial mdadm --examine /dev/sd[bcde]1 you posted. You can also back up your superblocks, because again, your data will be there as long as the raid doesn't rebuild/resync and you can copy your backup superblocks back if your trying fails.

I think your problem is drive sdb has that Recovery Offset flag set. I don't see why this command won't work if you use your original drives [cde]...

Code:
mdadm --assemble --force /dev/md127 /dev/sd[cde]1
or
Code:
mdadm --assemble --scan --force
Remember, the drive letters will change because sdb won't be there. One of these drives will probably be designated as sdb so you will have to get the drive letters from the drives once the system boots then try this command. From what I see, sdc has an outdated last update time but as long as nothing was written to the drives in those two hours it was out of the array then you can force it in and you should be fine.

But if that doesn't work, unless you can find someone who can tell you how to manipulate your current superblocks, you're just about forced to use the create command which will write you new superblocks. Not the end of the world as long as you use 3 drives, because including all 4 will kick off a resync and you're toast...
 
  


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
Failed RAID array problem. baprozeniuk Linux - Software 6 07-23-2009 07:08 AM
Raid 5 Array Failed Zhadnost Linux - Server 1 07-11-2009 10:39 PM
Using mdadm - Failed RAID-5 Array but individual disks check out ok JRFrogman Linux - Server 0 06-05-2008 02:46 PM
A harddrive failed in my raid array, how do I replace it? abefroman Linux - Hardware 2 09-23-2005 04:02 PM

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

All times are GMT -5. The time now is 02:12 PM.

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