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]#
Linux

Avatar of undefined
Last Comment
Dan Craciun
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of pchettri
pchettri

ASKER

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.
Avatar of pchettri
pchettri

ASKER

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
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

I don't use VMware, so I have no idea.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo