NFS Server won't update new host in netgroup
Issue
- I added a new IP address to
/etc/netgroup
, but thenfsd
won't pick up the new NFS Client - When mounting a directory inside another directory, an NFSv4 client may receive an
-ENOENT
error:
[root@nfs-client]# mount -t nfs4 -o rw nfs-server:/data/path/reports /mnt/reports
mount.nfs4: nfs-server:/data/path/reports failed, reason given by server: No such file or directory
- An NFS client may also receive an
-EACCES
error using both NFSv3 or NFSv4
[root@nfs-cli-6 ~]# mount -t nfs -o defaults,vers=3 nfs-srv-6:/data /mnt/data
mount.nfs: access denied by server while mounting nfs-srv-6:/data
[root@nfs-cli-6 ~]# mount -t nfs -o defaults,vers=4 nfs-srv-6:/data /mnt/data
mount.nfs: access denied by server while mounting nfs-srv-6:/data
Environment
- Red Hat Enterprise Linux 6 or 7 (NFS Server)
- NFS Client hostnames defined in
/etc/netgroups
- NSS configured to read
netgroup: files
in/etc/nsswitch.conf
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.