You are not logged in.

#1 2015-04-09 14:59:39

yorrd
Member
Registered: 2013-07-21
Posts: 71

[SOLVED] Autofs and my nfs drive

Preconditions:

I set up autofs according to the wiki,
set up my nfs server and
checked my nfs drive using showmount -e <ip>.

So far everything is good.

Running autofs, the /net directory stays empty and this appears in the log:

Apr 09 16:51:59 Kai_D_Mar15 sudo[2068]: pam_unix(sudo:session): session closed for user root
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: create_client: hostname lookup failed: Name or service not known
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: create_client: hostname lookup failed: Name or service not known
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: get_exports: lookup(hosts): exports lookup failed for .Trash
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: key ".Trash" not found in map source(s).
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: create_client: hostname lookup failed: Name or service not known
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: create_client: hostname lookup failed: Name or service not known
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: get_exports: lookup(hosts): exports lookup failed for .Trash-0
Apr 09 16:52:04 Kai_D_Mar15 automount[2077]: key ".Trash-0" not found in map source(s).
Apr 09 16:52:07 Kai_D_Mar15 automount[2077]: key ".Trash" not found in map source(s).
Apr 09 16:52:07 Kai_D_Mar15 automount[2077]: key ".Trash-0" not found in map source(s).

Can someone please tell me where I have to start looking? I'm at a dead end.

Last edited by yorrd (2015-04-12 10:36:36)

Offline

#2 2015-04-09 15:15:22

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,415

Re: [SOLVED] Autofs and my nfs drive

Are you using ip address for nfs or hostname?


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2015-04-09 15:24:51

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: [SOLVED] Autofs and my nfs drive

nomorewindows wrote:

Are you using ip address for nfs or hostname?

Am I missing something? I've just added "/net -hosts --timeout=60" to /etc/autofs/auto.master, expecting for it to search the network for possible nfs exports

Offline

#4 2015-04-09 17:09:37

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: [SOLVED] Autofs and my nfs drive

... and you reboot after the kernel update?

Offline

#5 2015-04-09 17:48:41

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: [SOLVED] Autofs and my nfs drive

satanselbow wrote:

... and you reboot after the kernel update?

Of course I did, thanks for asking though wink

Offline

#6 2015-04-09 19:41:45

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,415

Re: [SOLVED] Autofs and my nfs drive

Possible permission problem on your autofs configuration files?  You might even try systemd's automount feature.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#7 2015-04-09 23:02:17

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: [SOLVED] Autofs and my nfs drive

The config files are all set up like default and the directory is created by autofs, I don't know where it could possibly be wrong.

I don't want the systemd feature though big_smile Yes of course, I'll try that tomorrow, but it bugs me that it doesn't work the way it should.

I have tried this (manually setting the export dir instead of auto detecting): https://bbs.archlinux.org/viewtopic.php … 98#p874398. The output was very similar:

Apr 10 00:58:08 Kai_D_Mar15 automount[12343]: key ".Trash" not found in map source(s).
Apr 10 00:58:08 Kai_D_Mar15 automount[12343]: key ".Trash-0" not found in map source(s).

Offline

#8 2015-04-11 13:33:31

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Autofs and my nfs drive

Hi,

I think you have to have hosts or DNS entries for each of your hosts involved in your NFS set up for the autofs /net feature to work.

My guess with the ".Trash" errors is that you're using a file mangler to view your /net share, and the mangler is trying to find or create a directory called ".Trash", which causes autofs to try to mount ".Trash", which of course fails because there is no host called ".Trash".

Rob

Offline

#9 2015-04-11 19:48:29

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: [SOLVED] Autofs and my nfs drive

Painless wrote:

Hi,

I think you have to have hosts or DNS entries for each of your hosts involved in your NFS set up for the autofs /net feature to work.

My guess with the ".Trash" errors is that you're using a file mangler to view your /net share, and the mangler is trying to find or create a directory called ".Trash", which causes autofs to try to mount ".Trash", which of course fails because there is no host called ".Trash".

Rob

So how would I go about doing that? Adding those to the /etc/hosts file? If yes, in which format?

You're saying it scans the /net directory for things to mount? Would I have to create a directory with the name of my server then? Or what am I missing here?

Offline

#10 2015-04-11 21:44:57

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Autofs and my nfs drive

Hi,

Well, usual /etc/hosts format:

<IP_address> hostname

No, you wouldn't have to add any entries in /net.  Autofs will do that for you.  It's probably because your file manager is trying to "find a host" called ".Trash" that those errors crop up.

Just change directory into /net/<hostname>.

Rob

Offline

#11 2015-04-11 22:06:20

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: [SOLVED] Autofs and my nfs drive

Ok, then I didn't misunderstand that. My hostfile is updated now, but autofs doesn't change its behavior. There's still nothing in /net.

Ok that makes sense. Then I can probably ignore those errors though, right?

Still wondering why it doesn't find the export drives though...

Offline

#12 2015-04-11 23:06:08

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Autofs and my nfs drive

Open up a terminal and type:

cd /net/hostname

where the hostname is of the server which has the NFS exports

Offline

#13 2015-04-12 08:23:39

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: [SOLVED] Autofs and my nfs drive

Oh... I'm feeling kinda dumb now. So there's just no directory showing in my file manager. That would be kinda good though, how do I get my fm to show those directories (thunar)?

Last edited by yorrd (2015-04-12 08:24:18)

Offline

#14 2015-04-12 09:58:06

Painless
Member
Registered: 2006-02-06
Posts: 234

Re: [SOLVED] Autofs and my nfs drive

Hi,

Thunar is not really my thing.  Does this help? https://wiki.archlinux.org/index.php/Th … me_Manager

Edit: Also found this: https://wiki.archlinux.org/index.php/Th … _locations

Last edited by Painless (2015-04-12 10:01:20)

Offline

#15 2015-04-12 10:35:41

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: [SOLVED] Autofs and my nfs drive

Well thanks a bunch for your help guys, I basically got all I needed. I guess I'll ust use bookmarks for now, that should work fine. Again, thanks a lot, saved me a lot of trouble smile

Last edited by yorrd (2015-04-12 10:36:01)

Offline

Board footer

Powered by FluxBB