Difference between revisions of "NFSv4 on Edgy"

From MythTV Official Wiki
Jump to: navigation, search
m (mark outdated)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:HOWTO]]
+
{{Outdated}}
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:
+
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:
  
  
Line 43: Line 43:
 
     apt-get install nfs-common
 
     apt-get install nfs-common
  
Update nfs-common so we can connect
+
Update /etc/default/nfs-common so we can connect
  
 
     NEED_IDMAPD=yes
 
     NEED_IDMAPD=yes

Latest revision as of 23:51, 1 May 2010

Time.png Outdated: The information on this page may no longer be relevant to the current release of MythTV, 34.0. Please consider helping to update it. This page was last modified on 2010-05-01.

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