linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Darrell Enns <darrell@darrellenns.com>
Cc: fdmanana@gmail.com, linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Backup failing with "failed to clone extents" error
Date: Wed, 1 Sep 2021 21:16:52 +0300	[thread overview]
Message-ID: <06e92a0b-e71b-eb21-edb5-9d2a5513b718@gmail.com> (raw)
In-Reply-To: <CAOaVUnUTA8Anepp3dhnzXXEGjgeeM=VwTERZvWMH6ptrNHZOjg@mail.gmail.com>

On 01.09.2021 20:52, Darrell Enns wrote:
>> Most likely. Did you simply make received subvolume read-write?
> 
> I believe so.

Well, here you are. There was proposed patch to clear received_uuid on
clearing read-only subvolume property, but it has never been applied.

> Is there a different way of doing it that would have
> avoided this situation? 

Yes. You should have created clone (read-write snapshot) of received
sibvolume and use it as your root. Received_uuid is automatically
cleared in writable snapshot.


> On a new subvol, would the received uuid
> normally be blank? 

Yes.

> Any suggestions on how to "fix" mine?
> 

I am not sure if it is even possible to clear received_uuid from user
space - the only available IOCTL is for setting it (there are extra
mandatory parameters and I do not know how to set them in this case).
You may try ./examples/set_received_uuid.py from
git://github.com/knorrie/python-btrfs while setting stransid and stime
to zero.

What will surely work is cloning you root subvolume and switching to
clone. If course you will need to restart all replication streams
beginning with full send of new root. But as it looks like you will need
to restart it anyway.

  reply	other threads:[~2021-09-01 18:16 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-25 23:22 Backup failing with "failed to clone extents" error Darrell Enns
2021-08-26  9:48 ` Filipe Manana
2021-08-26 18:30   ` Darrell Enns
2021-08-27 11:35     ` Filipe Manana
2021-08-27 18:01       ` Darrell Enns
2021-08-27 19:31         ` Filipe Manana
2021-08-27 21:04           ` Darrell Enns
2021-08-30 10:51             ` Filipe Manana
2021-08-30 16:38               ` Filipe Manana
2021-08-30 17:37                 ` Darrell Enns
2021-08-30 18:34                   ` Filipe Manana
2021-08-30 19:08                     ` Darrell Enns
2021-08-30 19:52                       ` Filipe Manana
2021-08-30 20:08                         ` Darrell Enns
2021-08-30 20:11                           ` Darrell Enns
2021-08-30 20:58                           ` Filipe Manana
2021-08-31  2:46                             ` Darrell Enns
2021-08-31 11:20                               ` Filipe Manana
2021-08-31 11:21                                 ` Filipe Manana
2021-08-31 16:48                                   ` Darrell Enns
2021-09-01 14:50                                     ` Filipe Manana
2021-09-01 15:34                                       ` Andrei Borzenkov
2021-09-01 15:37                                         ` Filipe Manana
2021-09-01 17:16                                       ` Darrell Enns
2021-09-01 17:40                                         ` Andrei Borzenkov
2021-09-01 17:52                                           ` Darrell Enns
2021-09-01 18:16                                             ` Andrei Borzenkov [this message]
2021-09-01 18:28                                               ` Darrell Enns
  -- strict thread matches above, loose matches on Subject: below --
2020-04-16  0:31 Matt Huszagh
2020-04-16 11:53 ` Filipe Manana

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=06e92a0b-e71b-eb21-edb5-9d2a5513b718@gmail.com \
    --to=arvidjaar@gmail.com \
    --cc=darrell@darrellenns.com \
    --cc=fdmanana@gmail.com \
    --cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).