nfs support on centos 7 core OS

Issues related to configuring your network
Post Reply
nitinkumar
Posts: 17
Joined: 2020/04/29 04:07:16

nfs support on centos 7 core OS

Post by nitinkumar » 2020/04/29 04:21:06

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?

User avatar
TrevorH
Forum Moderator
Posts: 29675
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: nfs support on centos 7 core OS

Post by TrevorH » 2020/04/29 08:16:33

Is the nfs-utils package installed?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

User avatar
jlehtone
Posts: 3099
Joined: 2007/12/11 08:17:33
Location: Finland

Re: nfs support on centos 7 core OS

Post by jlehtone » 2020/04/29 11:20:59

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.

nitinkumar
Posts: 17
Joined: 2020/04/29 04:07:16

Re: nfs support on centos 7 core OS

Post by nitinkumar » 2020/05/07 12:13:48

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

User avatar
TrevorH
Forum Moderator
Posts: 29675
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: nfs support on centos 7 core OS

Post by TrevorH » 2020/05/07 12:30:06

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 ?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

nitinkumar
Posts: 17
Joined: 2020/04/29 04:07:16

Re: nfs support on centos 7 core OS

Post by nitinkumar » 2020/05/07 14:13:45

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.

Post Reply

Return to “CentOS 7 - Networking Support”