From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f175.google.com ([209.85.223.175]:34232 "EHLO mail-io0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752484AbbKJMTy (ORCPT ); Tue, 10 Nov 2015 07:19:54 -0500 Received: by iody8 with SMTP id y8so216968972iod.1 for ; Tue, 10 Nov 2015 04:19:53 -0800 (PST) Subject: Re: btrfs-progs send | receive error: no such file or directory To: Glen H References: <5640A497.2060701@gmail.com> Cc: linux-btrfs@vger.kernel.org From: Austin S Hemmelgarn Message-ID: <5641E0B4.1040504@gmail.com> Date: Tue, 10 Nov 2015 07:19:00 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms020800020508050705090209" Sender: linux-btrfs-owner@vger.kernel.org List-ID: This is a cryptographically signed message in MIME format. --------------ms020800020508050705090209 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-11-09 22:11, Glen H wrote: > On Mon, Nov 9, 2015 at 8:50 AM, Austin S Hemmelgarn > wrote: >> On 2015-11-08 16:28, Glen H wrote: >>> >>> Hi, >>> >>> I really enjoy the features of btrfs but send|receive is failing me s= o >>> my backups are not working. I'm using "btrbk" to backup my drives >>> (all local) and one of the three subvolumes errors out. When I run >>> this command from the terminal it errors out: >>> >>>> btrfs send /mnt/ssd/_btrbk_snap/@.20151108 | btrfs receive >>>> /mnt/backup2tb/ >>> >>> At subvol /mnt/ssd/_btrbk_snap/@.20151108 >>> At subvol @.20151108 >>> ERROR: send ioctl failed with -2: No such file or directory >>> ERROR: unexpected EOF in stream. >> >> Have you ever run any kind of data deduplication (bedup, duperemove, o= r >> something else) on the source filesystem? I've seen errors like this = in the >> past when trying to send from a filesystem that I had run deduplicatio= n on >> (and I don't think that the patches to fix it made into the version of= Mint >> you're using). >> >> That aside, there are two things that I've found that can fix some (bu= t not >> all) send/receive errors: >> 1. Run a balance on the filesystem (either a full balance, or use filt= ers to >> select just the block in question). >> 2. Force the file that it's choking on to be re-written (you can use '= btrfs >> receive -vv' to see what files it's processing, although be prepared f= or _a >> lot_ of output). > > Thanks Austin for the suggestions. I haven't done any deduping, it is > a pretty fresh install too (two weeks old). I tried a full balance a > few times: > > # btrfs balan / > Done, had to relocate 28 out of 28 chunks > # btrfs balan / > Done, had to relocate 28 out of 28 chunks > > After balancing the first time should there be less to rebalance the > second time? Not usually, unless you had a lot of chunks that were partially full. > > I tried receive -vv and then deleted the file that was causing the > issue but running again the issue happens on a different file: > > ... > utimes var/lib/sudo/hertz > truncate var/lib/sudo/hertz/2 size=3D40 > chown var/lib/sudo/hertz/2 - uid=3D0, gid=3D1000 > chmod var/lib/sudo/hertz/2 - mode=3D0600 > utimes var/lib/sudo/hertz/2 > mkfile o189735-35-0 > truncate o189735-35-0 size=3D0 > chown o189735-35-0 - uid=3D1000, gid=3D1000 > chmod o189735-35-0 - mode=3D0600 > ERROR: unexpected EOF in stream. When I see this type of error on my system, it's usually with multiple=20 files, and deleting/rewriting each one sequentially does eventually fix i= t. > > I'm not using any kind of raid. Do you think reformatting the > partition or something else might help? Should I try to upgrade the > kernel? Reformatting would definitely fix it, although that of course means you=20 have to restore from a backup or re-install the system. Upgrading the=20 kernel probably won't fix the issue (in this case it appears to be=20 something in the on-disk structures), but it should make it less likely=20 to happen again. --------------ms020800020508050705090209 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC Brgwgga0MIIEnKADAgECAgMRLfgwDQYJKoZIhvcNAQENBQAweTEQMA4GA1UEChMHUm9vdCBD QTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNp Z25pbmcgQ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