From nobody Tue Jun 21 17:55:24 2022 X-Original-To: fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5C90F8619F6 for ; Tue, 21 Jun 2022 17:55:24 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LSDgw0WHWz3qwt for ; Tue, 21 Jun 2022 17:55:24 +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 E22D116888 for ; Tue, 21 Jun 2022 17:55:23 +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 25LHtNC3008718 for ; Tue, 21 Jun 2022 17:55:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25LHtNaN008717 for fs@FreeBSD.org; Tue, 21 Jun 2022 17:55:23 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: fs@FreeBSD.org Subject: [Bug 229829] [zfs] scrubbing prevents shutdown and slows down startup Date: Tue, 21 Jun 2022 17:55:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655834124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WPfYeBt4Q8CXo/ggXUtLeXf2JPlCG0XI7qjaoEmqkho=; b=kIkV2/PlL7AjcCsfk08v3jjV30UeQxoDIlK+8sIPpz5mJJC3mtQ6hEKkO0+63gjFvBUFGx Q6LcRhMf4cgaDTldZKCjVeOF5vilizwDp1d2IzW4f7ZaquxyK/TwH7jWahG49CHEWwRQmg Ni5SKvdbitPKakZ/MmqxDVQr2XhnTyZdG8SAuB+D3zZ+tpkKhyhLDysVorfigMj9CAcu15 XfJVoFTj5udeGmRHw4a2UXzP5rgxZAbalIuZ1/6R3vO8L9nuXKiiFNrsenAabEyT/uSX6x k2kuDEChCPoGHFiggC2pwuR1++N+pryNKfc62fRdDuiHkOzvi3gqDEr+M39Tlw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655834124; a=rsa-sha256; cv=none; b=cTJSDxIT3rOVGPt+oMTcHbrg6siBwL13a5bvcjPPruE5QwIbWwEDUpau3r3jg30bX5i724 iB4z5Hl+taooHRNpI4SMbRaxNzEkF2HXWQJizuM+5HuHqo+eA3W9eur7p870RAwbpbO0/c w6u1JmTFlfbVe6hrPv1k5tHRGfC8wEQ8eD+83FVnPuvV4//WenP8c6LC/zsbjl/jM+kp1J 6pO1SF0bizizYwvGJYcUx69tgNSjcf9nxrpZokFe2M5i7MTSo4qinLPc74UWVpW7zpEMFI 0WRK9YtTxuy87E0a6XYJ8ef8V15rXLaAL1ao4OakNneFO5rY1Q4WQs6dnn9GAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229829 --- Comment #5 from Martin Birgmeier --- Just my 2 cents: For the issue described in this PR it would be necessary to suspend an ongoing scrub before shutdown and resume it after restart - assu= ming the system does both (especially the shutdown) cleanly. Most likely something like a "reverse" rc.d would be neeeded, where the shutdown procedure checks which zpools are currently being scrubbed, saves = this info, and then suspends the scrubs; conversely, the startup would need to c= heck which scrubs were suspended and resume them. To not need a separate file for saving the info about which zpools were in = the process of being scrubbed across the shutdown/reboot it would be nice to be able to do some query directly on the pool to obtain this information. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=