LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2018, 09:15 AM   #1
bluepinky
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Rep: Reputation: Disabled
get_exports: lookup(hosts): exports lookup failed for $HOSTNAME


I recently retired a RH Linux system and now /var/log/messages error'ing with the following automount error

get_exports: lookup(hosts): exports lookup failed for "$hostname"

key "$hostname" not found in map source(s)

The system didnt have any directories exported from the $host and there is not host mappings under my configured path from auto.master.

How can I stop this repeated logging?
 
Old 02-19-2018, 09:23 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
auto.master calls other map files. Make sure you look in the other map files it is calling for $host.

Verify the mount isn't specified in /etc/fstab.

It is possible you had $host hard mounted when you stopped things so it didn't unmount cleanly. Look in /etc/mtab to see what it thinks is mounted via NFS. You can try "umount -f" (force) on any mount seen and if that doesn't work try "umount -l" (lazy). Note: Do NOT edit mtab.
 
Old 02-19-2018, 09:28 AM   #3
bluepinky
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
No nothing in fstab, mtab, or exports thats whats puzzling. The system was a desktop client that didnt have any exported filesystems
 
Old 02-19-2018, 09:44 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I'm confused. You said you retired the system then in latest used the past tense about the system. Where exactly are you seeing these messages?

Do you literally see "$host" or are you using that to obfuscate the real name of the host.

What OS (distro and version) is on the system where you're seeing the error (not the one you retired)?

This bug may be relevant:
https://bugzilla.redhat.com/show_bug.cgi?id=1038356
 
Old 02-19-2018, 09:56 AM   #5
bluepinky
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry didnt mean to confuse the situation.

I retired (powered off) a system (linux desktop client) named testmachine1. This machine used automount to mount /drive1 only.

No other nfs.

Now the server that hosts /drive1 which is exported is giving the errors in /var/log/messages

get_exports: lookup(hosts): exports lookup failed for testmachine1 key "testmachine1" not found in map source(s)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hostname lookup failure chandrait2004 Linux - Newbie 3 06-23-2011 03:23 PM
[SOLVED] autofs hostname lookup failed: Name or service not known SciFi-Bob Linux - Server 2 10-26-2010 07:38 PM
Internal Hostname Lookup divot_powell Linux - Networking 1 10-18-2009 02:15 PM
Lookup hostname from IP address Geneset Linux - Networking 5 08-26-2008 05:03 AM
/etc/hosts lookup error millertime Linux - Networking 9 08-06-2004 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration