On 2019-12-09 06:50, Bob Goodwin wrote:
On 2019-12-08 15:19, Ed Greshko wrote:
> The command "/usr/sbin/exportfs -r" is still failing.
>
> Building on what others have already said.....
>
> Execute the following commands one by one and then post the results.
>
> mv /etc/exports /etc/exports-HOLD
> mkdir -p /nfs4exports/home
> touch /nfs4exports/home/a-file
> echo "/nfs4exports/home
192.168.2.0/24(rw,sync,insecure,no_root_squash,no_subtree_check)" > /etc/exports
> exportfs -r
.
I'm not certain what to post but:
Well, I'm asking if after the "exportfs -r" command was there any error?
Or, any error prior to that?
[root@NFS-Server bobg]# cat /etc/exports
/nfs4exports/home 192.168.2.0/24(rw,sync,insecure,no_root_squash,no_subtree_check)
[root@NFS-Server bobg]# systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; vendor preset:
disa>
Drop-In: /run/systemd/generator/nfs-server.service.d
└─order-with-mounts.conf
Active: failed (Result: exit-code) since Sun 2019-12-08 13:15:14 EST; 4h 25min ago
Process: 13238 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE)
Process: 13239 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 13240 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
CPU: 13ms
Dec 08 13:15:14 NFS-Server systemd[1]: Starting NFS server and services...
Dec 08 13:15:14 NFS-Server exportfs[13238]: exportfs: Failed to stat
/nfs4exports/home/bobg>
That is extremely ODD. There should be no mention of /nfs4exports/home/bobg.
I don't know why that shows up.....
But, can you post the contents of your "/etc/fstab"?
--
The key to getting good answers is to ask good questions.