Page 1 of 1

nfs support on centos 7 core OS

Posted: 2020/04/29 04:21:06
by nitinkumar
Hi
I am having CentOS 7 core minimal loaded as a VM on my windows 7 laptop. I am trying to share folder through NFS between two CentOS VM's.
but i am not finding NFS in "service -- status --all" . How should I proceed?

Re: nfs support on centos 7 core OS

Posted: 2020/04/29 08:16:33
by TrevorH
Is the nfs-utils package installed?

Re: nfs support on centos 7 core OS

Posted: 2020/04/29 11:20:59
by jlehtone
The "Minimal" packages selection does not contain nfs-utils.

The nfs-utils is in two yum groups:

Code: Select all

yum groups info "Network File System Client"
yum groups info "File and Storage Server"
The "Minimal Install" yum environment group does not include either.

Installing nfs-utils should suffice for both NFS server and client.

Re: nfs support on centos 7 core OS

Posted: 2020/05/07 12:13:48
by nitinkumar
Hi
I have already installed nfs-utils package. but still when checked with command "service --status --all",
I get message "nfs-secure-server.service could not be found.
pl. help

Re: nfs support on centos 7 core OS

Posted: 2020/05/07 12:30:06
by TrevorH
What version of CentOS are you using? The command service --status --all on CentOS 7 just replies with "The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl" so it doesn't appear to be CentOS 7.

Ah, you mean service --status-all

Assuming it really is CentOS 7, what is the output from systemctl status nfs ? And from showmount -e ?

Re: nfs support on centos 7 core OS

Posted: 2020/05/07 14:13:45
by nitinkumar
Thanks man. The "systemctl status nfs" command showed that nfs server disabled.
I enabled it using command "systemctl enable nfs".
Then I started nfs using command "systemctl start nfs"

Now the status is shown nfs-server.service is active.
The problem is solved right now. Now I will be sharing some files between two CentOS systems.
Thanks once again. Will get back in future.