First NFS entry in fstab not mounting at boot

Sam Sharpe lists.redhat at samsharpe.net
Sun May 16 15:33:54 UTC 2010


On 16 May 2010 16:18, BadMagic <badmagic at foo-unix.org> wrote:
> On 05/17/2010 12:43 AM, Mike Chambers wrote:
>> On Mon, 2010-05-17 at 00:20 +1000, BadMagic wrote:
>>
>>> On 05/17/2010 12:16 AM, Tim wrote:
>>>
>>>> On Sun, 2010-05-16 at 22:05 +1000, BadMagic wrote:
>>>>
>>>>
>>>>> Basically, whichever entry goes first, doesn't get mounted.
>>>>>
>>>>>
>>>> Are the clients connecting to the network using network manager?
>>>> Perhaps the network isn't up at the time the first mount is attempted,
>>>> but is by the time the next two are.
>>>>
>>>>
>>>>
>>> Possible - if this were the problem, what can be
>>> done to investigate/fix this?
>>>
>> Can you move them further down the fstab list and see what happens?
>> Like put them at the very end or further down than that if already
>> there?
>>
>>
> They're at the bottom already. I've just re-edited fstab - everything's
> ok in there and it's still happening.
>
> The only possibility is as previously suggested, the network isn't up
> for the first entry. Is there some way to tell Network Manager to
> kick-off earlier? Change something in /etc/init.d/NetworkManager or
> something?

Is the "netfs" service running, and is it running after NetworkManager?

On my F12 system, NetworkManager should be first, as it has a priority of 23:

[sam at samlap ~ ]$ grep chkconfig /etc/init.d/netfs
# chkconfig: 345 25 75
[sam at samlap ~ ]$ grep chkconfig /etc/init.d/NetworkManager
# chkconfig: - 23 84

However, inspection of my system reveals that is not the case -
NetworkManager is enabled after netfs:

[sam at samlap ~ ]$ ls /etc/rc5.d/S*netfs
/etc/rc5.d/S25netfs
[sam at samlap ~ ]$ ls /etc/rc5.d/S*NetworkManager
/etc/rc5.d/S27NetworkManager

It appears like somewhere down the line, NetworkManager changed
priority. I can fix that with the services equivalent of "turning off
and on again"

[sam at samlap ~ ]$ sudo chkconfig NetworkManager off
[sudo] password for sam:
[sam at samlap ~ ]$ sudo chkconfig --del NetworkManager
[sam at samlap ~ ]$ sudo chkconfig --add NetworkManager
[sam at samlap ~ ]$ sudo chkconfig NetworkManager on
[sam at samlap ~ ]$ ls /etc/rc5.d/S*NetworkManager
/etc/rc5.d/S23NetworkManager

So, check that your "netfs" service on the clients runs before
NetworkManager - it should, but as my Laptop shows, it may not be.

--
Sam


More information about the users mailing list