Configure NFS for OHVs
- Install NFS
- sudo apt install nfs-server
- Create an entry in /etc/exports for filesystems to be exported (ex. raid/scratch/scratch-test)
- sudo vi /etc/exports
-
/raid/scratch/scratch-test 128.111.100.0/23(rw,no_root_squash) 128.111.236.0/24(rw,no_root_squash) 128.111.104.0/24(rw,no_root_squash)
- Restart Nfs-server service
- sudo systemctl restart nfs-server.service
- sudo systemctl status nfs-server.service
- Check/configure UFW (firewall) for NFS
- sudo ufw status
-
Example output: gritadm@ohv-44:~$ sudo ufw status Status: active To Action From -- ------ ---- OpenSSH ALLOW 128.111.61.0/24 OpenSSH ALLOW 128.111.64.0/22 OpenSSH ALLOW 128.111.100.0/24 OpenSSH ALLOW 128.111.101.0/24 OpenSSH ALLOW 128.111.102.0/24 OpenSSH ALLOW 128.111.103.0/24 OpenSSH ALLOW 128.111.104.0/24 OpenSSH ALLOW 128.111.106.0/24 OpenSSH ALLOW 128.111.180.0/22 OpenSSH ALLOW 128.111.188.0/22 OpenSSH ALLOW 128.111.234.0/24 OpenSSH ALLOW 128.111.236.0/24 OpenSSH ALLOW 169.231.80.0/20 OpenSSH ALLOW 169.231.96.0/19 OpenSSH ALLOW 169.231.112.0/20 OpenSSH ALLOW 169.231.128.0/20 OpenSSH ALLOW 169.231.144.0/20 OpenSSH ALLOW 169.231.160.0/20 OpenSSH ALLOW 169.231.208.0/20 Web Server Full ALLOW Anywhere 10050/tcp ALLOW 128.111.104.137 # allow zabbix 2633 ALLOW 128.111.104.0/24 # allow ONE XML-RCP Web Server Full (v6) ALLOW Anywhere (v6)
- Check for the following rules:
-
Anywhere ALLOW 128.111.104.0/24 Anywhere ALLOW 128.111.100.0/24 Anywhere ALLOW 128.111.101.0/24 Anywhere ALLOW 128.111.236.0/24
-
- Add missing rules:
-
sudo ufw allow from 128.111.104.0/24 sudo ufw allow from 128.111.100.0/24 sudo ufw allow from 128.111.101.0/24 sudo ufw allow from 128.111.236.0/24
-
- Create Autofs mounts