* Is there a tool to examine raw metadata?
@ 2013-11-20 18:26 Veedar Hokstadt
2013-11-21 3:36 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Veedar Hokstadt @ 2013-11-20 18:26 UTC (permalink / raw)
To: linux-raid@vger.kernel.org
Greetings,
Consider a 3 drive RAID5 where each drive has lost it's partitioning
info. Running mdadm -E does not find a superblock. But using hexedit
an mdadm superblock can be found in tact near the end of each drive.
Is there perhaps a tool I can point at the superblock to decode it? Or
trick mdadm into reporting the contents of the superblock?
I know I can look at the superblock format doc and translate it by
hand but I was hoping for an easier way. Thanks for any help. -V
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is there a tool to examine raw metadata?
2013-11-20 18:26 Is there a tool to examine raw metadata? Veedar Hokstadt
@ 2013-11-21 3:36 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2013-11-21 3:36 UTC (permalink / raw)
To: Veedar Hokstadt; +Cc: linux-raid@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
On Wed, 20 Nov 2013 13:26:10 -0500 Veedar Hokstadt <veedar@gmail.com> wrote:
> Greetings,
> Consider a 3 drive RAID5 where each drive has lost it's partitioning
> info. Running mdadm -E does not find a superblock. But using hexedit
> an mdadm superblock can be found in tact near the end of each drive.
>
> Is there perhaps a tool I can point at the superblock to decode it? Or
> trick mdadm into reporting the contents of the superblock?
>
> I know I can look at the superblock format doc and translate it by
> hand but I was hoping for an easier way. Thanks for any help. -V
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
If you use losetup to create a device pointing to the original but with an
offset to match where you think the partition was, then run "mdadm -E" on the
loop device.
You could probably do:
for i in {1..1000}
do
losetup -o $i /dev/loop0 /dev/whatever
echo $i
mdadm -E /dev/loop0
mdadm -d /dev/loop0
done
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-21 3:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-20 18:26 Is there a tool to examine raw metadata? Veedar Hokstadt
2013-11-21 3:36 ` NeilBrown
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).