PDA

Bekijk de volledige versie : NFS problem



fwbj01
19-02-2006, 15:41
Hi Guys,

Since I bought wl-500gx I've learned a lot from the community. Thanks to you!

Now I've encountered a problem related to NFS. Recently I installed the latest 1.9.2.7-7b firmware, but found the problem with Samba persists: it is not very stable, sometimes the network folder closes by itself, and sometimes file transfer was broken. That was why I was seeking to use NFS instead, while I did not turn off Samba. I downloaded ServicesforUnix 3.5 and installed NFS client on my Win XP notebook.

now my /etc/exports is like:
#automatically generated from web settings
/tmp/harddisk 192.168.1.0/24(rw)

and when I run "showmount -e wl-500g" from notebook running NFS client, I can see this showing up. But when I try to mount this NFS share through:

mount 192.168.1.1:/tmp/harddisk *
or "mount \\wl-500g\tmp\harddisk *"

I always got message "Network Error - 53" or "Network Error - 67" (can't find network path or network name). I ran
"insmod sunrpc
insmod lockd
insmod nfs
/usr/sbin/portmap"

on wl-500g already. Can anybody show me how to trouble this? It was strange that yesterday I succeeded in mapping the NFS share to my e: drive yesterday. but today I could not make it happen again.

Thanks!

fwbj01
19-02-2006, 20:09
Hi Guys,

I can mount the NFS share now but I could not write into it (deleting file etc). I now have "no root squash" in export list but don't know how I can log in to it as root user under SFU. "rw" has been set but doesn't work. Anybody can help?

fwbj01
21-02-2006, 07:06
Let me summarize the problems with NFS:

1. SFU can work sometimes under unknown reasons. But the next time XP starts, there might be a prompt "An error occured while connecting to the NFS Server. Make sure the NFS client services have started. If the problem still exists, make sure your NFS client can communicate with User Name Mapping or PCNFS server".

2. I tried another NFS client named Omni. But it keeps asking for user authentication (NIS, PCNFS or UID). Anyway this does not work.

Can't anybody offer some help, please?

MirecXP
14-11-2006, 18:14
I have the same problem using WL500gP and Windows XP.
Can somebody post an instruction how to solve it ?

_H_o_L_E_
14-11-2006, 23:00
Hi Guys,

I can mount the NFS share now but I could not write into it (deleting file etc). I now have "no root squash" in export list but don't know how I can log in to it as root user under SFU. "rw" has been set but doesn't work. Anybody can help?

you must redirect the anonid and the anongid to 0 (root) and all requests to anon. then you can acces with all rights

it shoul work with


/path/to/directory (rw,insecure,all_squash,anonuid=0,anongid=0)

then you have full root rights on the share

MirecXP
15-11-2006, 01:57
Thank you HoLE !

That works really fine.

But why it is not possible to map the drive sometimes (50%) ?

_H_o_L_E_
15-11-2006, 08:51
thats a good question i am working on, too

but i have other problems with nfs at the moment: reading is fine but writing does not work. he starts to write with 40MB/s and then does not response any more. reading from nfs is fine @ 4MB/s

tsedeq
07-01-2007, 00:22
I have Oleg's 1.9.2.7-7f and tried to use nfs server from router - with nfs client from MS SFU 3.5 - for higher transfer speed. After some successful tests I tried to transfer a ~3GB folder (with few hundreds files) from router to pc and the router died. After recovery (reflash, reinstall ipkg etc - here may be another story about recovery without pin 9 :) ) the problem remains (while transfer that folder via nfs, router dies). I transfered successfully the folder via samba.
Well, is anybody here which use nfs without problems?

oleo
07-01-2007, 14:48
Well, is anybody here which use nfs without problems?
Me. Using linux as a client. Automounter.
My config:

/opt *(rw,async,no_root_squash)

Smart71
01-02-2007, 21:00
Connection to an NFS server may fail in certain configurations, with a server log message that looks like this one:

Aug 4 05:44:43 leeloo kernel: nfsd: request from insecure port (11685b22:50528)!

This can happen with any version of Mac OS X. Here's why:

Mac OS X tries to make NFS connections from port numbers outside the traditional range expected by some NFS servers. Configuring your NFS server to accept connections on "insecure" ports above 1024 should resolve the issue. Please consult your server's documentation for configuration information.

Is there a way to get it work with MAC OS X and the WL500GD?

Thanks...

Tomik
19-04-2007, 10:59
Hello,
I have a problem with performance of NFS reading from disc. I have a 200G disc connected over USB to Asus-WL500gP and I access to it from a notebook (Debian) over WiFi.
I achieve a data transfer about 300kB/s (as it is reported by mc) reading from disc over NFS. Moreover the connection often freezes (kwifimanager shows that signal is often lost).
When I read the same data over Samba, I get approx. 900kB/s.
If I write to the disc over NFS, it is about 1.5MB per second. I can't provide data for samba write because I have Samba read-only.

Firmware release is 1.9.2.7-7f-pre7.

Please can somebody help me with the NFS issue?

Thanks

runemol
23-04-2007, 00:28
Hi,

I was wondering if you are planning to create a foo2zjs package available through the package manager for Asus WL-500g? I have an HP Laser Jet 1020 which I want to connect to my WL-500g by using CUPS instead of HP JetDirect printing mechanism.

Is it possible to make the foo2zjs available for this architecture or is it a workaround in order to make HP Laser Jet 1020 work with CUPS without installing the foo2zjs as a package through the ipkg package manager?

Is it possible to include support for NFS?

Anybody? :)

Best regards,

runemol

qz3fwd
21-05-2007, 20:20
I have several Tvix media player boxes and cannot get them to connect to the Asus routers shares using NFS. SMB works fine, however I have never been able to get a connection using NFS. I need to use NFS because high bitrate files choke using SMB, and have been using NFS with my Infrants for over a year without problem. I have the tvixd1 share setup as required.

Does the NFS implementation work on the Asus firmware?

Has anyone been able to connect to the shares using NFS?

Thank You.

kfurge
22-05-2007, 03:19
NFS to my FreeBSD box works just fine for me. Make sure you're using the proper export name. To see the exports type the following from a unix box (or the router itself if you're running the custom software or optware):

showmount -e <server ip address>

- K.C.

qz3fwd
24-05-2007, 16:01
Thanks-I will try the showmount tonight.

I also wonder if it could be a userID/password thing?

This problem is driving me nuts. My Infrants connect no problem, the ASUS does not. So I cannot access the 700GB's of HDTV transport streams on any of my HDTV's:(

kfurge
25-05-2007, 03:50
I also wonder if it could be a userID/password thing?


Maybe. I mount the shares as root on my FreeBSD box.

- K.C.

DaSonix
03-08-2007, 00:16
I'm having troubles mounting a NFS share on the router. Perhaps someone can help me with this as this is way beyond my knowledge



[admin@Router root]$ mount -t nfs 192.168.0.254:/Share /tmp/harddisk/server
mount: RPC: Unable to receive; errno = Connection refused
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.0.254:/Share on /tmp/harddisk/server failed: Bad file descriptor

primo525
29-11-2007, 19:05
Hi guys

I am quite new of Oleg..

I have a strange problem, this is the main configuration:
-USB FAT32 harddisk mounted un /tmp/harddisk (formatted with Part.Magic 8)
-all mouts are performend in post-boot (stupid-ftpd disable)
-nfs server disabled
All seem OK ..

But whwn i download torrents whis Transmission I often have this strange
error:
/opt/share/www/cgi-bin/transmission.cgi: /opt/share/www/cgi-bin/transmission.cgi: 4: cannot create /tmp/harddisk/torrent/work/TORRENTDIRNAME/.info: Stale NFS file handle

I have got the same error also if I try to CD to that directory from
terminal..

Rebooting fix the problem...

This look quite strange for me !!!
Is the USB storage implementation a sort of NFS file system?

Can you help me?

Regards
Primo525

oleo
29-11-2007, 19:15
Format key in ext3!

primo525
29-11-2007, 19:22
Tkanks Oleg

do you mean that VFAT file system implementation is not so good ?

oleo
29-11-2007, 20:56
No. It seems that file locking is not working wit VFAT.

@lexeich
17-02-2008, 16:51
All should work. It is just necessary to register correctly a full way to a folder. Example:

1. "/shares/MYVOLUME1/MYSHARE1" - for acces to folder myshare1 (built in hdd).
2. "/foreign_share/NTFS" - for access to external disk (usb connected) resources.

Using telnet it is possible to look a full way in shell.

Join!

@lexeich
17-02-2008, 16:59
But there is one bug:
Russian names of files are displayed incorrectly - the codepage does not coincide. TVIX work propertly with charsets 8bit per symbol. Unicode not supporting.

Firmware 1.0.7.8 kfurge

Gizmo1007
20-03-2008, 01:41
hi qz3fwd,

I have mine working with a Tvix 4000

It's working on NFS but I cannot get it working on Samba. Anyway NFS is better as it provides faster speeds.

Your line should be /shares/MYVOLUME1/tvixhd1.
I noted from above that you have it in /tvixd1.
Maybe it was only a typo for you on the post
anyway it does work.

qz3fwd
04-04-2008, 06:00
Yeah-I got it working long ago but must have forgotten to post.
I too used " /shares/MYVOLUME1/tvixhd1" and my 2 5000's and 4100 connect flawlessly.
I never dumb it down to SMB & just stick with NFS since it just works.

t.r.a.v.i
01-11-2008, 00:30
Hello.
I have AsusWL500gP, with Oleg's firmware and HeadStart II from this tutorial:http://www.wl500g.info/showthread.php?p=112117#post112117,

I enabled NFS Server at web interface. Export "/mnt (rw)".
I can connect to Asus/mnt, but only "read only". How to connect "read/write"?

content of file "/etc/exports":
/mnt (rw)

content of file "/proc/fs/nfs/exports":
# Version 1.1
# Path Client(Flags) # IPs
/mnt 192.168.1.2(ro,root_squash,sync,wdelay) # 192.168.1.2
/mnt 192.168.1.76(ro,root_squash,sync,wdelay) # 192.168.1.76

But I need from address 192.168.1.2 "rw". How do it? Where is generated this file?
Thx for help.

al37919
01-11-2008, 05:45
cat /etc/exports
/opt 192.168.1.10(rw,async,no_root_squash,no_wdelay)

Tiger road
30-11-2008, 21:58
This might be stupidest questions of all time but here goes. I have had my WL-500g Deluxe for years working nicely. FTP and SAMBA which is mainly what I use works like a charm with out me having to know anything about linux.
A few days ago I purchased Popcorn Hour A-110 (http://www.popcornhour.com/onlinestore/) which is a very strong and silent Media Tank. Sadly it fails to browse my SAMBA share on the WL-500g Deluxe. Then I had the great idea of trying to set up the NFS on my WL-500g Deluxe which the Popcorn Hour also supports. But I haven't got the faintest of ideas how to. I have search the forum vividly the last couple of days but have found nothing.

WL-500g Deluxe has IP: 192.168.1.1
Popcorn Hour IP: 192.168.1.4.

Is it possible at all to set up the NFS through the Web Interface only?
What has to be exported?
I have tried:
/tmp/harddisk/part1/ 192.168.0.4(rw) (This is the dir structure)
/share 192.168.0.4(rw) (This is name of the SAMBA demo mode share)

Is there a way to test the NFS leaving the Popcorn Hour out of the picture. Say f.x. installing some kind of NFS client on my Windows XP machine?

Any help is very much appreciated as I would really like the Popcorn Hour to see the attached drive on WL-500g Deluxe.

Tiger road
01-12-2008, 18:09
Anyone? I got chocolates :)

Tiger road
07-12-2008, 19:40
Finally got it to work. I had the path mixed up. In order to make NFS work you just have enable NFS server in the web interface and add server export.
I added:
/tmp/harddisk/ftp_pub 192.168.1.1/255.255.255.0(rw)
this give read/write permissions to ip all ip adresses between 192.168.1.1-192.168.1.255 which is all machines connected to my WL-500g deluxe. The "/tmp/harddisk/ftp_pub" is the file path to my data I wish to share. I just did a telnet to my WL-500g deluxe and did some browsing to find the file path.

Lasse_kongo
28-02-2009, 15:05
TY it also works for mediaplayer Egreat m31b

ABATAPA
28-02-2009, 19:17
T
I have tried:
/tmp/harddisk/part1/ 192.168.0.4(rw) (This is the dir structure)
/share 192.168.0.4(rw) (This is name of the SAMBA demo mode share)


Try

/tmp/mnt 192.168.0.4/32(rw,async,no_root_squash,anonuid=0,anongid=0)

Andrey_3
28-03-2009, 12:16
Use "insecure" option in /etc/exports file. For example:
/tmp/harddisk/ftp 192.168.0.2(rw,async,insecure,no_root_squash,anonu id=0,anongid=0)

dl9sec
24-06-2009, 20:34
Hi together,

after i managed to get my Samba running well, it seems that i now got trouble with NFS. Maybe this has to do with xinetd, because this was the last modification done before i got this message after trying to mount my usual nfs-share:


mount.nfs: access denied by server while mounting (null)


The mount should be done with:


#! /bin/bash
mount -t nfs 192.168.0.4:/tmp/harddisk /mnt/wlhdd -o rw,soft,udp,rsize=32768,wsize=32768


The /etc/exports on my WL-HDD (192.168.0.4) shows:


# automagically generated from web settings
/tmp/harddisk/ *(rw,async,no_root_squash)
/tmp/harddisk/naspics/ *(ro,async,no_root_squash)
/tmp/harddisk/nasmusic/ *(ro,async,no_root_squash)
/tmp/harddisk/nasvideo/ *(rw,async,no_root_squash)


From the client side i can see the exports:


showmount -e 192.168.0.4

Export list for 192.168.0.4:
/tmp/harddisk *
/tmp/harddisk/nasmusic (everyone)
/tmp/harddisk/nasvideo (everyone)
/tmp/harddisk/naspics (everyone)


Do i have to change any settings in xinetd.conf to make my nfs-mount work again?

Thanks in advance,

Thorsten

dl9sec
25-06-2009, 19:18
Solved.

It hasn't t do anything with WL-HDDs services.
On the client side something went wrong with the directories where the share should be mounted. So after unmount the obsolete mount and remount, all works fine.

Mabe the Board-Admin can delete the post because its useless...

Regards, Thorsten

Bohlendach
16-07-2010, 10:01
A few days ago I purchased Popcorn Hour A-110 (http://www.popcornhour.com/onlinestore/) which is a very strong and silent Media Tank. Sadly it fails to browse my SAMBA share on the WL-500g Deluxe.

Password encryption has to be set to 'Yes' in samba for a Popcorn Hour 110 to be able to browse your share.

sgora
27-08-2010, 19:59
Hi,
I'm using RT-N16 with firmware 1.9.2.7-rtn-r1906.

During using of NFS filesystem exported from connected via USB dysk my NFS server on RT-N16 sometimes crashes. (I have to restart nfsd end mountd deamons).
In syslog there is information:
=======================================
Aug 27 19:36:06 kernel: dentry_open called with NULL vfsmount
Aug 27 19:36:06 kernel: Call Trace:
Aug 27 19:36:06 kernel: [<8000de20>] dump_stack+0x8/0x34
Aug 27 19:36:06 kernel: [<80079acc>] dentry_open+0x7c/0xc8
Aug 27 19:36:06 kernel: [<c00da284>] get_name+0xcc/0x19c [exportfs]
Aug 27 19:36:06 kernel: [<c00da7e0>] find_exported_dentry+0x2d8/0x6ec [exportfs]
Aug 27 19:36:06 kernel: [<c00dac48>] export_decode_fh+0x54/0xac [exportfs]
Aug 27 19:36:06 kernel: [<c0264454>] fh_verify+0x364/0x6f4 [nfsd]
Aug 27 19:36:06 kernel: [<c02715a8>] nfsd3_proc_getattr+0xc8/0x180 [nfsd]
Aug 27 19:36:06 kernel: [<c026029c>] nfsd_dispatch+0xbc/0x2ac [nfsd]
Aug 27 19:36:06 kernel: [<c01f207c>] svc_process+0x500/0x964 [sunrpc]
Aug 27 19:36:07 kernel: dentry_open called with NULL vfsmount
Aug 27 19:36:07 kernel: Call Trace:
=======================================
Does anyone know some fix for nfs ?

verjikd
07-09-2010, 20:51
I am having problems with the NFS-server on my RT-16N, using an Oleg firmware of this july. It stalls when copying a lot of files from one of the attached USB drives. An error 521 and something like cannot find files.
I see only a few references on google on this (kernel problem). However I am wondering whether the mount options might cause a problem; much more people should have problems. What options do you use?

verjikd
11-09-2010, 14:51
More info. I have problems mounting with this command:
mount -t nfs -o vers=3,tcp,lock,intr,hard,rw 192.168.123.1:/mnt/nfs-data /Asus

The error I get when copying a large amount of files from the Asus to my Kubuntu 10.04 PC (by dmesg through telnet): dentry_open called with NULL vfsmount
Call Trace:
[<8000de20>] dump_stack+0x8/0x34
[<80079eec>] dentry_open+0x7c/0xc8
[<c00da284>] get_name+0xcc/0x19c [exportfs]
[<c00da77c>] find_exported_dentry+0x274/0x6ec [exportfs]
[<c00dac48>] export_decode_fh+0x54/0xac [exportfs]
[<c01bb454>] fh_verify+0x364/0x6f4 [nfsd]
[<c01c8598>] nfsd3_proc_getattr+0xc8/0x180 [nfsd]
[<c01b729c>] nfsd_dispatch+0xbc/0x2ac [nfsd]
[<c024807c>] svc_process+0x500/0x964 [sunrpc]
[<c01b7b90>] nfsd+0x224/0x460 [nfsd]
[<8000a05c>] kernel_thread_helper+0x10/0x18

NFS stalls for a minute than resumes working, though filecopying must start again.

My (unsafe) /etc/exports: /mnt *(rw,no_subtree_check,no_root_squash,sync)

I'll now try:
mount -t nfs -o hard,rw,async,noauto 192.168.123.1:/mnt/nfs-data/ /Asus

theMIROn
11-09-2010, 15:29
It's already fixed in svn. So, just get the latest build

verjikd
11-09-2010, 15:52
That's great, thanks. I was using the svn-version of July

Edited: it is fixed indeed

Foxem
14-01-2011, 11:30
Hi,

I have a NAS (HDD My Book World 2 Western Digital 2TB with 10/100/1000 ethernet interface) with NFS folders.
I tried to mount the NFS folders from NAS on my RT-N16 but with no success.
I added
insmod nfs.ko
mount //192.168.109.130:/NFS/temp /usr/local/mnt/temp
I would appreciate it, if someone could help me with some suggestions.



Many thanks

verjikd
11-07-2011, 21:28
I've updated my RT-16n with the latest OLEG-firmware of 3th of July. Now I am having trouble to get the NFS-server on my RT-16n to work for all clients. The following command works from Opensuse and my Wetab: sudo mount -t nfs -o vers=3,tcp,lock,intr,hard,rw,nolock 192.168.123.1:/mnt/nfs-data/ /Asus
In syslog.log: mountd[365]: authenticated mount request from 192.168.123.103:909 for /mnt/nfs-data (/mnt/nfs-data)

However from Kubuntu 11.04 and Xubuntu 11.04 I get on the client side: mount.nfs: access denied by server while mounting 192.168.123.1:/mnt/nfs-data/
In syslog.log:mountd[365]: refused mount request from EEElaptop for /mnt/nfs-data (/): no export entry

My only exports-line is: /mnt/nfs-data 192.168.123.*(rw,async,insecure)

Why the ubuntu-variants won't connect, is beyond me. :confused:
Anyone an idea?

verjikd
18-07-2011, 23:15
I found it. The error has to do with the Asus RT-16N router not being able to resolve the IP address of both PC's. For both PC's were I had created fixed IP addresses for their MAC-addresses in the Asus router, with an earlier firmware version.

After updating the firmware of the router this caused the problem, although it gave both PC's the right IP address. Removing both fixed IP addresses made it working again. It is more or less a bug in the OLEG-firmware of the RT-16N (and other WL500-routers with the same kind of firmware).

Glad I found it :P

verjikd
19-07-2011, 09:18
And in the end it wasn't the Asus router after all, as one PC continued to have a problem. It needed to have these options to run:

mount -t nfs -o vers=3,tcp,nolock,intr,hard,rw,noauto 192.168.123.1:/mnt/nfs-data/ /Asus

:confused::confused:

verjikd
14-08-2011, 21:14
After using the Oleg firmware for one year on my RT-N16 I've switched to a Tomato-firmware with integrated NFS, as desribed on this page: http://tomatousb.org/forum/t-354845/tomatousb-with-nfs-included.

The NFS-performance is considerable better; I've just transferred one file of 2 GB in 205 seconds, which is 9,75 MB/sec. With the Oleg firmware it achieved around 3 to 4 MB/sec. How is this possible? :confused:

I've used this firmware: http://tomato.groov.pl/index.php?dir=K26/build5x-062-EN/&file=tomato-K26USB-1.28.905xRAF-EN-MIPSR2-062-AIO.trx

Installing is best done from a Windows PC with the Firmware restoration tool from the Asus router utilities, as described in: http://patricksheedy.net/blog/simple-tomato-firmware-install-on-asus-rt-n16-router/
It is very important to clear the NVRAM with the 30-30-30-procedure as described (before and after, otherwise the router will boot, but no connections to it can be made.

The tutorial for setting up the rest of the server: http://tomatousb.org/tut:how-to-set-up-nas-optware-etc-for-total-noobs

ecaddict
15-08-2011, 09:08
Strange, I'm using RT-N16 with Oleg (http://code.google.com/p/wl500g/downloads/list)firmware and I regularly use NFS. It's quite fast (considering that this is a router), I've also reported it in another thread. Link (http://wl500g.info/showpost.php?p=199683&postcount=127).

With Linux (Fedora) as peer ~12 MB/s with 75% CPU load (system utilization) is typical.
I use it with UDP (mount example here (http://wl500g.info/showpost.php?p=197068&postcount=114), it seems from recent discussions that for some clients vers=3 has to be added, it was not needed for me), TCP has some performance issues, not just with NFS, but basically with any other protocol using TCP (FTP, Samba etc.).

To me it seems that the per packet overhead kills TCP performance (with any RT-N16 firmware), simply reducing the amount of TCP ACKs performance jumps. Reported here (http://wl500g.info/showpost.php?p=200254&postcount=129).

Since then I had no time to investigate this issue any more, but luckily NFS over UDP is fast for regular use with Oleg.

(I'm also very happy that UVC webcam support has been added recently to Oleg firmware (using Logitech Webcam Pro 9000) :).)

verjikd
15-08-2011, 17:40
I use the wrong options apparently.... :(

mount -t nfs -o vers=3,tcp,nolock,intr,hard,rw,noauto 192.168.123.1:/mnt/sda3/nfs-data/ /Asus

I'll try UDP for Tomato!

verjikd
15-08-2011, 18:56
With this mount command, working with UDP, it takes even longer (210 sec instead of 205 sec for 2GB):

sudo mount -t nfs -o rsize=32768,wsize=32768,timeo=14,intr,proto=udp,as ync 192.168.123.1:/mnt/sda3/nfs-data/ /Asus

Network-usage is fluctuating more than with the command I normally use. So maybe to much losses with UDP.

fox111
12-12-2011, 23:31
I've bought the ASUS WL500g V2 router and I've been struggling with the NFS server.
The server is turned on in the web interface, the /etc/exports file reads

[admin@router root]$ cat /etc/exports
# automagically generated from web settings
/tmp/harddisk/192.1.1.11

when I try to mount the share with
sudo mount 192.168.1.1:/tmp/hardisk /home/vlad/knihovna I just get
mount.nfs: access denied by server while mounting 192.168.1.1:/tmp/hardisk.
First I thought the problem could be in firewall configuration, but if I turn the firewall down, the problem persists.
Could anybody advice me please?