All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wols Lists <antlists@youngman.org.uk>
To: "David C. Rankin" <drankinatty@suddenlinkmail.com>,
	mdraid <linux-raid@vger.kernel.org>
Subject: Re: mount(2) system call failed: Structure needs cleaning?
Date: Fri, 27 Oct 2017 10:45:09 +0100	[thread overview]
Message-ID: <59F30025.5020803@youngman.org.uk> (raw)
In-Reply-To: <5a939404-9405-1721-99c9-0884dc978702@suddenlinkmail.com>

On 27/10/17 01:59, David C. Rankin wrote:
> Yes, it looks like something on the array was corrupted. When I attempt to set
> the --size to the exact size of the array, it says I have 4 less bytes than
> the original array size:
> 
> # mdadm --verbose --create /dev/md126 --level=1 --raid-devices=2
> --metadata=1.0 --bitmap=internal --size=20972752 --readonly
> --uuid=e45cfbeb:77c2b93b:43d3d214:390d0f25 /dev/sdf5 missing
> mdadm: /dev/sdf5 is smaller than given size. 20972748K < 20972752K + metadata
> mdadm: create aborted
> 
> (this is an old ATA drive, so I wonder if the 4096 block size is messing
> things up?)
> 
> Is there a way out of this conundrum?

Quite likely, but there's a good chance you'll need a disk hex editor :-(

You say you ran "mdadm --create" over the array? Oh dear oh dear oh
dear! :-(

If the array was originally 1.0, and the re-create created it as 1.2, it
just stomped all over your data.

And now it's probably having problems re-assembling because it's finding
two superblocks and doesn't know what to do with them.

Bottom line, yes I suspect your array is recoverable. But your
filesystem is ALSO damaged, and trying to fix two problems has probably
squared the workload ... :-(

The only good news I can see is it's a mirror. Your best bet is probably
to destroy both superblocks, and try and mount the partition directly
not as a mirror. That way, your only problem will be a damaged
filesystem. Don't try this until you've had better advice than mine, though!

Cheers,
Wol (the bringer of bad news :-(

  reply	other threads:[~2017-10-27  9:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-27  0:32 mount(2) system call failed: Structure needs cleaning? David C. Rankin
2017-10-27  0:59 ` David C. Rankin
2017-10-27  9:45   ` Wols Lists [this message]
2017-10-27 10:02     ` David C. Rankin
2017-10-27 10:25       ` Wols Lists

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=59F30025.5020803@youngman.org.uk \
    --to=antlists@youngman.org.uk \
    --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.