FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 11-11-2011, 06:43 PM
Hugh Caley
 
Default autofs doesn't work automatically with NIS mounts; workarounds?

I can't get autofs to work with my NIS mount maps automatically.*
Once I'm up, if I restart autofs (reload doesn't work) it will then
work properly.



I've tried various workarounds I've found on the Internet but they
don't seem to work or aren't practical; for instance, I set



NETWORKWAIT=yes



in /etc/sysconfig/network, didn't help.



I could put a long sleep in the autofs startup script to get it to
wait until networking was actually up, but this seems clumsy at
best.



Any other thoughts?* As I understand it, this is an issue with
NetworkManager startup returning successfully before the interface
is up, so there is no networking available when autofs gets started.




Hugh

*

--

Hugh Caley


Linux System Administrator


Aldon Business Area

Rocket Software


6001 Shellmound St. Ste. 600 Emeryville, CA 94608 USA


Tel:+1.510.285.8542


Email:hcaley@aldon.com


Web:aldon.com



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-11-2011, 06:48 PM
Michael Cronenworth
 
Default autofs doesn't work automatically with NIS mounts; workarounds?

Hugh Caley wrote:
> Any other thoughts? As I understand it, this is an issue with
> NetworkManager startup returning successfully before the interface is
> up, so there is no networking available when autofs gets started.

It sounds like an existing bug. There fix seems to be in comment #12.

https://bugzilla.redhat.com/show_bug.cgi?id=709637
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-11-2011, 06:49 PM
Richard Shaw
 
Default autofs doesn't work automatically with NIS mounts; workarounds?

On Fri, Nov 11, 2011 at 1:43 PM, Hugh Caley <hcaley@rocketsoftware.com> wrote:
> I can't get autofs to work with my NIS mount maps automatically.* Once I'm
> up, if I restart autofs (reload doesn't work) it will then work properly.
>
> I've tried various workarounds I've found on the Internet but they don't
> seem to work or aren't practical; for instance, I set
>
> NETWORKWAIT=yes
>
> in /etc/sysconfig/network, didn't help.
>
> I could put a long sleep in the autofs startup script to get it to wait
> until networking was actually up, but this seems clumsy at best.
>
> Any other thoughts?* As I understand it, this is an issue with
> NetworkManager startup returning successfully before the interface is up, so
> there is no networking available when autofs gets started.

Do you have the network connection in NetworkManager set to connect at
startup? Or does someone have to login first?

Richard
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-14-2011, 07:14 PM
Hugh Caley
 
Default autofs doesn't work automatically with NIS mounts; workarounds?

> [root at naxos ~]# cat /etc/rc.d/rc.local
> #!/bin/sh
> service ypbind stop; sleep 2
> service autofs stop; sleep 2
> service ypbind start; sleep 2
> service autofs start; sleep 2

I do something similar, but I modify it thusly:

/bin/bash -c 'sleep 5 ; service ypbind restart' & < /dev/null > /dev/null 2>&1

That way rc.local doesn't hang, and ypbind gets restarted
in the background.



This actually seems to do it.* Found it on the Internet somewhere:



To make systemd wait for the the connection to be online, simply
enable NetworkManager-wait-online.service:

systemctl enable NetworkManager-wait-online.service





Hugh



--

Hugh Caley


Linux System Administrator


Aldon Business Area

Rocket Software


6001 Shellmound St. Ste. 600 Emeryville, CA 94608 USA


Tel:+1.510.285.8542


Email:hcaley@aldon.com


Web:aldon.com



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-14-2011, 07:33 PM
Joe Zeff
 
Default autofs doesn't work automatically with NIS mounts; workarounds?

On 11/14/2011 12:14 PM, Hugh Caley wrote:
> To make systemd wait for the the connection to be online, simply enable
> NetworkManager-wait-online.service:
> systemctl enable NetworkManager-wait-online.service

OMG! That actually sounds reasonable! Now, the only question is why it
isn't enabled by default.[1]

[1]OK, how many of you oldpharts out there were thinking that the
question was, "Are you old enough for Granny Goose?"
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 10:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org