From: Radovan Makovsky <radovan.makovsky@gmail.com>
To: linux-raid@vger.kernel.org
Subject: It is possible to recover data after incorrect assemble of the RAID5?
Date: Thu, 10 Dec 2009 11:29:31 +0100 [thread overview]
Message-ID: <4B20CD8B.1040809@gmail.com> (raw)
Hi all,
I did a silly mistake when i tried to assemble array back to the raid5
with 3 drives in total.
What i did:
-I found some errors in smart. So i removed first disk from raid:
mdadm --fail /dev/md0 /dev/sda7
mdadm --remove /dev/md0 /dev/sda7
-Than i run badblocks with these parameters:
badblocks -svw /dev/sda
-Output of the command i never saw, but it should look like this:
Checking for bad blocks in read-write
mode
From block 0 to
65535
Testing with pattern 0xaa:
done
Reading and comparing: 0 0.00% done, 0:00
elapsed
1
2
.
.
65535
done
Testing with pattern 0x55: done
Reading and comparing: done
Testing with pattern 0xff: done
Reading and comparing: done
Testing with pattern 0x00: done
Reading and comparing: done
Pass completed, 65536 bad blocks found.
-During the test something happened and server crashed. I boot live cd
for recovery.
-First i copied partition table from second disk to first disk.
-I tested following commands on test data and for mine shame they were
successful on test data but not on live data:
|mdadm -Cv /dev/md0 -lraid5 -n3 /dev/sd[abc]7|
I do not understand how i could overlook assemble in documentation.
Question is. It is possible if i exactly know what was on the first disk
in time of creation of array recover the data. If yes it is possible in
human life? What tools can be used for this?
BR
Radovan
reply other threads:[~2009-12-10 10:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B20CD8B.1040809@gmail.com \
--to=radovan.makovsky@gmail.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).