From nobody Mon Nov 06 20:19:52 2023 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 4SPN4S4t9pz50075 for ; Mon, 6 Nov 2023 20:19:52 +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 4SPN4S3rfyz3QZd for ; Mon, 6 Nov 2023 20:19:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699301992; 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=1KyxfBKijTShxM4b5KbIugkBDNPsu4Y40j+qMoPP3LI=; b=MxK0sWZqQHo3VGm4Bhk+XAte2K3fMNphWZCtIxV6Im4vHOcQFul+KB8zp8R8kgchZVIiJ4 MUfLP700A4OuHvyzgT6zDtcxmxujo+UCNn0xu7U3kU+LxKrDLkzuLNrjzrcD95hNBQWlHX MjarnGXf1mUxSQtJTW9pINkT5ialNh5GAcldSTEFCwab9aGOMdOkKGCpFfJsfW+Ihr6zDu LJjiCMXeWwQKEoq7+hsz0cBcbsuPfruRZklhnS8OL0LAbm58e6pp5i3Mbip5mmuKiZJPdb oBxcmju721qeagQqRgrfIBU0TAoomRYO2Oxo2fI9e1eQw3xE2U7w6ViFRlKMdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699301992; a=rsa-sha256; cv=none; b=tUIaizIEROFAz0p7TjtSqkYGBqkd5H8Gg9OBeRjQxHb1wsjVb5TAyc6AZlTNFUTndF3U0A vsv9vRtDlojSOrygZGDv1kA/R8mEimiJS/PbzWL/BN1LKOY3FdtPScgq9+q+5oSdeqf1DV 3W/9pyYkmCLOuphDuHFaGzTKLHQ8uNwLWMvn71Q9OVxMBFRLx2TIVfjp9kyNXMX6rgoIzh Ef/lnhoiyCSzUDL5H62d36VZDQ+gjspcSBjjZY+3BIkgtfO1eAWWEUJyJoTWsKK5BEti9A WfZArgkn4M7hLn6v4DFVo/zQhw2lnt/z64oXkx2aTXxgtvdCfZ/b5ClbKY9rjQ== 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 4SPN4S2xB7z6RS for ; Mon, 6 Nov 2023 20:19:52 +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 3A6KJqPm001655 for ; Mon, 6 Nov 2023 20:19:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A6KJqAi001654 for fs@FreeBSD.org; Mon, 6 Nov 2023 20:19:52 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: Mon, 06 Nov 2023 20:19:52 +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: fbsd@opal.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229829 J.R. Oldroyd changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fbsd@opal.com --- Comment #7 from J.R. Oldroyd --- This issue appears to be happening to me on 13.2-RELEASE-p1. For me, I do suspend/resumes regularly. Mostly with no problems, but occasionally the suspend blocks at the point where you'd expect the power o= ff and it requires a hard power off shutdown. (Or possibly it requires you to = wait for the scrub to complete - obviously not practical when you're suspending a laptop.) I am experimenting with these additions in rc.suspend and rc.resume: rc.suspend: # pause any zpool scrub in progress zpool status | while read KEY VALUE; do case "$KEY" in pool:) POOL=3D$VALUE ;; scan:) case "$VALUE" in "scrub in progress since "*) echo "$POOL" >>/var/db/zpool.scrub.resume zpool scrub -p $POOL ;; esac esac done rc.resume: # resume any scrub that was in progress on suspend if [ -f /var/db/zpool.scrub.resume ]; then cat /var/db/zpool.scrub.resume | while read POOL; do zpool scrub $POOL done rm /var/db/zpool.scrub.resume fi Something similar may also be needed in rc.shutdown with a suitable rc.d/zpool_scrub_resume script for the shutdown/reboot sequence. --=20 You are receiving this mail because: You are the assignee for the bug.=