From nobody Fri Feb 21 00:18:30 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 4YzW1y4pmZz5pcxy for ; Fri, 21 Feb 2025 00:18:30 +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 4YzW1y3yrSz3TtR for ; Fri, 21 Feb 2025 00:18:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740097110; 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=r9CG+WUgdVJH6qq0k/G0HxnYQ+ZAQyMoKNA3Hg9Q+/g=; b=RxN4sarpw30Og6hU7KTZMG/qPAjeC0n7xZ/0AT/IbVJX9hFsDBlWmlB+JfWOGx2cGAk+Ru 5vo5a20A29ZFO/5G+t57qbu6Cm0xxje2Xim0/lYFEuc/xhz0Zg8HQaFQSr0ohgz1kgZmFK EXiRld8n634Rz2JO2hG79DhmJlKD0TV1AptoJ80+E1XRMYp4ZWOx9i1lF0mT/HxMdBNJu3 FefWp/8FV1nG0wOj3Gmo3Ax16JBjk2X9wLs+3JGKbkBql4bWTLjjy/CC+D+dGUsboN0JAq +nymlnKglD5CXdCKT5k1cbKWz9yVnPgt38hmu7qgYR5yZ/ENvjRc9BhDWt/MvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740097110; a=rsa-sha256; cv=none; b=JOFIJV1jVDhWDNf6dcFKPu3kvHxePmeEbX/LvVhOhxQVxrbL1xa19IYp9pbqSwqLPrCVYs NxWH2T2ODsPlGYwF0L7u85JWeiHr6I1DhkwtwR/Uo/15T7lpqTQSuhIr27yr0jHHPEG6LY G5Hlml7ACsxkxukjFsLUOfDkKzeXnOTRGTdCMjuID9cDtQX0sDx3VngkacXLTFVtlGA1M4 Yrhu/r+5L7PPeNTUrc/cNPLoujrguBnw3o0ZJiRDnbkuTxgrj4VdsnfiZ0HmJFHqvWqNyE YuY6kmj/TOSg7SyGzOCYfXu1mIIOQ8lPPeIfgcCwQBXp9I5OolUB7JLc/+8Myg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740097110; 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=r9CG+WUgdVJH6qq0k/G0HxnYQ+ZAQyMoKNA3Hg9Q+/g=; b=Mvrq9YZ0T/Z2sCK5wxHMwa/WoF3J7MNnj36rr/fG1xpu/wSiK6opSX/ixXwsYD/73cc8vw zwm8yCPrkazgDkoy2pks2kXGKxkGKoXsKfdrwWnGZ7neskjUlO9NPkScw8+wiMuxxtDmnY xeKxSWxHHRieSi+TIcv1kN7MfUnZHfdHjj5wddDppMUzZqmM6I9tZq4YAky9EPEiOvSZvc 6yT4IJ8Dz9ey9pq4M6H4es4W7OXR0eMbvdlEPqz6RQEBIPktPLVzlApNqAhj/HR8TCW9j0 f65tTlEBoaZcv61bU7X+USQc7QzwA8kZAIc0SZ+9i4I+doMbHfAyhQzUPYO1PA== 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 4YzW1y2kc4z1CvR for ; Fri, 21 Feb 2025 00:18:30 +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 51L0IUqn012587 for ; Fri, 21 Feb 2025 00:18:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51L0IUVw012586 for bugs@FreeBSD.org; Fri, 21 Feb 2025 00:18:30 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 284939] NFSv4 server and clients. Date: Fri, 21 Feb 2025 00:18:30 +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.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: eu9gu4@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=3D284939 Bug ID: 284939 Summary: NFSv4 server and clients. Product: Base System Version: 14.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: eu9gu4@gmail.com I was using NFSv3 successfully for a long time and tried recently NFSv4 und= er Linux and FreeBSD servers and clients, after reading the man pages and vari= ous guidelines. Results in the following table. Configs and options below. ----------------------------------------------------- | Client | |-----------------------------------| Server | Linux | FreeBSD | |------------------------------------ | NFSv4 | NFSv3 | NFSv4 | NFSv3 | ----------------|-----------------|------------------ | NFSv4 | ok | ok | ok | ok | Linux |-------|--------|--------|--------|--------| | NFSv3 | - | ok | - | ok | ----------------|--------|--------|--------|--------| | NFSv4 | err 2 | ok | err 1 | ok | FreeBSD |-------|--------|--------|--------|--------| | NFSv3 | - | ok | - | ok | ----------------------------------------------------- Test command (both Linux and FreeBSD, issued by root on the client): rsync -avhriulK --super --progress --stats /home/user/media/video/ /srv/storage/home/user/media/video ok - rsync works fine err 1 - rsync fails for all files with the following: No name and/or group mapping for uid,gid:(0:0) rsync [generator] chown "file name" failed: Operation not permitted (1) err 2 - rsync fails for all files with the following: rsync [generator] chgrp "file name" failed: Invalid argument (22) although root has the same uid (0) and gid (0) on all machines. FreeBSD server NFSv4 /etc/exports: V4: /srv -network 10.0.0/24 /srv/storage -alldirs -maproot=3Droot -network 10.0.0/24 FreeBSD server NFSv3 /etc/exports: /srv/storage -alldirs -maproot=3Droot -network 10.0.0/24 Linux server NFSv4 /etc/exports: /srv 10.0.0.0/24(rw,async,nohide,crossmnt,no_subtree_check,insecure_locks,no_roo= t_squash,fsid=3D0) Linux server NFSv3 /etc/exports: /srv/storage 10.0.0.0/24(rw,async,nohide,no_subtree_check,insecure,insecure_locks,no_roo= t_squash) FreeBSD client mount: NFSv3: mount_nfs -o rw,async,soft,noatime,nfsv3 10.0.0.101:/srv/storage /srv/storage NFSv4: mount_nfs -o rw,async,noatime,nfsv4 10.0.0.101:/storage /srv/storage Linux client mount: NFSv3: mount -t nfs -o defaults,async,soft,noatime,vers=3D3 10.0.0.101:/srv/storage /srv/storage NFSv4: mount -t nfs -o defaults,async,soft,noatime,vers=3D4 10.0.0.101:/sto= rage /srv/storage Summary: - On a NFSv4 Linux server,the client works fine regardless of the mount (v4= or v3). - On a NFSv4 FreeBSD server, the client works only if the mount is v3 and f= ails whith v4. Why can't a NFSv4 server on FreeBSD work with a NFSv4 client? Is there something wrong with my exports and/or mount options? --=20 You are receiving this mail because: You are the assignee for the bug.=