linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Filipe Manana <fdmanana@gmail.com>
To: Darrell Enns <darrell@darrellenns.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Backup failing with "failed to clone extents" error
Date: Mon, 30 Aug 2021 11:51:51 +0100	[thread overview]
Message-ID: <CAL3q7H67Nc7vZrCpxAhoWxHObhFn=mgOra+tFt3MjqMSXVFXfQ@mail.gmail.com> (raw)
In-Reply-To: <CAOaVUnUwoq69UZ_ajoxYYOHk8RRgGPNZrcm9YzcmXfDgy24Nfw@mail.gmail.com>

On Fri, Aug 27, 2021 at 10:05 PM Darrell Enns <darrell@darrellenns.com> wrote:
>
> Inode number of places.sqlite is 400698. It's the same in both
> snapshots, as well as the current active subvolume.
>
> From 2nd snapshot (id 977):
>   Size: 83886080      Blocks: 163840     IO Block: 4096   regular file
> Device: 5fh/95d    Inode: 400698      Links: 1
> Access: (0640/-rw-r-----)  Uid: ( 1000/   denns)   Gid: ( 1000/   denns)
> Access: 2021-08-27 09:59:01.619570401 -0700
> Modify: 2021-08-27 10:06:43.952629419 -0700
> Change: 2021-08-27 10:06:43.952629419 -0700
>  Birth: 2021-08-07 20:16:37.080012116 -0700

Thanks.
A quick first look shows me that the cause is not what I initially
suspected - the clone operation that fails is not from the inode at
the send snapshot to the same inode at the send snapshot (cloning from
itself), but instead from the parent snapshot to the send snapshot.
The clone offset and length seem valid at first glance, as clone range
is within the eof of the inode in the parent snapshot and it's
properly aligned. So I'll have to recreate the same extent layout and
see if it fails, which will take a while.

Can you please keep those snapshots (IDs 977 and 881) for a few days,
in case of the need to get more debug information or to try a patch?

Also, I forgot to ask before, but you are not passing any clone roots
to "btrfs send" (-c command line argument), right?

Thanks, I'll get back to you later.


-- 
Filipe David Manana,

“Whether you think you can, or you think you can't — you're right.”

  reply	other threads:[~2021-08-30 10:52 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 [this message]
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
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='CAL3q7H67Nc7vZrCpxAhoWxHObhFn=mgOra+tFt3MjqMSXVFXfQ@mail.gmail.com' \
    --to=fdmanana@gmail.com \
    --cc=darrell@darrellenns.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).