NFSv4 on Edgy

From MythTV Official Wiki
Revision as of 06:01, 4 December 2006 by Wilso027 (talk | contribs)

Jump to: navigation, search

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 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:

    192.168.0.10:/    /video     nfs4    proto=tcp,port=2049,soft     0     0


Further Reading:

NFSv4Howto https://help.ubuntu.com/community/NFSv4Howto