Page 1 of 2 12 LastLast
Results 1 to 16 of 20

Thread: N5200 - Fedora 7 NFS

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    N5200 - Fedora 7 NFS

    Hi

    I hope this question is relevant and can be answered by Thecus.


    I'm trying to mount (using NFS) a shared folder from the N5200 my company just bought on a linux Fedora 7.

    So I've used the following command :

    mount -t nfs N5200_IP:/path/to/folder /mnt/a/mounted/folder/

    The mounting works, even if the owner and group id seams to be retrieved from the N5200 filesystem.

    My probleme is that I use this folder to put a Subversion repository (FSFS filesystem). One the repository creation complete on the mounted folder, I've tried to import a projet into it, and I receive this error:

    'Can't get exclusive lock '

    It seems to be an error raised by the mount since NFS lock system is management by a specific daemon running on the NFS server for what I intend..
    Plus, I tried to put the same repository layout on a local folder, and the lock probleme disappeard..

    apparently to properly configure a NFS, some configuration reguarding the portmap must be done,

    a $ rpcinfo -p
    gives me informations reguarding port used by various dameon, including lockd/statd (for file locking)
    and a $rpcinfo -p N5200_IP
    gives me informations reguarding NFS port configuration on my N5200.

    But It seems their is no service statd running, so the problem could be on the NFS server side ...


    Is their a way to configure the portmap and daemon running on N5200 ?

    Thanks in advance !
    Laurent

  2. #2
    Thecus Staff Thecus - Yvon's Avatar
    Join Date
    Apr 2007
    Posts
    937
    Thanks
    0
    Thanked
    8 times in 8 posts

    Re: N5200 - Fedora 7 NFS

    Dear Sir,

    Following suggestions for your reference:

    1. If went to mout "public2" from N5200 to /mnt/public2, please try on following command:
    mount 172.16.66.68:/raid/data/public2 -o tcp,rsize=8192,wsize=8192,nfsvers=3,intr /mnt/public2

    2. Does the N5200 NFS folder setting is "Root User"?

    3. How about the N5200 firmware version?


    Yvon.

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    Hi Yvon,

    first of all, thanks for your quick reply.

    - I've tried your first suggestion, the mount works fine, as before, but the lock problem still remains

    - The folder setting are :
    Folder :
    browsable = no
    public = no

    NFS :
    hostname = my fedora 7 client
    privileged = writable
    assess as = Anonymous user

    Reguarding the firmware, I have the 1.00.10

    Plus, a rpcinfo on my fedora 7 gives me :
    [root@subversion ~]# rpcinfo -p
    program vers proto port service
    100000 4 tcp 111 portmapper
    100000 3 tcp 111 portmapper
    100000 2 tcp 111 portmapper
    100000 4 udp 111 portmapper
    100000 3 udp 111 portmapper
    100000 2 udp 111 portmapper
    100000 4 0 111 portmapper
    100000 3 0 111 portmapper
    100000 2 0 111 portmapper
    100024 1 udp 4000 status
    100024 1 tcp 4000 status
    100021 1 udp 1024 nlockmgr
    100021 3 udp 1024 nlockmgr
    100021 4 udp 1024 nlockmgr
    100021 1 tcp 1025 nlockmgr
    100021 3 tcp 1025 nlockmgr
    100021 4 tcp 1025 nlockmgr

    and a rcpinfo -p on the N5200 gives me

    [root@subversion ~]# rpcinfo -p 192.168.200.202
    program vers proto port service
    100000 2 tcp 111 portmapper
    100000 2 udp 111 portmapper
    100011 1 udp 854 rquotad
    100011 2 udp 854 rquotad
    100003 2 udp 2049 nfs
    100003 3 udp 2049 nfs
    100003 2 tcp 2049 nfs
    100003 3 tcp 2049 nfs
    100021 1 udp 1024 nlockmgr
    100021 3 udp 1024 nlockmgr
    100021 4 udp 1024 nlockmgr
    100021 1 tcp 1025 nlockmgr
    100021 3 tcp 1025 nlockmgr
    100021 4 tcp 1025 nlockmgr
    100005 1 udp 868 mountd
    100005 1 tcp 871 mountd
    100005 2 udp 868 mountd
    100005 2 tcp 871 mountd
    100005 3 udp 868 mountd
    100005 3 tcp 871 mountd

    As you can see, on the N5200 the "status" service is missing, perhaps the issue come from here ?

    Thanks again,

    Laurent

  4. #4
    Thecus Staff Thecus - Yvon's Avatar
    Join Date
    Apr 2007
    Posts
    937
    Thanks
    0
    Thanked
    8 times in 8 posts

    Re: N5200 - Fedora 7 NFS

    Dear Sir,

    Please try with following configuration & stpes:

    1.
    Folder :
    Browsable = Yes
    Public = Yes
    NFS :
    Hostname = *
    Privileged = Writable
    Assess as = Root User

    2.
    Confirm the "rpc.lockd" running onthe Fedora 7 already.


    If above stpes deosn't working still, please provide the conf.bin to support@thecus.com for us analysis or try with
    http://onbeat.dk/thecus/index.php/N5200_Module:_SVN


    Yvon

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    Hi Yvon,

    I've tried to configure as you said, and it does not work.

    Reguarding the running serices, I thought their should be a status service running also on the NFS server, since this service also lookup for lock no ?

    But anyway, I'me very interested about the SVNModule. I've downloaded it and looked a little bit in its content.

    But I cannot figure out what version of SVN it will install, and looking at the script SVN/system/repositorytool, the creation of repository uses Berkley database ? is this script editeable in order to make it create a FSFS filesystem type repository ?

    Thanks again !

  6. #6
    Thecus Staff Thecus - Yvon's Avatar
    Join Date
    Apr 2007
    Posts
    937
    Thanks
    0
    Thanked
    8 times in 8 posts

    Re: N5200 - Fedora 7 NFS

    Dear Sir,

    On theory N5200 have the lockd service already, thus why we need the conf.bin to analysis. Also we are curious about what the difference if Fedora 7 running the lockd in the same time.

    Regarding to the SVNModule, we could refer to the Maintainer page Maintainer.
    http://onbeat.dk/thecus/index.php/User:Fre_ber

    Have a nice weekend,
    Yvon

  7. #7
    Registered User
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    I think we have the same issue. Brand new N5200PRO running firmware 2.00.01

    When you run rpcinfo -p against the NAS you see the status service missing. If I telnet onto the NAS and manually run the /opt/nfs-utils/sbin/rpc.statd file then all locking issues go away.

    I would surmise that a startup script in 2.00.01 is not starting statd properly. Unfortunately I don't know nearly enough about the particular flavour of Linux on the N5200PRO boxes to go any further. I would appreciate if you could tell me where this command would normally be run from so I can patch our NAS in advances of any corrected firmware.

  8. #8
    Registered User
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    Hi,

    I have the same problem on a recently N5200 nas system. My network is composed of ubuntu Desktop and debian distribution and i use several NFS export filesystem from the nas. (using RAID5, and firwmare 1.0.10)

    I discovered several problems regarding NFS.
    1/ Transfer becomes slow in the middle of a nfs copy .. after 5 seconds... it hangs up 10 seconds like on this thread : Thecus n5200 - Files / Folders / Transfer / AD Issues (29-08-2007)
    I would like to update to firmare 2.0.0.3beta but it seems that modules managment isn't fully working with this firware version.. and i need it (ssh/rsync). More over I see that the raid path has changed from /raid ro /raid0 too in the 2.x firmware version.
    I tried several nfs client option to check if it still hangs up (udp/tcp protocol, rsize and wsize from 8192 to 32k.. ) -> still the same problems.
    Could you give me some advice ? (raid path changed in firmware 2.x from /raid to /raid0 ?)
    Do i need to wait a final 2.x stable version ?

    2/ there seems to be a nfslock service problem on the n5200. Impossible to open OpenOffice document that check a lock file, and all the odt filss opened in read-only mode, altought the filesystem is in rw mode nad the permission are correctly set.
    I tried to run the /opt/nfs-utils/sbin/rpc.statd direectly on the n5200 and lock problems disappears.
    I tried to add the "nolock" option in the nfs mount option in the client, and it works but without lock file.
    It seems that the /img/bin/rc/nfslock shell script is buggy when i launch it manually on the n52000 : perhaps the problems come from therer, and the nfslock service does not start correctly at boot time.

    Hope it will help.

  9. #9
    Registered User
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    Hi,

    thanks for your feedback, I'm glad to hear that starting manually the stad service on N5200 makes the NFS lock system work. But I have one question :

    How do you connect to the via telnet to the N5200 ? I tried from windows CMD, it tells me it cannot connect to port 23. I've scanned the open port of N5200, and tried connecting via telnet on each of them and it don't works. And in the web configuration interface, I've founded nothing reguarding telnet connection ... By the way I have the 2.00.01 firmware.

    Thanks again,

    Laurent

  10. #10
    Registered User
    Join Date
    Oct 2007
    Posts
    10
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    I m using ssh module to connect to the n5200
    But with 2.00.01, nfs service is only working for 1 share folder
    and with 2.00.03, modules aren't working.

  11. #11
    Registered User
    Join Date
    Sep 2007
    Posts
    5
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    Ok, thanks for the tip, I'll look at the ssh module then..

    Laurent

  12. #12
    Registered+
    Join Date
    Jan 2008
    Posts
    82
    Thanks
    1
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    Hello all -
    I could not mount nfs on firmware version 2.00.01; But after upgrading to firmware version 2.00.03, I still cannot get nfs to mount:

    [root@linux-server ~]# mount -t nfs N5200_ip:/nfs01 /mnt/test
    mount: N5200_ip:/nfs01 failed, reason given by server: Permission denied

    Please continue to help. Thank you.

  13. #13
    Registered+
    Join Date
    Nov 2007
    Posts
    16
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    I also think that this is the same problem that I am having, still waiting on Thecus to confirm that there is a problem:

    The ticket I raised for this problem : SVX-41261-229.

  14. #14
    Registered+
    Join Date
    Jul 2007
    Posts
    52
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    ... please use:

    mount -t nfs N5200_ip:/raid0/data/nfs01 /mnt/test


    you have to give the full path name of the exported directory ;o)

    The folders NFS page on the N5200 actually shows the complete path name to use ... e.g.: Mount point: [/raid0/data/nfs01]

    /Falk

  15. #15
    Registered+
    Join Date
    Jan 2008
    Posts
    82
    Thanks
    1
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    Quote Originally Posted by fajo View Post
    ... please use:

    mount -t nfs N5200_ip:/raid0/data/nfs01 /mnt/test


    you have to give the full path name of the exported directory ;o)

    The folders NFS page on the N5200 actually shows the complete path name to use ... e.g.: Mount point: [/raid0/data/nfs01]

    /Falk
    Wow! Thanks for the path. It actually worked! The mount command took long, about 15 seconds or so, but it worked. So, how does we ended up with the /raid0/data/ in the path? I guess every 'folder' I created using the web access would be in this path?

    To push this further, I mounted the /raid0/data/nfs01 as root and created a junk.dir directory, file permission looked like this:
    drwxrwxrwx+ 2 root root 4096 Jan 7 2008 junk.dir

    Is the permission above the same as Unix/linux permission of 777 ???

    As a user, if I could not use the chmod -R command to change the any of the directory to the user's ownership. So, the plus sign at the end of the drwxrwxrwx+ must indicate something else beyond 777 ???

  16. #16
    Registered+
    Join Date
    Jul 2007
    Posts
    52
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: N5200 - Fedora 7 NFS

    ... relevant for this thread too

    The RPCSTATD module is now available for download from the Thecus WiKi

    N5200 Module List - Thecus Wiki

    The module will start rpc.statd only - hope Thecus will fix this with their NFS startup script soon.(which is /img/bin/rc/nfs by the way - not nfslock or whatever nfs* scripts one will find there ;o)

    /Falk

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •