Kahibaro
Discord Login Register

NFS

Understanding NFS in Practice

NFS (Network File System) lets you share directories over the network so that remote systems can mount them as if they were local. In this chapter, you’ll focus on how to deploy, manage, and troubleshoot NFS on Linux servers and clients.

NFS Versions and Key Concepts

NFSv3 vs NFSv4 (and 4.1+)

You’ll most commonly encounter:

Key implications for administration:

Exports, Clients, and Mounts

Terminology specific to NFS:

Example mapping:

The client path does not need to match the server’s path.

Installing and Enabling NFS

Packages and Services

On common distributions:

Core services (names may vary slightly by distro):

To enable the server (example on a systemd-based distro):

sudo systemctl enable --now nfs-server

On clients, ensure NFS client utilities are installed; you don’t usually need a dedicated service running permanently, but systemd may auto-start necessary helper units on mount.

Configuring NFS Exports

The `/etc/exports` File

This file defines which directories are shared and with which clients, plus export options.

Basic syntax:

directory  client1(options)  client2(options) ...

Example:

/srv/projects  192.168.10.0/24(rw,sync,no_subtree_check) \
               devhost.example.com(ro,sync)

Common client spec formats:

Export Options (Server Side)

Key options to understand:

Views: 24

Comments

Please login to add a comment.

Don't have an account? Register now!