nfs strange failures (getfh, linux server, solaris client)

Discussion in 'Linux Networking' started by Chris Phillips, Jun 30, 2004.

  1. So, I'm perplexed. I have a server, running Mandrake 10.0 (community),
    that is providing NIS and NFS services to a handful of Solaris 9
    clients.

    The problem is that one of the clients cannot mount anything from the
    server, but other clients can, and the faulty client is able to mount
    from other servers. Let me outline a bit.

    Machines:
    server1
    server2
    client1
    client2
    client3

    Server1 is the server I was speaking about above, providing NIS and
    NFS to the clients in the network. Server2 is another machine in the
    building, not actually supposed to be involved in the network, but I'm
    using it for testing. Both servers are running Mandrake 10.

    Client1 is the new client, which is unable to mount anything from
    Server1. Client2 has been setup for a couple of days, and is working
    correctly (mounting properly). Client 3 is in a separate setup state,
    but is also working correctly. All three clients are running Solaris
    9.

    Here is the /etc/exports on server1
    /home 10.22.0.0/16(no_root_squash,rw,async)
    /home -root=10.22.0.0/16(async)
    /var/suns/usr/local 10.22.0.0/16(no_root_squash,rw,async)
    /var/suns/usr/local -root=10.22.0.0/16(async)
    /tmp 10.22.0.0/16(ro)

    Here is the /etc/vfstab from all of the clients:
    fd - /dev/fd fd - no -
    /proc - /proc proc - no -
    /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1
    no -
    server1:/home - /home nfs - yes -
    server1:/var/suns/usr/local - /usr/local nfs - yes -
    swap - /tmp tmpfs - yes -


    Client1 gets the following error message when trying to mount any of
    the exports from Server1:
    nvs mount: server1:/home: Permission denied
    nfs mount: server1:/var/suns/usr/local: Permission denied

    Here is the tail of /var/log/messages on Server1
    Jun 30 11:16:49 wardrobe rpc.mountd: authenticated mount request from
    :983 for /home (/home)
    Jun 30 11:16:49 wardrobe rpc.mountd: getfh failed: Operation not
    permitted
    Jun 30 11:16:49 wardrobe rpc.mountd: authenticated mount request from
    :985 for /var/suns/usr/local (/var/suns/usr/local)
    Jun 30 11:16:49 wardrobe rpc.mountd: getfh failed: Operation not
    permitted


    Client1 is able to mount anything exported by Server2. And Server2,
    Client2, and Client3 are able to mount everything exported by Server1.
    The only failures are when Client1 tries to mount anything from
    Server1.

    Any ideas are greatly appriciated!

    Chris Phillips
     
    Chris Phillips, Jun 30, 2004
    #1
    1. Advertisements

  2. Nevermind on all of that - I figured it out. Client 1 was not in the
    hosts file of server1. Putting it in fixed the problem... of course
    server2 wasn't there either... and client 1 wasn't in server2's hosts
    file...

    Chris Phillips
     
    Chris Phillips, Jul 1, 2004
    #2
    1. Advertisements

  3. Chris Phillips

    Juhan Leemet Guest

    Now I'm confused. You said you had NIS. Why aren't you using NIS to
    resolve the host names on all your machines? One place to setup/fix. You
    might have to adjust your /etc/nsswitch.conf to add nis in there.
     
    Juhan Leemet, Jul 1, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.