From: Roman Mamedov <rm@romanrm.net>
To: Andy Smith <andy@strugglers.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: MDRaid Rollback
Date: Wed, 24 Mar 2021 20:13:47 +0500 [thread overview]
Message-ID: <20210324201347.33ef3184@natsu> (raw)
In-Reply-To: <20210324144407.GL3712@bitfolk.com>
On Wed, 24 Mar 2021 14:44:07 +0000
Andy Smith <andy@strugglers.net> wrote:
> The default metadata version (1.2) is placed at the start of an
> array, so even if zeroed this will prevent the array member being
> used as the filesystem that is on top of it.
> ...
> Finally, if you are on superblock versions 1.1 or 1.2 you may be
> able to work out the offset into the device and use a loop device to
> skip that, so treating it as a normal filesystem:
>
> https://raid.wiki.kernel.org/index.php/RAID_superblock_formats#The_version-1_Superblock_Format
Also could delete the partition and recreate it with the new starting offset,
matching the offset for actual data. Recently I've migrated a couple of disks
off LVM in this manner.
Or if the entire disk was used as an array member, then create a brand new
partition table on it, with a single partition of the required offset.
sfdisk is helpful for dumping partitions into a text file ("-d"), which can
then be edited and restored to the device with "sfdisk /dev/disk < file".
All of this is likely more complex if you have to use GPT.
--
With respect,
Roman
next prev parent reply other threads:[~2021-03-24 15:14 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 [this message]
2021-03-24 21:50 ` 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=20210324201347.33ef3184@natsu \
--to=rm@romanrm.net \
--cc=andy@strugglers.net \
--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.