General NAS-Central Forums

Welcome to the NAS community
It is currently Mon Jul 24, 2017 8:51 am

All times are UTC




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Aug 31, 2010 9:30 am 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Can anyone be so kind as to show me how to get the NFS server running step by step?

Another cool thing to get running would be SABNZBD.

I can't find any explicit guides on modifying the NS2, only the NS1 and I really don't want to screw anything up.

Thanks.


Top
 Profile  
 
PostPosted: Tue Aug 31, 2010 10:17 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
There is kernel-space and user-space nfs.The first one is faster/better, but you'll need nfs kernel modules. In both cases you'll need nfs-utils. You could try to cross-compile that, but I suggest you to install ffp.

AFAIK no-one ever installed it on a NS2, but it should work. Download fun_plug.tgz and put it in a share. Unpack it in a subdirectory:
Code:
mkdir ffp
cd ffp
tar -xzf ../fun_plug.tgz

Create a symlink /ffp which points to /path/to/share/ffp. (You can also put ffp outside a share, if you want, but I advice you to put it on the data partition. When installing packages the directory can get big)
Start the user-space nfs server:
Code:
export PATH=/ffp/bin:/ffp/sbin:$PATH
/ffp/bin/sh /ffp/start/unfsd.sh start

More here.

To start it (and/or other ffp services) at boot, make the script executable, and execute on boot:
Code:
/ffp/etc/rc start


About SABNZBD, is nzbget good enough for you? You can just install the ffp build tools, and build nzbget from source:
Code:
wget nzbgetxxx.tgz
tar -xzf nzbgetxxx.tgz
cd nzbgetxxx
./configure --prefix=/ffp
make
su
make install

Worked for me. (Well, on another box, but still ffp)


Top
 Profile  
 
PostPosted: Tue Aug 31, 2010 10:38 am 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Thanks , I will give this a shot and let you know how I got on.

Sabnzbd is preferable since it has web remote control and auto par, unrar etc.


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 9:34 am 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
It's all going well but starting the kernel server NFS gives this error

/ffp/start/nfsd.sh: line 48: exportfs: command not found


I'd really like the fastest option possible.


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 11:24 am 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Ok here is my status. I tried running non-kernel mode to see if it works but i get the following message when i try to mount it


mount.nfs: access denied by server while mounting 192.168.0.150:/media1

In my fstab on the client i have

192.168.0.150:/media1 /media/03-NETWORKHD nfs rsize=8192,wsize=8192,timeo=14,intr


On the server i have created

/ffp/etc/exports (symlinked to /etc/exports)

Contents:
/media1 192.168.*(rw,sync,no_root_squash,no_subtree_check)

I symlinked /media1 to /shares/OpenShare/Videos

I tried creating a hosts.allow and deny file

/ffp/etc/hosts.allow, /ffp/etc/hosts.deny (symlinked to /etc/)

Contents:
mountd: 192.168.0.199
statd: 192.168.0.199
portmap: 192.168.0.199
rquotad: 192.168.0.199

mountd: ALL
statd: ALL
portmap: ALL
rquotad: ALL

But still the same message.

What I have forgotten?



Contents of the program running below

[root@NET-HD ffp]# sh /ffp/start/unfsd.sh start
ps: invalid option -- o
BusyBox v1.10.4 (2010-08-04 10:47:42 UTC) multi-call binary

Usage: ps

Report process status

Options:
w Wide output

Starting /ffp/sbin/rpc.portmap
ps: invalid option -- o
BusyBox v1.10.4 (2010-08-04 10:47:42 UTC) multi-call binary

Usage: ps

Report process status

Options:
w Wide output

Starting /ffp/sbin/unfsd -e /ffp/etc/exports


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 12:09 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
reptile wrote:
/ffp/start/nfsd.sh: line 48: exportfs: command not found

exportfs is in /ffp/sbin. I see that the path is omitted in the latest fun_plug.tgz/nfsd.sh, while it's specified in my sample. Maybe I had the same problem. Try to add the path in the script.

Quote:
mount.nfs: access denied by server while mounting 192.168.0.150:/media1

Any logfiles on the server?

Quote:
On the server i have created
/ffp/etc/exports (symlinked to /etc/exports)

Did you create it, or is it auto-generated? Fonz mentions that there is a difference in this file for the two servers, but he doesn't say what. So I don't know how the file should look. Looking at the unfsd.sh file it looks like it will auto-generate a file which exports all subdirectories in /mnt, when the file doesn't exist. So remove the exports file, create some directories in /mnt, and start the server again.

Quote:
Sabnzbd is preferable since it has web remote control and auto par, unrar etc.

nzbget does also auto par and unrar (if an unrar is available), and using nzbwebget you'll have your webinterface.
Having said that, I see that Sabnzbd is a python script, so I suppose it will run if you install enough of fonz' python packages.


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 12:20 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Quote:
[root@NET-HD ffp]# sh /ffp/start/unfsd.sh start
ps: invalid option -- o

Did you
Code:
export PATH=/ffp/bin:/ffp/sbin:$PATH

It *should* use /ffp/bin/ps, which supports this flag, I suppose.


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 12:23 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
I created a new directory in /mnt

and then i fixed the script to read eth0 as it wasn't creating the exports file.

The exports file is now identical to what I had before pretty much and when i try to mount i get the same problem

mount.nfs: access denied by server while mounting 192.168.0.150:/mnt/test


Sep 1 14:45:04 NET-HD mountd[2224]: authenticated mount request from 192.168.0.199:885 for /mnt/test (/mnt/test)
Sep 1 14:45:04 NET-HD mountd[2224]: getfh failed: Function not implemented
Sep 1 14:46:16 NET-HD mountd[2224]: authenticated mount request from 192.168.0.199:943 for /mnt/test (/mnt/test)
Sep 1 14:46:16 NET-HD mountd[2224]: getfh failed: Function not implemented


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 12:51 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Quote:
ifconfig: egiga0: error fetching interface information: Device not found

I suppose the network interface on the NS2 has another name? Edit the script.
Quote:
I really don't understand why my exports file doesn't work. It is based on the exports file I made for my Ubuntu machine and that works fine.

It didn't work for unfs3, but doesn't it work for nfsd either?
Quote:
Here is something i found in the log
getfh failed: Function not implemented

You don't have kernel support.


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 1:39 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Ok i eventually got it working with the non-kernel mode but it's a disaster. The performance is terrible and it's better with the samba share. It keeps pausing for ages and then makes my client pc hang up.

Is it viable to get a new kernel working for the NS2?


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 2:16 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Don't know. I should first try to compile the kernel modules. You'll need exportfs.ko and nfsd.ko. The GPL sources are here.


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 7:45 am 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Mijzelf wrote:

About SABNZBD, is nzbget good enough for you? You can just install the ffp build tools, and build nzbget from source:
Code:
wget nzbgetxxx.tgz
tar -xzf nzbgetxxx.tgz
cd nzbgetxxx
./configure --prefix=/ffp
make
su
make install

Worked for me. (Well, on another box, but still ffp)


Im trying to compile NZBGET but the "just install the ffp build tools" is where I am getting stuck. I am trying to follow the wikis but I am just getting lost with all this. Since nothing is specific to the Network Space 2 I am finding it hard work to get started.

How do I install the build tools?


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 9:04 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Download the packets
binutils
uclibc
gcc
make
gettext
patch
bison
flex
autoconf
automake
from fonz' repository. You can install them:
Code:
cd /path/where/the/packages/are
funpkg -i packagename.tgz
or
Code:
funpkg -i *.tgz
if you like.


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 2:56 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Ok, I got the packages installed and now when I go to compile with your instructions i get this

[root@NET-HD nzbget-0.7.0]# ./configure --prefix=/ffp
checking for a BSD-compatible install... /ffp/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-unknown-linux-gnu
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: in `/shares/OpenShare/compile/nzbget-0.7.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
[root@NET-HD nzbget-0.7.0]#


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 3:44 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6015
Are you sure you didn't forget gcc? Configure cannot find it. Are you running this from a ffp-enabled shell (you know, PATH=...)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group