LinuxQuestions.org
Help answer threads with 0 replies.
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 11-07-2013, 09:45 AM   #1
vrrivaro
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Rep: Reputation: 0
Question Linux software RAID and Windows 8


Hi,

I have had a hardware 3 disk raid 5 array on a Windows 8 server that passed away. The disks, however, where not harmed in any way.

Is it safe to set them on a Linux box to recover the data on the kernel software raid? Could you give me any hints or pointers on how to do it?

Thank you.
 
Old 11-07-2013, 10:14 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
The metadata is not going to be compatible unless the hardware RAID card was actually running the Linux md code. (Who knows?) What you would need to do is convince md to assemble the RAID without having the metadata. You would need to know the drive order, the chunk size, the offset of the first chunk on each disk, and which way the parity goes on consecutive stripes. Don't do create, which would wipe out your data. Don't do any operation which writes to the disk, which would wipe out your data. Assemble is fairly safe because it preserves what is there. Not sure if this is possible. Good luck.
 
1 members found this post helpful.
Old 11-07-2013, 11:12 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
If it's a hardware raid then assuming you have the same hardware controller card it should present the disks to the OS as a single device abstracting the underlying RAID, so it would simply appear as a normal device. Personally I wouldn't even think about trying to jam them in a different box and throw any form of software RAID at them, but that's just me.
 
1 members found this post helpful.
Old 11-07-2013, 01:42 PM   #4
vrrivaro
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
The metadata is not going to be compatible unless the hardware RAID card was actually running the Linux md code. (Who knows?)
I will look into that.

Quote:
Originally Posted by smallpond View Post
What you would need to do is convince md to assemble the RAID without having the metadata. You would need to know the drive order, the chunk size, the offset of the first chunk on each disk, and which way the parity goes on consecutive stripes. Don't do create, which would wipe out your data. Don't do any operation which writes to the disk, which would wipe out your data. Assemble is fairly safe because it preserves what is there. Not sure if this is possible. Good luck.
Thanks a lot!

I have lost the disk ordering info. May I guess it out?

Last edited by vrrivaro; 11-07-2013 at 01:44 PM. Reason: Added one comment (I will look...)
 
Old 11-07-2013, 04:40 PM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
There's 6 cases for order x 2 for parity direction (left or right) x N common chunk sizes (4K, 16K, 64K, etc.).
Guessing is painful. As TenTenths suggests, finding a replacement RAID card is going to be much simpler.

It may be possible to figure out by dumping data from the disks using dd. On a 3-disk RAID 5 you should see 2 chunks of data, then one of parity. If you can find a section of a text file, it will be easy to figure out the chunk size and parity order. The parity chunks will look like noise, the text can be reassembled like a jigsaw puzzle.

Each column is consecutive chunks on one disk. Parity either shifts to the left or the right on each row.

Code:
Left    Right
D D P   D D P
D P D   P D D
P D D   D P D
D D P   D D P
etc.    etc.
 
1 members found this post helpful.
Old 11-08-2013, 01:56 PM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
In fact, the heck with getting it to work with software RAID. If you can figure this out, it would be simple to write a script that skips all the parity and just reads the data in the right order and writes it out to another volume.
 
Old 11-11-2013, 12:38 PM   #7
vrrivaro
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
There's 6 cases for order x 2 for parity direction (left or right) x N common chunk sizes (4K, 16K, 64K, etc.).
Guessing is painful. As TenTenths suggests, finding a replacement RAID card is going to be much simpler.
Sure it would. That would be so much simpler... unfortunatly, the data is needed for yesterday and we where not given all the info. We have more now, they used the BIOS based RAID 5 feature od an ASUS P8H77-M LE Mothercboard, which means that it perobably is Linux or BSD based.

Quote:
Originally Posted by smallpond View Post
It may be possible to figure out by dumping data from the disks using dd. On a 3-disk RAID 5 you should see 2 chunks of data, then one of parity. If you can find a section of a text file, it will be easy to figure out the chunk size and parity order. The parity chunks will look like noise, the text can be reassembled like a jigsaw puzzle.
I asked for 3 spare disks so I can dd out the info and parity for safekeeping while doing the recovery. I was told to go ahead with the recovery anyway. Given those constraints, here is what I have decided to ask for a last more question before I proceed to risk it all out:

Can Linux really mount a RAID 5 disk array that has been made under a Asus BIOS and formatted as NTFS under Windows 2008 server? What are my chances?

Thanks a lot!
 
Old 11-11-2013, 02:21 PM   #8
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
md is amazingly versatile but any software has its limits.
mdadm has "build" mode with "--assume-clean" which will safely assemble
an existing RAID array without metadata. However it looks like
it is limited to RAID 0, 1 or 10. So I give the chance of
getting an unknown RAID 5 to assemble in md as small without some hacking.
 
Old 11-12-2013, 02:41 PM   #9
vrrivaro
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
I did a S.A.R.R.T. hard disk test of each of the drives. I should have started there, shouldn't I?

It turns out, 2 of of the 3 units are full of errors. The extended check is aborted after 30s or so even when it gives an estimated ETA of about 2 hours. The 3rd disk is OK, but I have a RAID5 array where more than one disk failed--so my array is gone.

Oh... well... thanks anyway for your help.
 
  


Reply

Tags
data recovery, ntfs, raid5, windows 8



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
How can I access Linux software RAID 1 drives attached to a Windows XP system? jmunjr Linux - Hardware 4 07-26-2011 01:09 PM
LXer: Benchmarking hardware RAID vs. Linux kernel software RAID LXer Syndicated Linux News 0 07-15-2008 03:50 PM
both windows and linux software raid on fat partition galle Linux - Software 1 01-02-2008 05:38 PM
ext2 Windows Driver and Linux Software RAID happy together? ckkoba Linux - Hardware 6 11-28-2007 12:42 AM
Windows on Linux Software Raid ciscom Linux - Software 2 10-07-2007 05:44 PM

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

All times are GMT -5. The time now is 04:19 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