LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2010, 12:39 PM   #1
maccas17
Member
 
Registered: May 2010
Location: UK
Distribution: RHEL6
Posts: 70

Rep: Reputation: 11
automount of Windows share - hostname resolution issue?


Hi,

I'm a bit rusty on configuring AutoFS - I basically want to mount any Windows share from a system on my RHEL 5.4 system.

I got a bit stuck and checked my logic against:

http://www.howtoforge.com/accessing_...s_using_autofs

I'm now using their auto.cifs file instead of the supplied auto.smb. Everything seems set ok, but when I do a listing of:

/mountpoint/windowsserver

I get a ": No such file or directory" error. I've enabled debug on AutoFS and I think it is a name resolution issue as the error I have is:

Sep 24 18:25:06 linuxbox automount[7657]: attempting to mount entry /mnt/windowsserver
Sep 24 18:25:06 linuxbox automount[7657]: lookup_mount: lookup(program): looking up windowsserver
Sep 24 18:25:29 linuxbox automount[7657]: lookup(program): lookup for windowsserver failed
Sep 24 18:25:29 linuxbox automount[7657]: dev_ioctl_send_fail: token = 15
Sep 24 18:25:29 linuxbox automount[7657]: failed to mount /mnt/windowsserver


The system does not have access to DNS or NIS; the windowsserver is configured in /etc/hosts. I checked nsswitch.conf and I have:

automount: files nisplus

So I'm not sure why it is still struggling to resolve the Windows server (ping works fine to the hostname) - any ideas or suggestions?

Thanks
 
Old 10-01-2010, 10:08 AM   #2
maccas17
Member
 
Registered: May 2010
Location: UK
Distribution: RHEL6
Posts: 70

Original Poster
Rep: Reputation: 11
I solved my issue. I checked what the share names and client name was using smbclient

smbclient -L //windowsserver

The server name it gave was different than the alias I was using. So I added this name as an alias in my /etc/hosts and it then worked ok. So it would seem the fact the alias name I was using and the actual windows server hostname did not match was the cause of this problem.
 
  


Reply



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
trying to automount an NFS share shahz Linux - Server 10 07-22-2009 05:30 AM
How to automount the nfs share in Mandriva 2007.1 deepugopi Linux - Server 4 10-12-2007 09:51 PM
Share Won't Automount Ingla Linux - General 1 08-07-2007 11:41 AM
How To Automount Localnetwork Share Files? linzz Ubuntu 1 04-25-2007 06:30 PM
X-Windows DNS Domain Resolution issue RichardStern Linux - Networking 1 07-14-2005 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:01 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