![]() |
DebianSlug.SetupNFSServer HistoryHide minor edits - Show changes to markup December 14, 2006, at 05:39 AM
by --
Added line 104:
Added line 109:
Changed lines 112-113 from:
Too bad it's in .ipk format, and not a .deb that I could "apt-get". BUT I recalled seeing something about loading kernel modules manually, so I followed the directions (from the old, obsolete page I used to load up my NSLU2 with Linux) , under "Manual Install". to:
Too bad it's in .ipk format, and not a .deb that I could "apt-get". BUT I recalled seeing something about loading kernel modules manually, so I followed the directions (from the old, obsolete page I used to load up my NSLU2 with Linux) here, under "Manual Install". Changed line 118 from:
onnecting to ipkg-us-dyoung.nslu2-linux.org|205.196.212.100|:80... connected. to:
Connecting to ipkg-us-dyoung.nslu2-linux.org|205.196.212.100|:80... connected. Added line 126:
December 14, 2006, at 05:37 AM
by --
Changed line 99 from:
to:
Added line 104:
[@ Changed lines 107-111 from:
And since I seemed to be lacking any exportfs-specific hooks for nfsd to latch to, I had to find a kernel-specific version of exportfs that matched. A bit of searching returned this http://ipkgfind.nslu2-linux.org/details.php?package=kernel-module-exportfs&id=4467590&official=>? Too bad it's in .ipk format, and not a .deb that I could "apt-get". BUT I recalled seeing something about loading kernel modules manually, so I followed the directions (from the old, obsolete page I used to load up my NSLU2 with Linux) /SlugOS/BootstrapLE?from=DebianSlug.Bootstrap?, under "Manual Install" to:
@] And since I seemed to be lacking any exportfs-specific hooks for nfsd to latch to, I had to find a kernel-specific version of exportfs that matched. A bit of searching returned this link. Too bad it's in .ipk format, and not a .deb that I could "apt-get". BUT I recalled seeing something about loading kernel modules manually, so I followed the directions (from the old, obsolete page I used to load up my NSLU2 with Linux) , under "Manual Install". Changed lines 113-114 from:
1) Get the kernel module suitable for your kernel (as located mentioned in the previous message, being http://ipkgfind.nslu2-linux.org/details.php?package=kernel-module-exportfs&id=4467590&official=? slug:~# wget http://ipkg.nslu2-linux.org/feeds/slugos-lag/cross/stable/kernel-module-exportfs_2.6.16-r6.6_ixp4xxle.ipk to:
1) Get the kernel module suitable for your kernel (as located mentioned in the previous message, being here [@slug:~# wget http://ipkg.nslu2-linux.org/feeds/slugos-lag/cross/stable/kernel-module-exportfs_2.6.16-r6.6_ixp4xxle.ipk Changed lines 121-122 from:
to:
@] Changed line 124 from:
slug:~# ar -x kernel-module-exportfs_2.6.16-r6.6_ixp4xxle.ipk to:
[@slug:~# ar -x kernel-module-exportfs_2.6.16-r6.6_ixp4xxle.ipk Changed lines 134-135 from:
to:
@] Added line 137:
[@ Changed lines 139-140 from:
to:
@] Added line 142:
[@ Changed lines 145-146 from:
to:
@] Added line 148:
[@ Changed lines 155-156 from:
to:
@] December 14, 2006, at 05:33 AM
by --
Changed lines 8-9 from:
to:
Changed lines 22-23 from:
to:
December 14, 2006, at 05:31 AM
by -- Added solution to broken nfsd by manually loading module exportfs.ko
Changed lines 21-22 from:
to:
Changed lines 96-148 from:
@] to:
@] Fixing exportfsMy own installation was based on an older version of the DebianSlug instructions, and failed to install the module exportfs.ko. My solution was to bash my head against the internet, and with the help of some smart'uns, I found this to work. My system reports the following from uname: slug:/etc# uname -a Linux slug 2.6.16 #1 PREEMPT Thu Jun 8 23:38:13 PDT 2006 armv5tel GNU/Linux And since I seemed to be lacking any exportfs-specific hooks for nfsd to latch to, I had to find a kernel-specific version of exportfs that matched. A bit of searching returned this http://ipkgfind.nslu2-linux.org/details.php?package=kernel-module-exportfs&id=4467590&official=>? Too bad it's in .ipk format, and not a .deb that I could "apt-get". BUT I recalled seeing something about loading kernel modules manually, so I followed the directions (from the old, obsolete page I used to load up my NSLU2 with Linux) /SlugOS/BootstrapLE?from=DebianSlug.Bootstrap?, under "Manual Install" Here's what I did: 1) Get the kernel module suitable for your kernel (as located mentioned in the previous message, being http://ipkgfind.nslu2-linux.org/details.php?package=kernel-module-exportfs&id=4467590&official=? slug:~# wget http://ipkg.nslu2-linux.org/feeds/slugos-lag/cross/stable/kernel-module-exportfs_2.6.16-r6.6_ixp4xxle.ipk onnecting to ipkg-us-dyoung.nslu2-linux.org|205.196.212.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4,510 (4.4K) [text/plain] 100%[====================================>] 4,510 --.--K/s 2) Unpack it into the kernel directories slug:~# ar -x kernel-module-exportfs_2.6.16-r6.6_ixp4xxle.ipk slug:~# tar xvfz data.tar.gz -C / ./ ./lib/ ./lib/modules/ ./lib/modules/2.6.16/ ./lib/modules/2.6.16/kernel/ ./lib/modules/2.6.16/kernel/fs/ ./lib/modules/2.6.16/kernel/fs/exportfs/ ./lib/modules/2.6.16/kernel/fs/exportfs/exportfs.ko 3) Kick it in the butt to get it loaded slug:~# depmod -a 4) Load up the nfs server slug:~# /etc/init.d/nfs-kernel-server start Starting NFS kernel daemon: nfsd mountd. 5) Confirm it's running correctly slug:~# cat /var/log/messages . . Dec 13 22:11:39 slug kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Dec 13 22:11:40 slug kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4? state recovery directory Dec 13 22:11:40 slug kernel: NFSD: starting 90-second grace period 6) Make sure you have a share config'd in the /etc/exports file, and get to work! November 16, 2006, at 08:00 PM
by -- name change from DebianSlug to SlugOS/LE
Changed line 1 from:
How to setup NFS-Kernel-Server on SlugOS/SlugOSLE|SlugOS/LE (former DebianSlug)to:
How to setup NFS-Kernel-Server on SlugOS/LE (former DebianSlug)November 16, 2006, at 08:00 PM
by -- name change from DebianSlug to SlugOS/LE
Changed line 1 from:
How to setup NFS-Kernel-Server on DebianSlugto:
How to setup NFS-Kernel-Server on SlugOS/SlugOSLE|SlugOS/LE (former DebianSlug)Changed lines 11-12 from:
You'll need a working install of DebianSlug! This means you can ssh into your box, su to root and install packages via apt-get. to:
You'll need a working install of SlugOS/LE! This means you can ssh into your box, su to root and install packages via apt-get. Changed line 15 from:
If you built your own DebianSlug image using the MasterMakefile, you'll end up with a lot of kernel-module-*.ipk files in ~/slug/debianslug/tmp/deploy/ipk/ \\ to:
If you built your own SlugOS/LE image using the MasterMakefile, you'll end up with a lot of kernel-module-*.ipk files in ~/slug/debianslug/tmp/deploy/ipk/ \\ Changed lines 23-24 from:
If you don't have the kernel-module-*.ipk-files, it's best to rebuilt the DebianSlug image, and upgrade your flash as per description at http://www.nslu2-linux.org/wiki/DebianSlug/Bootstrap#upgrade to:
If you don't have the kernel-module-*.ipk-files, it's best to rebuilt the DebianSlug image, and upgrade your flash as per description at BootstrapLE#upgrade July 09, 2006, at 04:32 PM
by -- Added debugging info
Changed lines 77-96 from:
to:
lsmod Module Size Used by nfsd 186128 13 exportfs 2752 1 nfsd lockd 45812 2 nfsd sunrpc 104576 9 nfsd,lockd and on the client lsmod Module Size Used by nfs 219720 1 lockd 62216 1 nfs sunrpc 150332 3 nfs,lockd June 17, 2006, at 12:37 PM
by -- added module feed
Added lines 25-26:
(if you run slugoOS debianslug, just wget the from http://ipkg.nslu2-linux.org/feeds/debianslug/ ) February 09, 2006, at 10:15 PM
by -- added depmod -a
Added line 30:
depmod -a Changed lines 32-33 from:
This will install the required modules into /lib/modules/`uname -r` to:
This will install the required modules into /lib/modules/`uname -r` and rebuild the module dependencies: February 09, 2006, at 10:06 PM
by -- Initial Release
Added lines 1-73:
How to setup NFS-Kernel-Server on DebianSlugContentsRequirementsYou'll need a working install of DebianSlug! This means you can ssh into your box, su to root and install packages via apt-get. Kernel ModulesIf you built your own DebianSlug image using the MasterMakefile, you'll end up with a lot of kernel-module-*.ipk files in ~/slug/debianslug/tmp/deploy/ipk/
If you don't have the kernel-module-*.ipk-files, it's best to rebuilt the DebianSlug image, and upgrade your flash as per description at http://www.nslu2-linux.org/wiki/DebianSlug/Bootstrap#upgrade Put the ipk-files on the Slug (sftp/samba/ftp). I assume you put them in /home/slug/modules. Be root: cd /home/slug/modules dpkg --force-architecture -i kernel-module-nfsd* kernel-module-sunrpc* kernel-module-lockd* kernel-module-exportfs* This will install the required modules into /lib/modules/`uname -r` InstallingStill beeing root: apt-get update apt-get upgrade apt-get install nfs-kernel-server Done. Sample ConfigEdit /etc/exports with your favourite text editor (vi/joe/whatever)
#/etc/exports
# IMPORTANT: Make sure there's no blank between the network/host address and the "("
#
# Example 1: Exporting /home/dbox/pictures to the entire local
# network 192.168.1.0 / 255.255.255.0 for reading and writing
/home/dbox/pictures 192.168.1.0/24(rw,no_root_squash,async)
# Example 2: Exporting /home/dbox/record to host 192.168.1.3 for reading and writing
/home/dbox/record 192.168.1.3(rw,no_root_squash,async)
# Example 3: Exporting /home/dbox/mp3 to the entire internet read only
# Don't worry! As long as you didn't set up port forwarding on your router from your
# public (internet) ip to the slug , or the slug is set up to have a public ip or
# it's on the DMZ, only the clients on the local network can access the slug
# to be on the safe side, check if you can access ports 111 and 2049 on the slug from the internet
# If you cannot, you're safe!
/home/dbox/mp3 *(ro)
Start the nfs-server! TroubleshootingIf you're running into problems, this might be handy:
view ·
edit ·
print ·
history ·
Last edited by Dave Hrynkiw.
Based on work by Dave Hrynkiw, fcarolo, PatrickSchneider, Antikristian, and Patrick Schneider. Originally by Patrick Schneider. Page last modified on December 14, 2006, at 05:39 AM
|