NFS tutorial - Get the Network File System running

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 22:19, 26 July 2006 by 85.124.221.56 (Talk) (LS1, LS HG (ppc))

Jump to: navigation, search

Currently Kernel-NFS is possible on the LS1, LS HG with 2.6-kernel and on the LS2 with the kernel-modules of the stock kernel.

LS1, LS HG (ppc)

Requirements: 2.6-Kernel over andre's webinstaller (kernel modules are included)

Download and untar the package

 cd / 
 wget http://www.unet.univie.ac.at/~a0025690/ppc-openlink-2.6-kernel-NFS-V1.tar.gz 
 tar -xvzf ppc-openlink-2.6-kernel-NFS-V1.tar.gz 
  • modify /etc/exports to your needs
  • start the NFS-kernel server by:
 /etc/init.d/start_nfsd.sh 

(this is a custom startscript...it is not that good developed...it can just start at the moment...but it works)

  • to check if the server is really running execute:
 rpcinfo -p 127.0.0.1

if this is working then try rpcinfo -p from a remote workstation (running linux or windows with the "services for unix" installed....only then rpcinfo will b available). there is an entry in /etc/hosts.deny ( portmap: ALL ) that prevents this....

so as long as you do not delete the portmap: ALL entry in /etc/hosts.deny, you have to explicit allow some hosts.

add to hosts.allow

 portmap: <host>

if it also works from a different machine then your NFS-Server is running. the only problem should be configuration now.


TIPS: if you edit /etc/exports while the NFS-Server is running, update the nfs-shares by:

 exportfs -a 

(exportfs only shows the current exports..)

if you need to stop NFS:

 /etc/init.d/nfs-kernel-server stop 
 /etc/init.d/portmap stop 

and restart them again by

 /etc/init.d/portmap start 
 /etc/init.d/nfs-kernel-server start 

to make this start after reboot

 ln -s /etc/init.d/start_nfsd.sh /etc/rc.d/rc2.d/S60start_nfsd.sh
  • @dbox & dreambox guys:

here is a good example for how to configure NFS http://wiki.tuxbox.org/NAS:Buffalo_Linkstation_II#NFS_Server_konfigurieren

http://forum.linkstationwiki.net/index.php?action=vthread&forum=7&topic=840

If we get the 2.6-Kernel running on the Terastation then we have Kernel-NFS there as well Mindbender 20:17, 10 July 2006 (EDT)

LS2 (mips)

Requirements:

  1. NFS-related kernel modules for the stock kernel (2.4.20)

http://homepages.enterprise.net/jnm/buffalo/nfs.html

http://www.voicenet.com/~jceklosk/linkstation-2.html

http://www.herz.in/projekte/linkstation_en.html

Link.png This article is currently a stub. You can help this Wiki by expanding it

. This template will categorize articles that include it into Category:Stubs.