NFS Server¶
Your node can serve as NFS server. This guide is for RHEL8 and later. By default RHEL8 serves NFS3 und NFS4, whereas RHEL9 and later will serve only NFS4. Still NFS3 can be configured if required.
To enable the NFS server, set base::enable_nfs_server accordingly in Hiera:
Exports¶
Then the exports go below nfs_server::exports:
'/home/meg/dcbboot':
clients:
- hosts: '*'
options: 'rw,sync,no_root_squash,no_subtree_check'
'/export/swissfel_athos/raw/maloja-staff':
options: 'fsid=1012'
clients:
- hosts: 'sf-export-1[2-3]-100g'
options: 'rw,async,no_root_squash'
nfs_server::exports. Below you can set the global options in options and a list of client specific access restrictions and options below clients.
Possible client host definitions and options you find in exports(5).
Non-Standard NFS Server Configuration¶
If you wish non-standard configuration in /etc/nfs.conf, you may set it in Hiera with key nfs_server::nfs_conf:
nfs.conf(5)
Kerberos¶
Kerberos support for the NFS server is configured automatically by Puppet.
Exporting from GPFS¶
If you want to export data backed on GPFS, please set
to start the NFS server only after GPFS is ready.