[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#772342: debian-edu-config: mounting homedirs via NFS doesn't work reliably

On Wed, Dec 10, 2014 at 10:23:35PM +0100, Wolfgang Schweer wrote:
> On Sat, Dec 06, 2014 at 02:58:29PM +0100, Wolfgang Schweer wrote:
> > 
> > NFS mount from tjener seems to work only ramdomly. This happens even 
> > after 'autofs reload' was added to dhclient exit hooks.
> Seems to be that in addition to autofs nslcd is playing only randomly 
> right, too. After a new installation of a main server and a workstation 
> (installed via PXE using d-i-8.0 daily netboot.tar.gz) NFS mount worked 
> out of the box yesterday -- but failed today.

Fed up with the randomness, I added some commands to the client's 
/etc/rc.local file as a workaround to be able to test the system.

#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

systemctl restart nfs-common
systemctl restart autofs
systemctl stop nslcd
systemctl start nslcd

exit 0

I rebooted the client two times and controlled /var/log/syslog each 
time. The first time nslcd failed to daemonize but NFS mounting home 
worked due to nslcd being started from rc.local; second time the 
workaround wouldn't have been needed cause nslcd behaved nicely from the 


Attachment: signature.asc
Description: Digital signature

Reply to: