Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: NIS+NFS: mount request from unknown host

  1. #1

    Default NIS+NFS: mount request from unknown host

    Hi!

    I've a Opensuse 11.1 (i know, i must upgrade it) server for some ubuntu clients.
    Clients are autenticated by nis and mount the directory with automount by nfs. All was working fine but after an update i have an error:

    Code:
    Nov 27 02:01:00 tutatis kernel: svc: 192.168.2.60, port=884: unknown version (4 for prog 100003, nfsd)
    Nov 27 02:01:00 tutatis mountd[8229]: mount request from unknown host 192.168.2.60 for /home/fperal (/home/fperal)

    My /etc/exports on the server includes this line

    Code:
    /home   192.168.2.*(rw,async,no_subtree_check)

    it's a dns problem or is something related to nfs?


    regards

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,853

    Default Re: NIS+NFS: mount request from unknown host

    On 2012-11-27 02:16, fperal wrote:
    >
    > Hi!
    >
    > I've a Opensuse 11.1 (i know, i must upgrade it) server for some ubuntu
    > clients.


    Mmmm

    > Clients are autenticated by nis and mount the directory with automount
    > by nfs. All was working fine but after an update i have an error:


    After an update? :-O
    Impossible, there are no updates to 11.1. What could you possibly update?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  3. #3

    Default Re: NIS+NFS: mount request from unknown host

    Quote Originally Posted by robin_listas View Post
    On 2012-11-27 02:16, fperal wrote:

    > Clients are autenticated by nis and mount the directory with automount
    > by nfs. All was working fine but after an update i have an error:


    After an update? :-O
    Impossible, there are no updates to 11.1. What could you possibly update?
    Yes. Samba was failing. Updates was not working because end of life. So I was researching and I found that there was a evergreen project, so i counfigured the evergreen repo and I did a zypper dup


    regards

  4. #4

    Default Re: NIS+NFS: mount request from unknown host

    Your report is very ambiguous...

    fperal wrote:
    > Hi!
    >
    > I've a Opensuse 11.1 (i know, i must upgrade it) server for some ubuntu
    > clients.


    What version of Ubuntu?

    > Clients are autenticated by nis and mount the directory with automount
    > by nfs. All was working fine but after an update i have an error:
    >
    >
    > Code:
    > --------------------
    >
    > Nov 27 02:01:00 tutatis kernel: svc: 192.168.2.60, port=884: unknown version (4 for prog 100003, nfsd)
    > Nov 27 02:01:00 tutatis mountd[8229]: mount request from unknown host 192.168.2.60 for /home/fperal (/home/fperal)
    >
    > --------------------


    Which machine is that? Server or a client?

    > My /etc/exports on the server includes this line
    >
    > Code:
    > --------------------
    >
    > /home 192.168.2.*(rw,async,no_subtree_check)
    >
    > --------------------


    But what about the config on the client?

    > it's a dns problem or is something related to nfs?


    I would guess that you were using NFS v3 and either the server or client
    has tried to switch to NFS v4 (as per error message). Find out what and
    where and switch it back to v3. Alternatively, upgrade *all* the systems
    to recent versions and you could try v4 but you will probably have to
    extensively modify your config files as well.

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,853

    Default Re: NIS+NFS: mount request from unknown host

    On 2012-11-27 08:36, fperal wrote:

    > Yes. Samba was failing. Updates was not working because end of life. So
    > I was researching and I found that there was a evergreen project, so i
    > counfigured the evergreen repo and I did a zypper dup


    zypper dup... hum, that's dangerous. Plain "up" should be it.

    In any case, I concur with Dave diagnostics.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  6. #6
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    14,092
    Blog Entries
    12

    Default Re: NIS+NFS: mount request from unknown host

    Whilst agreeing to the things writen above, this might help:

    Look for "DefaultVers" in the nfs config files. Uncomment it, and set it's value to "3". IIRC 11.1 is not going to work with NFS version 4.
    - Athlon X6 3.6 GHz, 16 GB DDR3, 64 GB SSD, 3 TB of disks, GT540, openSUSE Factory + KDE
    - ASUS A73SD, Intel + GT610M Optimus, 6 GB, 2 x 120 GB SSD, openSUSE Factory + KDE

    Anything that can go wrong.... will teach us

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  7. #7

    Default Re: NIS+NFS: mount request from unknown host

    Quote Originally Posted by djh-novell View Post
    Your report is very ambiguous...

    fperal wrote:
    > Hi!
    >
    > I've a Opensuse 11.1 (i know, i must upgrade it) server for some ubuntu
    > clients.


    What version of Ubuntu?
    12.04


    > Clients are autenticated by nis and mount the directory with automount
    > by nfs. All was working fine but after an update i have an error:
    >
    >
    > Code:
    > --------------------
    >
    > Nov 27 02:01:00 tutatis kernel: svc: 192.168.2.60, port=884: unknown version (4 for prog 100003, nfsd)
    > Nov 27 02:01:00 tutatis mountd[8229]: mount request from unknown host 192.168.2.60 for /home/fperal (/home/fperal)
    >
    > --------------------


    Which machine is that? Server or a client?
    the server




    > My /etc/exports on the server includes this line
    >
    > Code:
    > --------------------
    >
    > /home 192.168.2.*(rw,async,no_subtree_check)
    >
    > --------------------


    But what about the config on the client?


    we haven't changed anything on the clients. It was working two days ago.

    This is /etc/nsswitch.conf
    Code:
        # /etc/nsswitch.conf
    
      #
      # Example configuration of GNU Name Service Switch functionality.
      # If you have the `glibc-doc-reference' and `info' packages installed, try:
      # `info libc "Name Service Switch"' for information about this file.
      
    
      passwd:         compat nis
      group:          compat nis
      shadow:         compat nis
      
    
      hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4 nis
      networks:       files nis
      
    
      protocols:      db files nis
      services:       db files nis
      ethers:         db files nis
      rpc:            db files nis
      
    
      netgroup:       nis

    and yp.conf
    Code:
    #
    # yp.conf       Configuration file for the ypbind process. You can define
    #               NIS servers manually here if they can't be found by
    #               broadcasting on the local net (which is the default).
    #
    #               See the manual page of ypbind for the syntax of this file.
    #
    # IMPORTANT:    For the "ypserver", use IP addresses, or make sure that
    #               the host is in /etc/hosts. This file is only interpreted
    #               once, and if DNS isn't reachable yet the ypserver cannot
    #               be resolved and ypbind won't ever bind to the server.
    
    # ypserver ypserver.network.com
    ypserver 192.168.2.2
    The following files end with a + followed by some : (as in brackets)

    /etc/passwd (6) /etc/group (3) /etc/shadow (8) and /etc/gshadow (3)

    These are /etc/auto.master and /etc/auto.home

    Code:
    root@PC1410:/# cat /etc/auto.master
    #
    # Sample auto.master file
    # This is an automounter map and it has the following format
    # key [ -mount-options-separated-by-comma ] location
    # For details of the format look at autofs(5).
    #
    #/misc  /etc/auto.misc
    #
    # NOTE: mounts done from a hosts map will be mounted with the
    #       "nosuid" and "nodev" options unless the "suid" and "dev"
    #       options are explicitly given.
    #
    #/net   -hosts
    #
    # Include central master map if it can be found using
    # nsswitch sources.
    #
    # Note that if there are entries for /net or /misc (as
    # above) in the included master map any keys that are the
    # same will not be seen as the first read key seen takes
    # precedence.
    #
    /home      /etc/auto.home
    
    +auto.master
    
    root@PC1410:/# cat /etc/auto.home  
    *   192.168.2.2:/home/&
    root@PC1410:/#


    NIS is working fine, the sistem ypcat passwd gives me the whole user list on the server and the ubuntu machine let me login with any nis user, but then it fails mounting my home







    > it's a dns problem or is something related to nfs?


    I would guess that you were using NFS v3 and either the server or client
    has tried to switch to NFS v4 (as per error message). Find out what and
    where and switch it back to v3. Alternatively, upgrade *all* the systems
    to recent versions and you could try v4 but you will probably have to
    extensively modify your config files as well.

    Ok, will try that way


    thank you

  8. #8

    Default Re: NIS+NFS: mount request from unknown host

    Quote Originally Posted by Knurpht View Post
    Whilst agreeing to the things writen above, this might help:

    Look for "DefaultVers" in the nfs config files. Uncomment it, and set it's value to "3". IIRC 11.1 is not going to work with NFS version 4.

    On the server, with yast I've unchecked NFSv4.

    Triying to mount from the client

    Code:
    root@PC1410:/etc# mount tutatis:/home /home -o vers=3,proto=udp
    mount.nfs: access denied by server while mounting tutatis:/home
    and the server "replies" (in /var/log/messages )

    Code:
    Nov 27 13:17:28 tutatis mountd[8229]: mount request from unknown host 192.168.2.60 for /home (/home)
    and with NFSv4

    Code:
    root@PC1410:/etc# mount tutatis:/home /home -o vers=4,proto=udp
    mount.nfs: Protocol not supported

    the server replies
    Code:
    Nov 27 13:18:30 tutatis kernel: svc: 192.168.2.60, port=1022: unknown version (4 for prog 100003, nfsd)

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,853

    Default Re: NIS+NFS: mount request from unknown host

    On 2012-11-27 13:26, fperal wrote:

    > On the server, with yast I've unchecked NFSv4.


    Once the initial setting has been done, switch to edit the config files
    directly.


    > and the server "replies" (in /var/log/messages )
    >
    >
    > Code:
    > --------------------
    > Nov 27 13:17:28 tutatis mountd[8229]: mount request from unknown host 192.168.2.60 for /home (/home)
    > --------------------



    I think this means that reverse DNS is not working, but I'm unsure.
    Google it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  10. #10

    Default Re: NIS+NFS: mount request from unknown host

    Carlos E. R. wrote:
    > On 2012-11-27 13:26, fperal wrote:
    >> and the server "replies" (in /var/log/messages )
    >>
    >> Code:
    >> --------------------
    >> Nov 27 13:17:28 tutatis mountd[8229]: mount request from unknown host 192.168.2.60 for /home (/home)
    >> --------------------

    >
    > I think this means that reverse DNS is not working, but I'm unsure.
    > Google it.


    I don't think it is DNS. It is a misleading error message. See here for
    example:

    https://bugzilla.redhat.com/show_bug.cgi?id=463578

    But in any case /etc/exports is using IP addresses, not domain names, so
    there is no DNS lookup.

    > My /etc/exports on the server includes this line
    > /home 192.168.2.*(rw,async,no_subtree_check)


    I'm not sure that a * is allowed like that. I can't find any such
    examples. You can use NIS netgroups, or you can use IP address/netmask.
    But that wouldn't account for why it ever worked????


Page 1 of 2 12 LastLast

Posting Permissions

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