NFSv4 on Edgy
This page is to use NFSv4 instead of NFSv2 on Ubuntu Edgy. I had to do this so that my movies on my frontend only machines could be played the entire way through. I am still updating this as I learn more but this is what I have so far:
MythBackend(no security)
Install the NFSv4 Server
apt-get install nfs-kernel-server
Update the line in /etc/default/nfs-kernel-server to:
NEED_SVCGSSD=no
Update /etc/default/nfs-common to:
NEED_IDMAPD=yes NEED_GSSD=no
Create the line in /etc/exports (something like this):
/video 192.168.0.193(rw,fsid=0,async,insecure,no_subtree_check,no_root_squash)
Restart the service
sudo /etc/init.d/nfs-kernel-server restart
Add this line to /etc/hosts.deny
portmap : ALL : deny
Add this line to /etc/hosts.allow
portmap: 192.168.0.193,192.168.0.122,192.168.0.184 : allow
MythFrontend
Install the NFSv4 client
apt-get install nfs-common
Update nfs-common so we can connect
NEED_IDMAPD=yes
Restart the service
sudo /etc/init.d/nfs-common restart
Create the directory you are going to mount to
sudo mkdir /video sudo chmod 777 /video
You can test to make sure it will mount with the following command:
sudo mount -t nfs4 -o proto=tcp,port=2049 192.168.0.10:/ /video
Update /etc/fstab to automount on boot:
...coming soon