Link to home
Create AccountLog in
Avatar of pchettri
pchettri

asked on

CentOS 7 NFS

I mounted the shared but when I try to enable NFS service I keep getting following error -

[root@FCNAS /]# service nfs start
Redirecting to /bin/systemctl start  nfs.service
Job for nfs-server.service failed. See 'systemctl status nfs-server.service' and 'journalctl -xn' for details.
[root@FCNAS /]# systemctl status nfs-server.service
nfs-server.service - NFS server and services
   Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled)
   Active: failed (Result: exit-code) since Wed 2015-08-26 17:20:58 MST; 2min 56s ago
  Process: 21429 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE)

Aug 26 17:20:58 FCNAS exportfs[21429]: exportfs: /etc/exports:1: unknown ke...h"
Aug 26 17:20:58 FCNAS systemd[1]: nfs-server.service: control process exite...=1
Aug 26 17:20:58 FCNAS systemd[1]: Failed to start NFS server and services.
Aug 26 17:20:58 FCNAS systemd[1]: Unit nfs-server.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
[root@FCNAS /]# service nfs start


On Putty session it shows following error -

 directory.
[root@FCNAS bin]# service nfs restart
Redirecting to /bin/systemctl restart  nfs.service
Job for nfs-server.service failed. See 'systemctl status nfs-server.service' and 'journalctl -xn' for details.
[root@FCNAS bin]#
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Looks like a bad syntax in /etc/exports. Please post the content of that file.

HTH,
Dan
Avatar of pchettri
pchettri

ASKER

10.0.0.0/24(rw,sync,no_all_sqash,no_root_squash)
ASKER CERTIFIED SOLUTION
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
share directory is in /mnt/VDPNFS/NFSshasre. I was able to get VDPNFS mounted and access it from ESX.  I may have to change 10.0.0.0/24(rw,sync,no_all_sqash,no_root_squash) to list of ESX IP address and vcenter in 4 lines instead of letting it accessed by entire network.

Thanks for your help it was spelling mistake on sqash that was squashing me.
One more thing that I was surprised with is the 12 tb partition on Centos showing as only 10.82 tb. It chews more than a 1 tb to present as datastore in VMFS
I don't use VMware, so I have no idea.