From nobody Sat May 13 02:53:47 2023 X-Original-To: bugs@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 4QJ9F74Dtnz4Bmlh for ; Sat, 13 May 2023 02:53:47 +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 4QJ9F721tVz4Ch4 for ; Sat, 13 May 2023 02:53:47 +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=1683946427; 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; bh=GmLpJOGL/gcOGLWcNVxa06p6FqWfEbDplLLFy07B318=; b=uO0qpUNrhhxNF/QxzfAtISXvHCSNL3TOkA7X11BrzoOhfhmWH49AUQEVBaHECUW77MZV2N P9muH5GXGtT1WkQJ7Db9uI3NbQMZeczHzUMnqRNO+Xj6kKRO+eTftq99jqi2Sw72LMER7Q bojqxLAdWrS8R/inMgpTDS0rNZUFO25HEVKaBdzGgLhkz45i+m+BW/eJpyOAH23S1cUEyJ ejZdG5DNMVow1CExpSm6MMD+1gQKkXdYHP03MuquTzMhEBP8FVrXOKzYDNvwPpePwFidRi OnCLdK9/nOBviWTxnjhgrdmC/roDje/djsKzBX5CL4mvgCeQ/ggbfPEi2mBIig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683946427; a=rsa-sha256; cv=none; b=mxBNM0XzD5j/ysvxjlPtlRKLnJNjeh08yCfkpF0hnAbjxTMvtAjCvSwf7AZQPWznuEzC7i +l8mrcfkOWBaMdlxCO1+OPdit+mCCVfME8jis5eusRnIPHjZRipVT4e4ES9CDRGwf4xleS P9CvwjEawHKI7/E0RBm55nw3NYoBsc232KGliXDAMEtvZZvEtlfeIwuc8FYYendRuNrfLl AqzrO+eoq833B3yIcMYuj2cklILO20df2OVOwsodVgbGXOfKCvdUBbGtJ22Nj24A21MS1u SlrYx7dBVgywi1seWqpUBvTm8Y2UbqzEVBnD77IdKAOWjHGnZtp2Y345fFgbxg== 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 4QJ9F716S9z10fD for ; Sat, 13 May 2023 02:53:47 +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 34D2rlqQ069352 for ; Sat, 13 May 2023 02:53:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34D2rlpT069351 for bugs@FreeBSD.org; Sat, 13 May 2023 02:53:47 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 271384] zpool not imported if zfs isn't enabled in loader.conf Date: Sat, 13 May 2023 02:53:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: phryk-ports@wzff.de 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271384 Bug ID: 271384 Summary: zpool not imported if zfs isn't enabled in loader.conf Product: Base System Version: 13.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: phryk-ports@wzff.de Without `zfs_load=3D"YES"` and `zpool_cache_*` (presumably both, but haven't tested in isolation) in `loader.conf`, zpools don't get imported during init =E2=80=93 even if `/etc/rc.conf` contains `zfs_enable=3D"YES"`. This means that on setups with zfs-independent boot, at least automatic mounting doesn't work =E2=80=93 but probably also that mounting zfs datasets via fstab becomes impossible. There is an `/etc/rc.d/zpool` that does the import, but it only seems to be invoked by `/etc/rc.d/zfskeys` which seems to be for a completely different use-case. I fixed this on my system by adding this to `/etc/rc.d/zfs`: ``` start_precmd=3D"zfs_prestart" zfs_prestart(){ if checkyesno zpool_enable; then /etc/rc.d/zpool start fi } ``` And then `zpool_enable=3D"YES"` to my rc.conf. There might be a more elegant way of checking whether the `zpool start` should be invoked than introducing a new variable to `rc.conf` and there probably should also be a poststop command to do `zpool stop` but I'm migrating away from zfs, it's already over 10 hours after I wanted to be done with the initial migration and I'm definitely not pouring more time into this =E2=80=93 just wanted to hand this over on my way out the door. --=20 You are receiving this mail because: You are the assignee for the bug.=