From: Wols Lists <antlists@youngman.org.uk>
To: linux-raid@vger.kernel.org
Subject: Re: MDRaid Rollback
Date: Wed, 24 Mar 2021 21:50:52 +0000 [thread overview]
Message-ID: <605BB43C.5020201@youngman.org.uk> (raw)
In-Reply-To: <20210324144407.GL3712@bitfolk.com>
On 24/03/21 14:44, Andy Smith wrote:
> But, this being a RAID-1 you have at least two devices so wouldn't
> it be safer to:
>
> - Fail out one device
> - Zero that device
> - Create new filesystem on the removed device
> - Copy data onto it from the still-running array that is currently
> degraded
> - Use new filesystem for whatever you wanted
Better yet just get another drive and copy it across. You can always do
a "dd if=/dev/md0 of=/dev/sdc1" or whatever is appropriate. (And before
anyone asks, I'm planning to copy a filesystem that way, because it's
chokker with hard links. I *really* don't want to cp the contents ...)
BUT. If you really do want to break the mirror (as I might, just to see
what happens :-), then your best bet is to add a third disk, let it
sync, then fail it off and play with that disk.
As the others said, if you have a 0.9 or 1.0 superblock, your filesystem
starts in the same place as your partition, so if you delete the
superblock the partition becomes non-raid. But if your superblock is 1.1
or 1.2, then that won't work.
Cheers,
Wol
prev parent reply other threads:[~2021-03-24 21:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-24 11:04 MDRaid Rollback Shaun Glass
2021-03-24 14:34 ` Reindl Harald
2021-03-24 14:44 ` Andy Smith
2021-03-24 15:13 ` Roman Mamedov
2021-03-24 21:50 ` 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=605BB43C.5020201@youngman.org.uk \
--to=antlists@youngman.org.uk \
--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