You are not logged in.
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
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
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
... and you reboot after the kernel update?
Offline
... and you reboot after the kernel update?
Of course I did, thanks for asking though
Offline
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
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 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
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
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
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
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
Open up a terminal and type:
cd /net/hostname
where the hostname is of the server which has the NFS exports
Offline
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
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
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
Last edited by yorrd (2015-04-12 10:36:01)
Offline