Difference between revisions of "Enable NFS for LS-VL"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m (+ Category:LS-WVL)
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[Update 24.12.2011]: There was a bug in the nfs.sh script preventing the mountd to start successfully if the optware library path was not included in the .profile to the LD_LIBRARY_PATH.
 +
 
=Do I need to install a new kernel?=
 
=Do I need to install a new kernel?=
 +
 
No you don't.<br>
 
No you don't.<br>
At least with firmware 1.36, Buffalo already built the kernel with NFSD support enabled.<br>
+
At least with firmware 1.36, Buffalo already built the kernel with NFSD (NFS version 3) support enabled.
 +
Firmware 1.54 is verified to work as well.
  
 
=What is missing?=
 
=What is missing?=
 +
 
The "only" missing stuff are the nfs_utils.<br>
 
The "only" missing stuff are the nfs_utils.<br>
 
Unfortunately the optware feed for the LS-VL does not contain the complete nfs_utils due to build problems.<br>
 
Unfortunately the optware feed for the LS-VL does not contain the complete nfs_utils due to build problems.<br>
Serendipitously (I always wanted to use this word ;-) ) I built the necessary tools and scripts when I built the [[Ready-to-use NFS kernel]].<font color=red size=4>Do not use this kernel for the LS-VL!</font><br>
+
Serendipitously (I always wanted to use this word ;-) ) I built the necessary tools and scripts when I built the [[Ready-to-use NFS kernel]]. <font color=red size=4>Do not use this kernel for the LS-VL!</font><br>
  
You DO need the package "portmap" (and maybe also "e2fslibs") from Optware installed!
+
You DO need the packages "portmap" and "e2fslibs" from Optware installed! <font color=red size=4>It will not work without!</font>
  
 
=What do you have to do?=
 
=What do you have to do?=
Download this tarball to the share "share":
+
 
 +
Download this tarball to the share "share" (if you downloaded it before 24.12.2011, do it again!):
 
   http://downloads.buffalo.nas-central.org/Users/kenatonline/NFSKernel/nfstools.tar.gz
 
   http://downloads.buffalo.nas-central.org/Users/kenatonline/NFSKernel/nfstools.tar.gz
  
Line 17: Line 23:
 
Change to the root directory.
 
Change to the root directory.
 
   cd /
 
   cd /
Unpack the tarball.
+
Unpack the tarball (replace "disk1" with "array1" if you use a RAID configuration).
 
   tar xvzf /mnt/disk1/share/nfstools.tar.gz
 
   tar xvzf /mnt/disk1/share/nfstools.tar.gz
 
Configure nfsd.
 
Configure nfsd.
 
   [[NFS for Beginners]]
 
   [[NFS for Beginners]]
 
Either reboot the box or just start the nfsd.
 
Either reboot the box or just start the nfsd.
   /etc/rc.d/extensions.d/S98_nfs.sh start
+
   /etc/init.d/nfs.sh start
 
Wait at least one minute before you check for success.
 
Wait at least one minute before you check for success.
   /etc/rc.d/extensions.d/S98_nfs.sh status
+
   /etc/init.d/nfs.sh status
 
It should return this:
 
It should return this:
 
   portmap is running.
 
   portmap is running.

Latest revision as of 09:22, 24 December 2011

[Update 24.12.2011]: There was a bug in the nfs.sh script preventing the mountd to start successfully if the optware library path was not included in the .profile to the LD_LIBRARY_PATH.

Do I need to install a new kernel?

No you don't.
At least with firmware 1.36, Buffalo already built the kernel with NFSD (NFS version 3) support enabled. Firmware 1.54 is verified to work as well.

What is missing?

The "only" missing stuff are the nfs_utils.
Unfortunately the optware feed for the LS-VL does not contain the complete nfs_utils due to build problems.
Serendipitously (I always wanted to use this word ;-) ) I built the necessary tools and scripts when I built the Ready-to-use NFS kernel. Do not use this kernel for the LS-VL!

You DO need the packages "portmap" and "e2fslibs" from Optware installed! It will not work without!

What do you have to do?

Download this tarball to the share "share" (if you downloaded it before 24.12.2011, do it again!):

  http://downloads.buffalo.nas-central.org/Users/kenatonline/NFSKernel/nfstools.tar.gz

Then connect as user "root" to your LS-VL via ssh. Change to the root directory.

  cd /

Unpack the tarball (replace "disk1" with "array1" if you use a RAID configuration).

  tar xvzf /mnt/disk1/share/nfstools.tar.gz

Configure nfsd.

  NFS for Beginners

Either reboot the box or just start the nfsd.

  /etc/init.d/nfs.sh start

Wait at least one minute before you check for success.

  /etc/init.d/nfs.sh status

It should return this:

 portmap is running.
 mountd is running.
 nfsd is running.
 statd is running.
 lockd is running.
 All kernel NFS services running.