From nobody Mon Sep 15 20:44:51 2025 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 4cQcTv5pPxz6821b for ; Mon, 15 Sep 2025 20:44:51 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cQcTv5Blbz3GHl for ; Mon, 15 Sep 2025 20:44:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757969091; 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=6gkzDkZuAVYaxfFfy9uyoKn/2THpTRyjvQQVm+egzfM=; b=ZdasV039p8mSA2x9QCRovZyA9rhW8hNOYj/08a6dzE/rrxUsz6cmTrVSIwXV+aGAu444Uj Xj9kZi62XMgZ0TRegO+ZlrB1RLWbKmuDdrZ5xmQ9RbhmanG3vHXl0rqmAZCMmn0eXZfx0G DGm2P8P28EOS1owzTTR92Ln7crhZteDRBVByOBiK9w1YHCBnGUslcSIei6jOQKq58/ansg cOJD9Pt34YGIoJ0QUEIFCQ+arpSXFkhOQwGxZC4j7asoqGWZhW+Ynk6eNrzUvaE+/tiEue SkkrzDFaajO6PIceaSf7oYguIVJTJjMZd6DrhVa59npk7KC6tG1V3ZqpvS0mVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757969091; 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=6gkzDkZuAVYaxfFfy9uyoKn/2THpTRyjvQQVm+egzfM=; b=pxpJvyDBAGUQ8i8QwJjuH+rBK8aS+KCFr6HdysRI7G4XUSC7Pixrc3iLgej8+zKdn2Maf6 PouyQn0/64QVXi8GFFdrqo+QfXSEo/4p7zoSDlDY4QrXjtSh3RiuBr9hzWjJTA1RYUsJkI 154WGQiz+UyOg/51TMv9vShy7Pfzy4sc6fCfSKqv0yyBhs2KlmRXFx5+/yHHkslTP9+eCz zAv/6wBiCHbVadlwmpDiXaP7WATTq95qRDxmOYEulvb6VVIHn5ih73HP8QEERmL1gYCjz0 PL654UlI7DFxKi4hp7MBgqTv6qaMWMcMlqtKzoz+FN10kdX25dEC4tPnwuibRA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757969091; a=rsa-sha256; cv=none; b=Z1r3Rpkx75J2sDHm6rF5aAybk7mWqGBCXLRhiyeyJV2dNqQaTNqUM2XgVx5NLBwYaF7JVO Z0SltWXVc5dRMUtBjL2DV6Fo4htgegSa55r0tnKsDNINhlvNI2id3j7OmRiSvk2W1E+AGe TpW0VGKmRmtaj2V3lBYtfOzoYbnZRVu7JDeFxGL1YIgtctioMHriPfr53Cv99DHNxTN+ti gF9eBIljNHqPDPDAt5qKFLcWRY4ayHL2NHqHG+6sPDgcG8UT6KbW8l4o88SRPAnXsoX62P UXwWO4M3Ott/jL6JN4TSDyFuBSlsuy/Fr3MIpHg8Du1YxrpDyqT/nn97KqpV2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cQcTv4Ddfz190y for ; Mon, 15 Sep 2025 20:44:51 +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 58FKip0l077433 for ; Mon, 15 Sep 2025 20:44:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58FKipAk077432 for bugs@FreeBSD.org; Mon, 15 Sep 2025 20:44:51 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 289632] zpool import fails on multi-user boot Date: Mon, 15 Sep 2025 20:44:51 +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: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: porterclark314@gmail.com 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289632 Bug ID: 289632 Summary: zpool import fails on multi-user boot Product: Base System Version: 14.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: porterclark314@gmail.com In /etc/rc.d/zpool, zpool import is called as follows: zpool_start() { local cachefile for cachefile in /etc/zfs/zpool.cache /boot/zfs/zpool.cache; do if [ -r $cachefile ]; then zpool import -c $cachefile -a -N if [ $? -ne 0 ]; then echo "Import of zpool cache ${cachefile} failed, " \ "will retry after root mount hold relea= se" root_hold_wait zpool import -c $cachefile -a -N fi break fi done } If devices called out in zpool.cache are not available during the first zpo= ol import above, zpool will emit an error message but will return an exit stat= us of 0 anyway. Therefore, root_hold_wait (from /etc/rc.subr) will not be cal= led, and the "second chance" zpool import is not run. It is possible that /sbin/zpool needs to be modified to return nonzero on a= ll errors, but what I ended up doing was this in /etc/rc.d/zpool: zpool_start() { local cachefile impnews for cachefile in /etc/zfs/zpool.cache /boot/zfs/zpool.cache; do if [ -r $cachefile ]; then impnews=3D$(zpool import -c $cachefile -a -N 2>&1) if [ $? -ne 0 -o -n "$impnews" ]; then echo "Import of zpool cache ${cachefile} failed, " \ "will retry after root mount hold relea= se" root_hold_wait zpool import -c $cachefile -a -N fi break fi done } --=20 You are receiving this mail because: You are the assignee for the bug.=