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 11:25:05 +0100	[thread overview]
Message-ID: <59F30981.1050205@youngman.org.uk> (raw)
In-Reply-To: <3f1359a2-f07a-f75e-605a-0d271df11913@suddenlinkmail.com>

On 27/10/17 11:02, David C. Rankin wrote:
> How best to clear this array completely so that it doesn't cause mdadm any
> problem on the rebuild from the good array?

My favourite ... "dd if=/dev/zero of=/dev/sdX". Takes a
LLoooonnnnnngggggggg time.

But there is an option to mdadm that will wipe the superblock. I don't
know whether it will wipe both at once, I'd try it three times and if it
comes back with "can't find superblock" the third time you know it's
done :-) I've never used it so I can't say how it works.

Oh - and when you add it back to the good disk, use --add, and NOT
--re-add. That implies to mdadm that it's a new disk needing re-config.

Cheers,
Wol

      reply	other threads:[~2017-10-27 10:25 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
2017-10-27 10:02     ` David C. Rankin
2017-10-27 10:25       ` Wols Lists [this message]

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=59F30981.1050205@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.