LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nfsd

handles NFS requests from clients

TLDR

Start NFS server
$ sudo systemctl start nfs-server
copy
Enable at boot
$ sudo systemctl enable nfs-server
copy
Start with a specific number of threads
$ sudo rpc.nfsd [16]
copy
Disable NFS version 3
$ sudo rpc.nfsd -N 3
copy
Check NFS server status
$ sudo systemctl status nfs-server
copy
Start with specific port and RDMA support
$ sudo rpc.nfsd -p [2049] -r
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 (default: 8).
-d, --debug
Debug mode.
-H, --host addr
Specify a particular hostname or address to accept NFS requests on. By default, all known network addresses are used.
-p, --port port
Specify a different port to listen on for NFS requests (default: 2049).
-r, --rdma [port]
Enable RDMA transport on the specified port (default: 20049).
-N, --no-nfs-version ver
Disable a specific NFS version (e.g., 3, 4, 4.1, 4.2).
-V, --nfs-version ver
Enable a specific NFS version.
-s, --syslog
Log error messages to syslog instead of stderr.
-t, --tcp
Listen on a TCP socket (default).
-T, --no-tcp
Disable TCP connections from clients.
-u, --udp
Listen on a UDP socket.
-U, --no-udp
Disable UDP connections from clients (default).
-L seconds, --lease-time seconds
Set the NFSv4 lease time (10–3600 seconds).
-G seconds, --grace-time seconds
Set the NFSv4/NLM grace period for reclaiming state.
-S scope, --scope scope
Set the NFSv4.1+ server scope identifier.

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 (except for NFSv4-only configurations). Firewall must allow NFS ports. NFSv4 uses a single port (2049). Security is managed through /etc/exports and optionally Kerberos authentication. The default of 8 threads should be tuned based on workload.

HISTORY

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

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid