From nobody Wed Jan 22 15:32:55 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 4YdSkv31Ddz5lcK3 for ; Wed, 22 Jan 2025 15:32:55 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YdSkv2RFcz3gBM for ; Wed, 22 Jan 2025 15:32:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737559975; 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=Kp28io0cOcVo/vhrWOfPHhdTsAr0C33VBWb/0pqh66k=; b=HT3d4DwN5i/A1WpRdgk2xEuWZREndLSVmORNdaXkdhdgXay7vjxbPtCCHwgcXE/94+kmGo DiSCYSmsigUOiHfNTtNI/nNCtB3KXrooyKipFsRHea6hl/vWUDtimoK5SYn9upySzFDs2p Y8b14rd2CzD56CETTU/L6VuXyZTmLmxHImI9qmFjYZJUGVbOl8nvyYvm3caZy6w4o5zZaX zryObVPm+wbe8S85BBJpB1d3JWy27WZIMPEpHNHIuGnJX+c9KVdehPsCDSGF3I9S383XDA IUkLEQ0Iy+sw7d0VQE5dwgAS8lB5RhYqaxLjaXdi0sf1MaugnOI3k1hht20W9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737559975; 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=Kp28io0cOcVo/vhrWOfPHhdTsAr0C33VBWb/0pqh66k=; b=a5/t1bdlKY7ldHMColKgrc2r7lJYU8ira1kTECxOOgJlrfA58eRN4VYSeAkrKWYQ2fR2HW L7/rQYdDIbFkgHhJ+z2jz3MUjYfshemax2Ily8lSNQnpCkxEDsR3YwWfxuSCLCZEkCmoz4 aBEnbpTVCpKfbTyQKm7tWTIeT9QRDGTEBhRwViQn2X+fjxFN2RJLkITdlS+31doi6g0x+3 Q6ajb6om43J5Y+zdGUKg3e/UDpkfdLQh1t82B+I/bza09uJiDjbD/ukuxuF/dgqGSSN8FR QQR+sNw0fqI1z29owuf72z1cTjoZG4kV66ENrh2ujK2I7r/jz15s5Edgweisxg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737559975; a=rsa-sha256; cv=none; b=Q1FWK6vYMfQBsQxWjLGn55N5Oj8sEC1euXquwondVypZksfEQoMTmR5HeUZezHH8VEZEn+ O3SHb+t1OKnjgsxFPo/QeDJXXwo5+f/jdo3qqjHiU+AagvztcsSVZ/P/TqaevzEJO8hix8 Jm9nFb/buSQLKUGF62bbxTRVMpxe3Ds4NDq/B4hfAWd88If+E482n9wGHzhOxl0yvnCuVg M4fWUDshB/eJkluopPaemqa6jOAoZJS8FRvgIJCRTt+vZiI45WIesUSWtcoyvqoG/mSAYP jtIKcL08JxCmI95uEtLnNhqFJBUMoPr+cw5XIDZnbLS2akUjeAOK+C21zET8Vw== 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 4YdSkv1Qtbzy1t for ; Wed, 22 Jan 2025 15:32:55 +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 50MFWtjg092058 for ; Wed, 22 Jan 2025 15:32:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50MFWtMF092057 for bugs@FreeBSD.org; Wed, 22 Jan 2025 15:32:55 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 284262] nfsd fails to start with nfsv4_server_only but without rpcbind/mountd Date: Wed, 22 Jan 2025 15:32:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: t@ida2.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-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=3D284262 Bug ID: 284262 Summary: nfsd fails to start with nfsv4_server_only but without rpcbind/mountd Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: t@ida2.de Hi, I've struggled while setting up an NFS4 only server without rpcbind. While reading the documentation my impression was: * nfs4 server does not need rpcbind (turns out to be true) * nfs4 server does not need mountd (turns out to be partially true) So I've set up in rc.conf: nfs_server_enable=3D"YES" nfsv4_server_enable=3D"YES" nfsv4_server_only=3D"YES" nfsd fails to start then, see /var/log/daemon.log: Jan 22 16:20:40 hostname nfsd[10726]: rpcb_set udp failed Jan 22 16:20:40 hostname nfsd[10726]: rpcb_unset failed Looking at the start scripts for nfsd and mountd I've noticed: The nfsd script sets vfs.nfsd.server_max_nfsvers=3D4 if nfsv4_server_enable= is set, but does nothing more for nfsv4_server_only. I actually guess there sh= ould vfs.nfsd.server_min_nfsvers=3D4 be set. See: if checkyesno nfsv4_server_enable; then sysctl vfs.nfsd.server_max_nfsvers=3D4 > /dev/null elif ! checkyesno nfsv4_server_only; then echo 'NFSv4 is disabled' sysctl vfs.nfsd.server_max_nfsvers=3D3 > /dev/null fi if ! checkyesno nfsv4_server_only; then force_depend rpcbind || return 1 fi Then in the mountd script there is it: if checkyesno nfsv4_server_only; then echo 'NFSv4 only server' sysctl vfs.nfsd.server_min_nfsvers=3D4 > /dev/null sysctl vfs.nfsd.server_max_nfsvers=3D4 > /dev/null rc_flags=3D"${rc_flags} -R" So these questions arise: * Why are these settings made in mountd script instead of nfsd script? * If for a nfsv4_server_only the mountd is only needed to read the exports = file and can be exited afterwards, why should it run as daemon forever afterward= s? --=20 You are receiving this mail because: You are the assignee for the bug.=