WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: nfs-server  (Read 25769 times)

Offline AliC

  • Newbie
  • *
  • Posts: 5
Re: nfs-server
« Reply #15 on: November 07, 2011, 04:52:27 AM »
Hi,
in TCE 4.0.2, kernel 3.0.3
I couldn't find exportfs.ko.gz file in modules for nfs-server.
nfs-server service is OK but I need the access for nfs from remote.

There is this modules in kernel 2.6.29.
("/usr/local/lib/modules/2.6.29.1-tinycore/kernel/fs/exportfs/exportfs.ko.gz" in filesystems-2.6.33.3-tinycore.tcz)

But there isn't the exportfs.ko in new filesystems-3.0.3.tinycore.tcz packet
What can I do for nfs-server.

Thanks All.
Ali

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: nfs-server
« Reply #16 on: November 07, 2011, 09:29:52 AM »
Quote
CONFIG_EXPORTFS=y

The only barriers that can stop you are the ones you create yourself.

Offline AliC

  • Newbie
  • *
  • Posts: 5
Re: nfs-server
« Reply #17 on: November 08, 2011, 09:21:18 AM »
Yes, it's true.  There is exportfs  in the new kernel.
//distro.ibiblio.org/tinycorelinux/4.x/x86/release/src/kernel/config-3.0.3-tinycore

But there are some problem.
Services are working.

root@box:/home/tc# /usr/local/etc/init.d/nfs-server start
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
nodev   nfsd
/usr/local/sbin/rpc.statd is already running
2164
nfs-server utilities are started.

root@box:/home/tc# exportfs
/tmp            <world>
root@box:/home/tc#

Remote side;
root@box:/home/tc# mount -t nfs 10.0.0.9:/tmp   /tmp/aaa/
mount: RPC: Remote system error - Connection refused
mount: mounting 10.0.0.9:/tmp on /tmp/aaa/ failed: Bad file descriptor
root@box:/home/tc#

Server side;
root@box:/home/tc# /usr/local/etc/init.d/nfs-server stop
stopped /usr/local/sbin/rpc.mountd (pid 3602)
ERROR: Module exportfs does not exist in /proc/modules
root@box:/home/tc#

nfs-server don't work.
is any problem between old kernel&appl to new kernel&appl?
Same services are working in my other ubuntu platform.
I want to carry platform to TC from ubuntu.
Are you running nfs-server in TC v4.0.2 ?
Can you help me?

Thanks.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs-server
« Reply #18 on: November 08, 2011, 11:31:44 AM »
I will aim to test the nfs-server functionality in TC 4.x tonight, as mine is still running TC 3.x.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: nfs-server
« Reply #19 on: November 08, 2011, 12:21:42 PM »
I did run a NFS server on tc4 a few days back, and remember having to launch things manually, guess the startup script needs a check.
The only barriers that can stop you are the ones you create yourself.

Offline AliC

  • Newbie
  • *
  • Posts: 5
Re: nfs-server
« Reply #20 on: November 08, 2011, 01:02:10 PM »
I mounted the nfs connection when the open another terminal in the server side.
in the same machine, it is OK.

But in the another machine (remote),
root@kumru:~# mount 10.0.0.10:/mnt/sda1 /mnt/hd
mount.nfs: access denied by server while mounting 10.0.0.10:/mnt/sda1

-----
And I tried something else,
Remote machine did a TC.
Another remote TC client is WORKING. No problem.

Ubuntu had a previously.
But ubuntu nfs-client gives this msg -> "mount.nfs: access denied by server while mounting"

is the ubuntu's nfs client different? (what about others distribution.)
There is something interesting, when writing "mount IP:" then TAB, nfs paths are completing.
Execute the mount command, it gives the access denied.

this is the last condition.
Thanks again.
« Last Edit: November 08, 2011, 01:49:51 PM by AliC »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs-server
« Reply #21 on: November 08, 2011, 08:53:43 PM »
It appears that nfs-utils will need an upgrade, along with some new required dependencies for the nfsv4 stuff.  I plan to get to it soon.
« Last Edit: November 08, 2011, 08:55:23 PM by Jason W »

Offline AliC

  • Newbie
  • *
  • Posts: 5
Re: nfs-server
« Reply #22 on: November 09, 2011, 04:29:58 AM »
There are compatibility issues, such as...
I will wait the upgrade for the test.
Thanks.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11657
Re: nfs-server
« Reply #23 on: November 09, 2011, 08:27:55 AM »
Hi AliC
It sounds like you are having the same problem as gregg_a_g, and based on the time frame, he
would have been running TC3.x, so I don't think it's 4.x specific. If you want to get your hands dirty
and get some insight as to what's going on, you could install  Wireshark  on the server, it can decode
NFS packets. You could then compare a successful mount to a failed one.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11657
Re: nfs-server
« Reply #24 on: November 09, 2011, 09:36:46 AM »
Hi AliC
Just a thought, but are you running a firewall on your Ubuntu machine? If so, try mounting with it
disabled and see if the error message goes away or changes.

Offline AliC

  • Newbie
  • *
  • Posts: 5
Re: nfs-server
« Reply #25 on: November 09, 2011, 12:10:44 PM »
Hi Rich,
I don't use a firewall on my machine. The internet modem has it.
And I am using lubuntu on server, cilent side is ubuntu.
On the other hand is already running in the same way. I want to change only the distro of server.
My goal is to make a better mini nfs server without monitor and keyboard, for mediaserver.
Wireshark is good idea for the test.
Thanks.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs-server
« Reply #26 on: November 09, 2011, 10:02:40 PM »
There are several new dependencies that come with supporting nfs4, and I have built those tonight.  I aim  to build the updated nfs-utils and test in the coming days.  Hopefully by the end of the week or sooner it will be resolved.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs-server
« Reply #27 on: November 09, 2011, 10:55:43 PM »
I can't believe I overlooked it, simply installing the filesystems-`uname -r`.tcz extension provides nfs server functionality.  It is even in the info file that I wrote way back when but forgot about.  installing that filesystems extension solves the issue.

There are a lot of new dependencies of nfs-utils in it's latest version to support nfsv4.  I was rewriting the /usr/local/etc/init.d scripts to accomodate the new changes and getting ready to build the updated nfs-utils package when I tried the filesystems extension.  For now I much prefer to stick with the old packages that work for general use and are much smaller with less dependencies.  Or at least this buys me some time to build and test a new nfs-utils package without being in a mad rush.  Install filesystems-`uname -r`.tcz and all should be well.

Oh, and there is not a 'startup script', but rather a /usr/local/etc/init.d script that is used to start or stop the service at the users control.  Nothing should have to be done manually, but let me know if otherwise.


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: nfs-server
« Reply #28 on: November 09, 2011, 11:40:15 PM »
I am unable to mount a directory exported from tc.
The program 'exportfs' does not work properly. Note the peculiar error message with "test-client-(rw"

root@laptop:/home/tc# exportfs 192.168.0.0/24:/opt
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/opt".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /proc/fs/nfs/exports:1: unknown keyword "test-client-(rw"


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs-server
« Reply #29 on: November 10, 2011, 12:18:39 AM »
The "test-client-(rw" error you are seeing is one I have seen, until I set up my box correctly.  And the exportsfs error you are seeing is just a reminder that it is applying the default behavior ((Assuming default behaviour ('no_subtree_check').)) .   The test-client-(rw error seems to be harmless, though, and documented here:

https://bugs.gentoo.org/show_bug.cgi?id=353717

I have nfs server and client working across my TC 4.x machines.  Here is some of my relevant info:

/etc/exports:
Code: [Select]
/mnt/sdb1 192.168.0.*(rw,no_root_squash,fsid=32)

Empty /etc/hosts.allow

filesystems-3.0.3-tinycore.tcz installed

/usr/local/etc/init.d/nfs-server start

That is pretty much it, hope it provides some usefulness.  But I am seeing both client and server use of nfs-utils in TC 4.x.