From: Anand Jain <anand.jain@oracle.com>
To: dsterba@suse.cz, Nikolay Borisov <nborisov@suse.com>,
linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: drop unique uuid test for btrfstune -M
Date: Wed, 20 May 2020 18:44:43 +0800 [thread overview]
Message-ID: <c38ddbbb-8c30-60b7-7563-7f56ffb11623@oracle.com> (raw)
In-Reply-To: <3952c4bf-755a-5824-b57e-1c2ce1deda99@oracle.com>
David,
We let the fsid to change but restrict if the user decides to undo.
This bug is like a one-way trap.
Any resolution on the issue below?
Thanks, Anand
>> On 10/18/19 12:32 AM, David Sterba wrote:
>> I can't say I have a clear picture yet, can you please describe it in
>> some more desriptive way, like
>>
>> host1: create image1-uuid1
>>
>> host2: copy image1-uuid1 to image1-uuid2
>> host2: use image1-uuid2
>> host2: change image1-uuid2 back to uuid1 <-- I want this to work
> From the bug as I received.
> create btrfs root-image for the vm use.
> copy root-image to root-image1
> copy root-image to root-image2
> start vm1 using root-image1
> (when root-image1 has issues; shutdown vm1)
> start vm2 using root-image2 with root-image1 accessible.
> login to vm2
> (change fsid so that root-image1 can be mounted)
> btrsftune -m remote/root-image1
> mount -o loop remote/root-image1 /mnt
> analyze, collect logs, fix remote/root-image1
> umount /mnt
> (Revert the changed fsid so that vm2 can boot) <<<< Usecase wants
> this to work
> btrfstune -M $(btrfs in dump-super remote/root-image2 | \
> grep metadata_uuid | awk '{print $2}') \
> remote/root-image2
> logout from vm2
> start vm1 using root-image1
prev parent reply other threads:[~2020-05-20 10:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 0:50 [PATCH] btrfs-progs: drop unique uuid test for btrfstune -M Anand Jain
2019-09-06 7:21 ` Nikolay Borisov
2019-09-06 9:27 ` Anand Jain
2019-09-09 11:40 ` Nikolay Borisov
2019-09-10 5:12 ` Anand Jain
2019-09-11 17:01 ` David Sterba
2019-09-12 0:45 ` Anand Jain
2019-09-24 11:20 ` Anand Jain
2019-10-01 8:08 ` Anand Jain
2019-10-17 16:32 ` David Sterba
2019-10-18 8:52 ` Anand Jain
2020-05-20 10:44 ` Anand Jain [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=c38ddbbb-8c30-60b7-7563-7f56ffb11623@oracle.com \
--to=anand.jain@oracle.com \
--cc=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
--cc=nborisov@suse.com \
/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;
as well as URLs for NNTP newsgroup(s).