On 30/01/2022 12:36, Robert Nichols wrote:
On 1/29/22 8:25 PM, Gordon Messmer wrote:
On 1/29/22 17:20, Ed Greshko wrote:
In the initial posting by Robert he wrote: "I have no nfs-idmapd service running"
Right, but on recent kernels, the client doesn't use rpc.idmapd, it uses "nfsidmap". The fact that rpc.idmapd isn't running doesn't really tell us anything.
"all users and groups in an NFS mounted filesystem are mapped to "nobody" even though the names and numeric IDs are the same on the server and client"
So, I don't know why we're going down this path.
Jan 28 21:19:14 fedora.local nfsidmap[2461]: nss_getpwnam: name 'root@local' does not map into domain 'localdomain'
Right, that log entry indicates that idmap is being used on his system. That might mean that the server doesn't support NFSv4 without idmap. Or it might mean the client was configured to enable idmapping.
Without knowing which, we don't really know the right thing to do, except to set the client's domain to match the servers, so that idmapping works as expected.
If I could find any way to set the client's domain name, I would. Nothing I try has any effect on the domain name. When I try to set a FQDN with hostnamectl, then "hostnamectl" (with no arguments) shows that FQDN as the static hostname, but "hostname --fqdn" responds with "hostname: Name or service not known", and "mount -t nfs ..." causes the various "... does not map into domain 'localdomain'" messages to be logged.
I think you need to be a bit more specific in your replies. Are the client and the server both Fedora systems, or at least Linux? Mine are now. I was using a NAS but I don't have full root privileges.
In both cases the "Domain" line /etc/idmapd.conf are commented out. The line starts with "#".
So on the server.....
[root@f35ser ~]# hostnamectl Static hostname: f35ser.greshko.com Icon name: computer-vm Chassis: vm Machine ID: c4783bc505a24a9f973009568932bd82 Boot ID: e49e999bf75949b6a27dba21bc96c15e Virtualization: kvm Operating System: Fedora Linux 35 (Server Edition) CPE OS Name: cpe:/o:fedoraproject:fedora:35 Kernel: Linux 5.15.15-200.fc35.x86_64 Architecture: x86-64 Hardware Vendor: QEMU Hardware Model: Standard PC _Q35 + ICH9, 2009
and
[root@f35ser ~]# hostname --fqdn f35ser.greshko.com
What is the fqdn for the host you are looking for? ________________________________________________________________________
On the client
[root@f35m ~]# hostnamectl Static hostname: f35m.greshko.com Icon name: computer-vm Chassis: vm Machine ID: c0682edcc202402dbe806170e81bf3dd Boot ID: c962ece869f941e3becd43982ae96394 Virtualization: kvm Operating System: Fedora Linux 35 (MATE-Compiz) CPE OS Name: cpe:/o:fedoraproject:fedora:35 Kernel: Linux 5.15.12-200.fc35.x86_64 Architecture: x86-64 Hardware Vendor: QEMU Hardware Model: Standard PC _Q35 + ICH9, 2009_
[root@f35m ~]# hostname --fqdn f35m.greshko.com
__________________________________________________________________________
Oh the client
[root@f35m ~]# mount f35ser:/home /mnt [root@f35m ~]# ll /mnt total 0 drwx------. 1 djensen users 76 Jan 28 15:42 djensen drwx------. 1 egreshko egreshko 240 Jan 30 12:59 egreshko
And....
[root@f35m ~]# systemctl status nfs-idmapd.service ○ nfs-idmapd.service - NFSv4 ID-name mapping service Loaded: loaded (/usr/lib/systemd/system/nfs-idmapd.service; static) Active: inactive (dead)
So, it never ran.
Also,
[root@f35m ~]# cat /sys/module/nfs/parameters/nfs4_disable cat: /sys/module/nfs/parameters/nfs4_disable: No such file or directory
_____________________________________________________________________
On the server
[root@f35ser ~]# cat /sys/module/nfsd/parameters/nfs4_disable_idmapping Y
● nfs-idmapd.service - NFSv4 ID-name mapping service Loaded: loaded (/usr/lib/systemd/system/nfs-idmapd.service; static) Active: active (running) since Sun 2022-01-30 13:15:20 CST; 1h 20min ago Process: 1530 ExecStart=/usr/sbin/rpc.idmapd (code=exited, status=0/SUCCESS) Main PID: 1535 (rpc.idmapd) Tasks: 1 (limit: 2314) Memory: 844.0K CPU: 6ms CGroup: /system.slice/nfs-idmapd.service └─1535 /usr/sbin/rpc.idmapd
Jan 30 13:15:19 f35ser.greshko.com systemd[1]: Starting NFSv4 ID-name mapping sevice
Sio, what hostname and domainname do you want to us/
-- Did 황준호 die?