LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-15-2014, 09:46 PM   #1
sleeping
LQ Newbie
 
Registered: Dec 2004
Distribution: ArchLinux
Posts: 22

Rep: Reputation: 0
Did mdadm --create destroy my data?


I think I messed up pretty bad. On my old system, I had 2 identical drive that were assembled with mdadm as a MD RAID 10 with a "far" layout.

When building my new system and migrating the two disks, I had a total brain fart, and instead of doing assemble and scan, I ran the following command:

Code:
mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sdd1 /dev/sde1
When /dev/md0 wouldn't mount, I quickly realized that this was not what I intended, but the damage was done, as mdadm had started the sync. I have stopped mdadm (mdadm --stop /dev/md0), and now I can't mount the drives individually (unknown filesystem type 'linux_raid_member'), and parted doesn't see any filesystem on the partitions of the individual drives.

Is there a way to recover the data from either drive, or did mdadm completely destroy both drives in an unrecoverable way?
 
Old 04-16-2014, 05:35 AM   #2
JonathanWilson
Member
 
Registered: Aug 2009
Location: Ilkeston, England
Distribution: ubuntu, xp, embeded
Posts: 79

Rep: Reputation: 1
I'm sad to say I think its probably hosed the data due to the re-sync... although that said, it "might" be possible to recover some of the data further into the partition (which escaped the sync) it just depends on if the important file system inode data is still hanging around some where further along on the disk, if the file "name/inode" data (as apposed to the data of/in the file) is available some data might be recoverable, but I'll be honest I think its unlikely.

Your best bet is to use the mailing list for linux raid. http://vger.kernel.org/vger-lists.html << the linux raid list is about 2/3's the way down the page.

If you've never used mail lists before, they are fairly simple but you'll need to do a little reading first.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm & raid6: does re-create(with different chunk size) + resync destroy orig. data? schanhorst Linux - Server 2 10-15-2010 04:31 PM
mdadm & raid6: does re-create(with different chunk size)+resync destroy orig. data? schanhorst Linux - Server 1 10-14-2010 08:06 PM
get my data back after mdadm --create RicoCarmen Linux - General 1 10-23-2005 07:18 PM
need to destroy data on drive syx Linux - Hardware 11 10-01-2004 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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