Page 11 of 53 FirstFirst ... 91011121321 ... LastLast
Results 101 to 110 of 521

Thread: HOWTO: NFS Server/Client

  1. #101
    Join Date
    Jan 2006
    Beans
    226
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: NFS Server/Client

    Hi all,

    I followed this howto and didn't get it working, for some reason I really can't understand.

    This is the message i get when trying to mount:

    Code:
    mount to NFS server '192.168.2.222' failed: server is down.
    Obviously the server is not "down", as you can see in this ps -A | grep nfs output:

    Code:
     2781 ?        00:00:00 nfsd
     2782 ?        00:00:00 nfsd
     2783 ?        00:00:00 nfsd
     2784 ?        00:00:00 nfsd
     2785 ?        00:00:00 nfsd
     2786 ?        00:00:00 nfsd
     2787 ?        00:00:00 nfsd
     2788 ?        00:00:00 nfsd
    Let's see if somebody can help me a little

    Here goes my exports file in the server:

    Code:
    /mnt/disc200/compartida 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/autocad 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/batxillerat 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/ESO 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/fotografia 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/primaria 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/Server/Documents 192.168.2.1/24(rw,no_root_squash,async)
    And here goes the line in the fstab file of the client machine:

    Code:
    192.168.2.222:/mnt/disc200/compartida   /media/compartida/      nfs     rsize=8192,wsize=8192,timeo=14,intr
    Thanks in advance!
    RatPoison - Say GoodBye to the Rodent

    Official Homepage
    Ratpoison Wiki

  2. #102
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: HOWTO: NFS Server/Client

    Quote Originally Posted by ]Nbx*cmD[ View Post
    Hi all,

    I followed this howto and didn't get it working, for some reason I really can't understand.

    This is the message i get when trying to mount:

    Code:
    mount to NFS server '192.168.2.222' failed: server is down.
    Obviously the server is not "down", as you can see in this ps -A | grep nfs output:

    Code:
     2781 ?        00:00:00 nfsd
     2782 ?        00:00:00 nfsd
     2783 ?        00:00:00 nfsd
     2784 ?        00:00:00 nfsd
     2785 ?        00:00:00 nfsd
     2786 ?        00:00:00 nfsd
     2787 ?        00:00:00 nfsd
     2788 ?        00:00:00 nfsd
    Let's see if somebody can help me a little

    Here goes my exports file in the server:

    Code:
    /mnt/disc200/compartida 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/autocad 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/batxillerat 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/ESO 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/fotografia 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/disc200/primaria 192.168.2.1/24(rw,no_root_squash,async)
    /mnt/Server/Documents 192.168.2.1/24(rw,no_root_squash,async)
    And here goes the line in the fstab file of the client machine:

    Code:
    192.168.2.222:/mnt/disc200/compartida   /media/compartida/      nfs     rsize=8192,wsize=8192,timeo=14,intr
    Thanks in advance!
    on the client, do you have a mount point called /mnt/disc200/compartida? if not, there is your problem. and from the looks of your fstab, that's what's wrong. also, did you make sure you did

    sudo exportfs -a

    from the server cause it appears as though the server is not working. did you do

    sudo apt-get install nfs-kernel-server nfs-common portmap

    not to mention you have a trailing slash (/) on the end of your client's mount point (/media/compartida/ versus /media/compartida )

    I would just suggest following the guide verbatim and then post back.

  3. #103
    Join Date
    Jan 2006
    Beans
    226
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: NFS Server/Client

    I guess you mean if i have a mount point called /media/compartida, since the /mnt/disc200/compartida directory is on the server, that's why i added "/mnt/disc200/compartida 192.168.2.1/24(rw,no_root_squash,async)" to the exports file. Well, of course i do have that dir and that mount point on the server and the client respectively.

    I did "exportfs -a" and it worked, and as you can see from the ps output, the server is running... so, if your solutions are exhaustive, it could only be the slash (and i hope so!) but, sincerely, most of the times "/foo/bar/" and "/foo/bar" are exactly the same... so it'd seem strange to me also, the error message says "server is down", while if it was an error from the client i guess it would say something like "mount point not found".

    Anyway, now i'm at home, but tomorrow i'll try it at work and give you feedback, thanks a lot!
    RatPoison - Say GoodBye to the Rodent

    Official Homepage
    Ratpoison Wiki

  4. #104
    Join Date
    Jan 2006
    Beans
    226
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: NFS Server/Client

    So as I suspected, the slash has absolutely nothing to do with the problem.

    Actually some of the other lines of fstab mounting some partitions finish with a slash as well and work perfectly.

    Does somebody have a clue about it? thanks!
    RatPoison - Say GoodBye to the Rodent

    Official Homepage
    Ratpoison Wiki

  5. #105
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: HOWTO: NFS Server/Client

    as I stated, it appears as though your mount points are not matching up. according to the instructions, your mount point and the mount point your exporting need to be the same and your's are not. (mnt blah blah versus media blah blah) you wouldn't think that that would be it but it's worth a try right?

    Also, here are some common Gotcha's for running NFS.

    Ownership represented by numeric UID/GID values, which correspond to logins viathe /etc/passwd file on both client and server!(What if UIDs don't match?)

    Security is a problem (e.g., can chown be used to give files away?).See Unix System Security Checklist for details.

    NFS is a "stateless" protocol. What happens if the server goes down?

    "NFS: stale file handle" error message means re-mount file systems

    "Hard mount" is "Energizer Bunny" mode. Client keeps trying, and trying, and trying.... Unless interrupts allowed, client will "hang" until server comes back up

    "Soft mount" means client gets an error message.

    File locking can be a problem.

    Easy to "waste" bandwidth by transferring files twice!(e.g., ftp to/from an NFS mounted file system on a client)

    Forgetting to use -xdev (or -mount, etc)., when using find.

    Differences in maximum block sizes between client/server file systems can cause programs to crash

  6. #106
    Join Date
    Jan 2006
    Beans
    226
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: NFS Server/Client

    Tried it, not working either

    I needed to have the system working for today so i did it using smbfs, thanks anyway!
    RatPoison - Say GoodBye to the Rodent

    Official Homepage
    Ratpoison Wiki

  7. #107
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: HOWTO: NFS Server/Client

    Quote Originally Posted by ]Nbx*cmD[ View Post
    Tried it, not working either

    I needed to have the system working for today so i did it using smbfs, thanks anyway!
    I can tell ya right now that cifs works better than smbfs in my own experience. it's to bad that you couldnt' troubleshoot longer and figure out what's wrong because the guide does work so if you're using feisty it's possible that something happened to NFS in Feisty

  8. #108
    Join Date
    Jan 2006
    Beans
    226
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: NFS Server/Client

    yeah, you know... companies put pressure

    I'll keep investigating though, the thing is that the server is not running ubuntu but debian, so maybe the guide doesn't exactly fit it... when i have time and the server is not to be used for a while i'll try installing feisty server.
    RatPoison - Say GoodBye to the Rodent

    Official Homepage
    Ratpoison Wiki

  9. #109
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,280
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: HOWTO: NFS Server/Client

    according to a more general NFS server guide, you should run this

    rpcinfo -p

    to see if the server is running the correct services. you should see something like this returned.
    program vers proto port
    100000 2 tcp 111 portmapper
    100000 2 udp 111 portmapper
    100011 1 udp 749 rquotad
    100011 2 udp 749 rquotad
    100005 1 udp 759 mountd
    100005 1 tcp 761 mountd
    100005 2 udp 764 mountd
    100005 2 tcp 766 mountd
    100005 3 udp 769 mountd
    100005 3 tcp 771 mountd
    100003 2 udp 2049 nfs
    100003 3 udp 2049 nfs
    300019 1 tcp 830 amd
    300019 1 udp 831 amd
    100024 1 udp 944 status
    100024 1 tcp 946 status
    100021 1 udp 1042 nlockmgr
    100021 3 udp 1042 nlockmgr
    100021 4 udp 1042 nlockmgr
    100021 1 tcp 1629 nlockmgr
    100021 3 tcp 1629 nlockmgr
    100021 4 tcp 1629 nlockmgr

    this is all according to this guide: http://tldp.org/HOWTO/NFS-HOWTO/server.html#VERIFY

    good luck

  10. #110
    Join Date
    Feb 2007
    Beans
    871
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: NFS Server/Client

    I have used this setup before and it worked great with my 100 meg router. I have since changed over to a 1gig router and three out of my four computers have 1 gig ethernet ports. I'm having trouble with the files stalling during copy & pasting. The transfer with work for 2 - 3 seconds and stalls for 10 - 15 seconds. This cycle continues until it is finished. Tis scenario happens between any computer ie 1 gig to 1 gig or 1 gig to 100 meg. Is there anything that needs to be setup differently since I changed routers or something else?
    Thanks

Page 11 of 53 FirstFirst ... 91011121321 ... LastLast

Bookmarks

Posting Permissions

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