LinuxCommandLibrary

nfsd

TLDR

Start NFS server

$ sudo systemctl start nfs-server
copy
Enable at boot
$ sudo systemctl enable nfs-server
copy
Restart NFS services
$ sudo systemctl restart nfs-server
copy
Check status
$ sudo systemctl status nfs-server
copy
Manually start nfsd
$ sudo rpc.nfsd [8]
copy

SYNOPSIS

rpc.nfsd [options] [nprocs]

DESCRIPTION

nfsd (NFS server daemon) handles NFS requests from clients. It implements the NFS protocol to share filesystems over the network.
The number of threads determines how many concurrent requests can be handled.

PARAMETERS

nprocs

Number of server threads.
-d, --debug
Debug mode.
-p, --port port
NFS port.
-N, --no-nfs-version ver
Disable NFS version.
-V, --nfs-version ver
Enable NFS version.

CONFIGURATION

$ /etc/exports              - Exported filesystems
/etc/nfs.conf            - NFS configuration
/etc/default/nfs-kernel-server  # Debian
copy

EXPORTS FORMAT

$ # /etc/exports
/home       192.168.1.0/24(rw,sync,no_root_squash)
/data       *(ro,sync)
copy

CAVEATS

Requires rpcbind. Firewall must allow NFS ports. NFSv4 uses single port (2049). Security through exports and Kerberos.

HISTORY

NFS was developed at Sun Microsystems by a team led by Russel Sandberg in 1984, becoming a foundational Unix network protocol.

SEE ALSO

Copied to clipboard