NFSv4 on Edgy
Outdated: The information on this page may no longer be relevant to the current release of MythTV, 0.26. Please consider helping to update it.
This page is to use NFSv4 instead of NFSv2 on Ubuntu Edgy. This fixes the 2GB limit on file sizes that is experienced with NFSv2. I just tried the client portion on a Dapper system and it has a problem where it can't find host. I will troubleshoot it a little but I need to upgrade the box anyway. 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 /etc/default/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:
192.168.0.10:/ /video nfs4 proto=tcp,port=2049,soft 0 0
Further Reading:
NFSv4Howto https://help.ubuntu.com/community/NFSv4Howto