* btrfs receive fails @ 2016-01-23 19:44 Stephan Olbrich 2016-01-23 20:50 ` Chris Murphy 0 siblings, 1 reply; 4+ messages in thread From: Stephan Olbrich @ 2016-01-23 19:44 UTC (permalink / raw) To: linux-btrfs Hi, I have three btrfs volumes. I do daily snapshots and transfer them to another drive. This works fine for two of the volumes, for the 3. one the send works fine but the receive sometimes fails with the following output: ERROR: unlink o128782-4421-0 failed. No such file or directory The o128782-4421-0 is different each time but it is always "o" and then some numbers. My current workaround is to do the send with another parent (-p) The problematic volume is my data partition and usually not much happening there besides the owncloud-client writing some status files (sqlite database). # uname -a Linux chaos-desktop 4.2.1-040201-generic #201509211431 SMP Mon Sep 21 18:34:44 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux # btrfs --version btrfs-progs v4.0 Regards, Stephan ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: btrfs receive fails 2016-01-23 19:44 btrfs receive fails Stephan Olbrich @ 2016-01-23 20:50 ` Chris Murphy 2016-01-25 12:18 ` Austin S. Hemmelgarn 0 siblings, 1 reply; 4+ messages in thread From: Chris Murphy @ 2016-01-23 20:50 UTC (permalink / raw) To: Stephan Olbrich; +Cc: Btrfs BTRFS On Sat, Jan 23, 2016 at 12:44 PM, Stephan Olbrich <stephan@albapasser.de> wrote: > Hi, > > I have three btrfs volumes. I do daily snapshots and transfer them to another > drive. This works fine for two of the volumes, for the 3. one the send works > fine but the receive sometimes fails with the following output: > > ERROR: unlink o128782-4421-0 failed. No such file or directory > > The o128782-4421-0 is different each time but it is always "o" and then some > numbers. > My current workaround is to do the send with another parent (-p) > > The problematic volume is my data partition and usually not much happening > there besides the owncloud-client writing some status files (sqlite database). > > # uname -a > Linux chaos-desktop 4.2.1-040201-generic #201509211431 SMP Mon Sep 21 18:34:44 > UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > > # btrfs --version > btrfs-progs v4.0 I suggest first seeing if the problem is reproducible with btrfs-progs 4.3.1 or 4.4, since there have been receive bug fixes since v4.0 (which is now kinda old) and most of the receive code is in the user space tools as I understand it. If that doesn't fix it, then I'd try two more things in parallel, one is -vvv on both the send and receive commands to see if that can help determine if the problem is on the send or receive side. Maybe someone will recognize the problem. And then also update the kernel to 4.4.0, 4.3.3, or 4.2.8 (in order of preference) because almost inevitably you're going to be asked to upgrade the kernel version to see if it's reproducible there. -- Chris Murphy ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: btrfs receive fails 2016-01-23 20:50 ` Chris Murphy @ 2016-01-25 12:18 ` Austin S. Hemmelgarn 2016-01-25 19:07 ` Stephan Olbrich 0 siblings, 1 reply; 4+ messages in thread From: Austin S. Hemmelgarn @ 2016-01-25 12:18 UTC (permalink / raw) To: Chris Murphy, Stephan Olbrich; +Cc: Btrfs BTRFS On 2016-01-23 15:50, Chris Murphy wrote: > On Sat, Jan 23, 2016 at 12:44 PM, Stephan Olbrich <stephan@albapasser.de> wrote: >> Hi, >> >> I have three btrfs volumes. I do daily snapshots and transfer them to another >> drive. This works fine for two of the volumes, for the 3. one the send works >> fine but the receive sometimes fails with the following output: >> >> ERROR: unlink o128782-4421-0 failed. No such file or directory >> >> The o128782-4421-0 is different each time but it is always "o" and then some >> numbers. >> My current workaround is to do the send with another parent (-p) >> >> The problematic volume is my data partition and usually not much happening >> there besides the owncloud-client writing some status files (sqlite database). >> >> # uname -a >> Linux chaos-desktop 4.2.1-040201-generic #201509211431 SMP Mon Sep 21 18:34:44 >> UTC 2015 x86_64 x86_64 x86_64 GNU/Linux >> >> # btrfs --version >> btrfs-progs v4.0 > > > I suggest first seeing if the problem is reproducible with btrfs-progs > 4.3.1 or 4.4, since there have been receive bug fixes since v4.0 > (which is now kinda old) and most of the receive code is in the user > space tools as I understand it. If that doesn't fix it, then I'd try > two more things in parallel, one is -vvv on both the send and receive > commands to see if that can help determine if the problem is on the > send or receive side. Maybe someone will recognize the problem. And > then also update the kernel to 4.4.0, 4.3.3, or 4.2.8 (in order of > preference) because almost inevitably you're going to be asked to > upgrade the kernel version to see if it's reproducible there. > > Building further on that, there are some times that something in the metadata for a file can cause send/receive to fail. Using -vv on the receive side should give you enough info to narrow down which file if this is indeed the case, at which point you can fix the file by either copying it to another filesystem and back again, or reinstalling whichever package it belongs to. It's worth noting that if something like this is happening, it's probably multiple files with this issue, not just one, so it may take multiple tries to get things working again. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: btrfs receive fails 2016-01-25 12:18 ` Austin S. Hemmelgarn @ 2016-01-25 19:07 ` Stephan Olbrich 0 siblings, 0 replies; 4+ messages in thread From: Stephan Olbrich @ 2016-01-25 19:07 UTC (permalink / raw) To: Austin S. Hemmelgarn; +Cc: Chris Murphy, Btrfs BTRFS Am Monday 25 January 2016, 07:18:22 schrieb Austin S. Hemmelgarn: > On 2016-01-23 15:50, Chris Murphy wrote: > > On Sat, Jan 23, 2016 at 12:44 PM, Stephan Olbrich <stephan@albapasser.de> wrote: > >> Hi, > >> > >> I have three btrfs volumes. I do daily snapshots and transfer them to > >> another drive. This works fine for two of the volumes, for the 3. one > >> the send works fine but the receive sometimes fails with the following > >> output: > >> > >> ERROR: unlink o128782-4421-0 failed. No such file or directory > >> > >> The o128782-4421-0 is different each time but it is always "o" and then > >> some numbers. > >> My current workaround is to do the send with another parent (-p) > >> > >> The problematic volume is my data partition and usually not much > >> happening > >> there besides the owncloud-client writing some status files (sqlite > >> database). > >> > >> # uname -a > >> Linux chaos-desktop 4.2.1-040201-generic #201509211431 SMP Mon Sep 21 > >> 18:34:44 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > >> > >> # btrfs --version > >> btrfs-progs v4.0 > > > > I suggest first seeing if the problem is reproducible with btrfs-progs > > 4.3.1 or 4.4, since there have been receive bug fixes since v4.0 > > (which is now kinda old) and most of the receive code is in the user > > space tools as I understand it. If that doesn't fix it, then I'd try > > two more things in parallel, one is -vvv on both the send and receive > > commands to see if that can help determine if the problem is on the > > send or receive side. Maybe someone will recognize the problem. And > > then also update the kernel to 4.4.0, 4.3.3, or 4.2.8 (in order of > > preference) because almost inevitably you're going to be asked to > > upgrade the kernel version to see if it's reproducible there. > > Building further on that, there are some times that something in the > metadata for a file can cause send/receive to fail. Using -vv on the > receive side should give you enough info to narrow down which file if > this is indeed the case, at which point you can fix the file by either > copying it to another filesystem and back again, or reinstalling > whichever package it belongs to. It's worth noting that if something > like this is happening, it's probably multiple files with this issue, > not just one, so it may take multiple tries to get things working again. Thanks a lot for your tipps. # uname -a Linux chaos-desktop 4.4.0-040400-generic #201601101930 SMP Mon Jan 11 00:32:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux # btrfs --version btrfs-progs v4.4 Now the problem seems to be gone. If it shows up again, I'll report back. For the record: Using -vv did not give much information, just a lot of plausible changes and right before the error "unlink o128782-4421-0" o128782-4421-0 did not show up before that, so I don't know where it came from. Also with the new kernel and btrfs-progs o128782-4421-0 didn't show up in the output, so I guess the send part changed something here. Regards, Stephan ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-25 19:09 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-01-23 19:44 btrfs receive fails Stephan Olbrich 2016-01-23 20:50 ` Chris Murphy 2016-01-25 12:18 ` Austin S. Hemmelgarn 2016-01-25 19:07 ` Stephan Olbrich
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).