All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Goryachev <mailinglists@websitemanagers.com.au>
To: "David C. Rankin" <drankinatty@suddenlinkmail.com>,
	mdraid <linux-raid@vger.kernel.org>
Subject: Re: Raid1 where Event Count off my 1 cannot assemble --force
Date: Mon, 09 Dec 2013 14:12:10 +1100	[thread overview]
Message-ID: <52A5350A.2020504@websitemanagers.com.au> (raw)
In-Reply-To: <52A52D35.7060909@suddenlinkmail.com>

On 09/12/13 13:38, David C. Rankin wrote:
> On 12/08/2013 06:52 PM, Adam Goryachev wrote:
>> Have you tried this:
>>
>> mdadm --verbose --assemble /dev/md1 /dev/sdb5
>> mdadm --manage /dev/md1 --run
>>
>> Being raid1, you should be able to use only a single device....
>>
>>
>> BTW, chances to recover your data should be exceptional, as long as you don't do
>> anything too silly. You should even be able to mount the device directly
>> (read-only):
>> mount -o ro /dev/sdb5 /mnt
>>
>> (Depending on the content is a filesystem).
>> Then you can just backup the data, create a new array, and restore the data.
>> Depending on data and size this might even be a better option...
> nemtemp:/mnt # mount -o ro /dev/sdb5 /mnt/sdb/
> mount: unknown filesystem type 'linux_raid_member'
> nemtemp:/mnt # mount -t ext3 -o ro /dev/sdb5 /mnt/sdb/
>
>
>    Now since I can mount it, how in the heck do I get the raid put back together.
> Seems really simple, but I'm stuck... Try with a newer mdadm?
>
Probably the best option is to follow Neil's advise to use mdadm from 
git....

The alternative as I mentioned is to backup the data, re-create the raid 
+ filesystem, and then restore the data.
>> BTW, the bitmap location looks.... strange...
>    I thought so too, but checking the other arrays, /dev/md2 has a negative
> number as well:
>
> nemtemp:/mnt # mdadm -E /dev/sda7
> /dev/sda7:
> <snip>
> Internal Bitmap : -213 sectors from superblock
>      Update Time : Mon Dec  9 02:14:18 2013
It looks strange when I first saw it, but now that I think about it, it 
is probably right (correct) since 1.0 metadata is at the very end of the 
drive, so the bitmap is probably before the metadata, hence negative offset.


-- 
Adam Goryachev Website Managers www.websitemanagers.com.au

  reply	other threads:[~2013-12-09  3:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-08 10:18 Raid1 where Event Count off my 1 cannot assemble --force David C. Rankin
2013-12-08 10:57 ` Mikael Abrahamsson
2013-12-08 17:57   ` David C. Rankin
2013-12-09  0:38     ` David C. Rankin
2013-12-09  0:52       ` Adam Goryachev
2013-12-09  2:38         ` David C. Rankin
2013-12-09  3:12           ` Adam Goryachev [this message]
2013-12-09  3:40             ` David C. Rankin
2013-12-09  1:00       ` NeilBrown
2013-12-09  4:28         ` David C. Rankin
2013-12-09  4:46           ` NeilBrown
2013-12-09  5:20             ` [SOLVED] " David C. Rankin
2013-12-09  5:40               ` NeilBrown
2013-12-09  7:40                 ` Mikael Abrahamsson
2013-12-09 21:28                   ` David C. Rankin

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=52A5350A.2020504@websitemanagers.com.au \
    --to=mailinglists@websitemanagers.com.au \
    --cc=drankinatty@suddenlinkmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.