From owner-freebsd-bugs@freebsd.org Tue Aug 11 16:36:39 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 95C043B20FE for ; Tue, 11 Aug 2020 16:36:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BQz4R3VRbz3Td1 for ; Tue, 11 Aug 2020 16:36:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 77FD03B2060; Tue, 11 Aug 2020 16:36:39 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 77BCE3B205F for ; Tue, 11 Aug 2020 16:36:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BQz4R2bv9z3Tc2 for ; Tue, 11 Aug 2020 16:36:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3CC761DBE4 for ; Tue, 11 Aug 2020 16:36:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07BGadlR021225 for ; Tue, 11 Aug 2020 16:36:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07BGadkT021224 for bugs@FreeBSD.org; Tue, 11 Aug 2020 16:36:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 248606] zfs receive: Input/output error accessing dataset after resuming interrupted receive Date: Tue, 11 Aug 2020 16:36:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2020 16:36:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248606 Bug ID: 248606 Summary: zfs receive: Input/output error accessing dataset after resuming interrupted receive Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org If "zfs send" gets interrupted the destination dataset will be left in a mounted, accessible state. However, after resuming the transfer (with zfs = send -t) the destination dataset will be left in a mounted by inaccessible state, returning EIO for all accesses. Unmounting and remounting it suffices to f= ix the problem. Steps to reproduce: $ cd / $ sudo zpool create testpool vtbd1 $ sudo zfs create testpool/src $ sudo zfs create testpool/dst $ sudo dd if=3D/dev/zero bs=3D1m count=3D2048 of=3D/testpool/src/zerofile 2048+0 records in 2048+0 records out 2147483648 bytes transferred in 8.584807 secs (250149331 bytes/sec) $ sudo zfs snapshot testpool/src@1 $ sudo zfs send -v testpool/src@1 | sudo zfs recv -Fsv testpool/dst full send of testpool/src@1 estimated size is 2.00G total estimated size is 2.00G full send of testpool/src@1 estimated size is 2.00G TIME SENT SNAPSHOT receiving full stream of testpool/src@1 into testpool/dst@1 10:31:19 83.3M testpool/src@1 10:31:20 479M testpool/src@1 10:31:21 479M testpool/src@1 cannot receive new filesystem stream: checksum mismatch or incomplete strea= m. Partially received snapshot is saved. A resuming stream can be generated on the sending system by running: zfs send -t 1-bfb9f6182-b8-789c636064000310a500c4ec50360710e72765a52697303030419460caa7= a515a7968064441461f26c48f2499525a9c540fa82b9962236fd25f9e9a599290c0cd71e84f= 16f0ff8705d03499e132c9f97989b0aa4538b4b0af2f373f48b8b921d0c216e010068421904 fish: Process 37889, 'sudo' 'sudo zfs send -v testpool/src@1=E2=80=A6' term= inated by signal SIGTERM (Polite quit request) # (In another terminal) $ sudo pkill -f "zfs send -v testpool/src@1" # (Back in the original terminal) $ ls -a testpool/dst ./ ../ $ zfs get mounted testpool/dst NAME PROPERTY VALUE SOURCE testpool/dst mounted yes $ sudo zfs send -t 1-bfb9f6182b8-789c636064000310a500c4ec50360710e72765a52697303030419460caa7a= 515a7968064441461f26c48f2499525a9c540fa82b9962236fd25f9e9a599290c0cd71e84f1= 6f0ff8705d03499e132c9f97989b0aa4538b4b0af2f373f48b8b921d0c216e010068421904 | sudo zfs recv -Fsv testpool/dst $ ls -a testpool/dst ls: testpool/dst: Input/output error $ zfs get mounted testpool/dst NAME PROPERTY VALUE SOURCE testpool/dst mounted yes - $ sudo zfs unmount testpool/dst && sudo zfs mount testpool/dst $ ls -a testpool/dst ./ ../ zerofile --=20 You are receiving this mail because: You are the assignee for the bug.=