From owner-freebsd-bugs@freebsd.org Tue Jul 17 13:17:56 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C75BD103F972 for ; Tue, 17 Jul 2018 13:17:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5E17989454 for ; Tue, 17 Jul 2018 13:17:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 17746103F966; Tue, 17 Jul 2018 13:17:56 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E924A103F965 for ; Tue, 17 Jul 2018 13:17:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 787EE89452 for ; Tue, 17 Jul 2018 13:17:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CCB381EE86 for ; Tue, 17 Jul 2018 13:17:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w6HDHsC3049124 for ; Tue, 17 Jul 2018 13:17:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6HDHsQT049123 for bugs@FreeBSD.org; Tue, 17 Jul 2018 13:17:54 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 229829] [zfs] scrubbing prevents shutdown and slows down startup Date: Tue, 17 Jul 2018 13:17:54 +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: 11.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at 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.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jul 2018 13:17:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229829 Bug ID: 229829 Summary: [zfs] scrubbing prevents shutdown and slows down startup Product: Base System Version: 11.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: d8zNeCFG@aon.at Scenario 1: - FreeBSD 11.2 - UFS root fs - 6 x 1.5 TB SATA disks in RAIDZ2 pool - The pool is being scrubbed - Issue "shutdown -p now" Actual result 1: - The system shuts down, shows that UFS fs has been synced - The system continues scrubbing (in what appears to be right after all "us= ual" kernel log messages) and does not power off Expected result 1: - The system stops scrubbing and powers off Scenario 2: - Continued from scenario 1 - Press hard reset button - The system starts booting into multi-user Actual result 2: - As soon as the pool is imported, scrubbing continues - As a result, system startup is extremely slow, the UFS fs check does not finish in a reasonable time Expected result 2: - Scrubbing should not continue right with pool import - System startup should be normal speed Scenario 3: - Continued from scenario 2 - Press hard reset button - Boot system single user - Run "fsck -p" in an effort to fix the UFS fs first; is successful - Run "zpool list status" Actual result 3: - The system starts scrubbing the pool immediately - As a result, "zpool list status" does not finish for a long time (actual duration can be given later) Expected result 3: - Scrubbing should not continue right with the pool import - zpool import and zpool list status should continue with normal speed In summary, I believe that the solution is that before shutdown, all scrubb= ing activities should be paused. Similarly, on boot any pool marked for scrubbi= ng should be treated as if scrubbing were paused on it. --=20 You are receiving this mail because: You are the assignee for the bug.=