Re: NFS mount in /etc/fstab - race condition?



drew einhorn wrote:
I have several boxes with the following line in /etc/fstab:

garcon:/export/home /home nfs
rsize=1024,wsize=1024 0 0

It works as expected on all my boxes, except for the fastest one,
which does not mount /home on boot. I'm guessing the system is
trying the mount on /home before nfs has completely woken up.


I believe you are seeing the same problem we have had with
automount. Its not before nfs has woken up, its before the
network comes up. It used to be that the networking init
script would wait for the network to come up. But to speed
up boot thats no longer true. upstart is eventually
supposed to fix that, but I would file a bug anyway.

As for a fix, create an init script that runs at the end of
boot and runs mount -a or put the following in
/etc/init.d/networking at the end of the start section.

while ( ! ( ifconfig eth0 | grep -q 'inet addr' ) ); do
sleep 1
somevar=`echo "$somevar + 1" | bc`
if [ $somevar -eq 180 ]; then
break
fi
done



--
Scott Henson
LCSEE Systems Staff
WVU MAE Undergraduate
Ubuntu User


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Corrupted Harddrive?
    ... a Chkdsk with Repair or Fix as that might fix the drive, ... drive that would not boot or mount. ... computer stops at the copywrite screen for the manufacturer ... At bottom it says select F12 to choose boot ...
    (microsoft.public.windowsxp.general)
  • Re: Boot hangs at "/bin/sh?", cant see USB keyboard
    ... bootable FreeBSD disk, boot from it, then mount the hard drive and fix ... Any CD from 5.X onwards should mount UFS2 partitions even if you are running some later OS version. ... a 5.X CD might even be preferred since it has the boot option you want. ...
    (freebsd-questions)
  • Problems booting after new motherboard - label /1 not found
    ... I have been using FC4 as a MythTV box for 18 months or so now and all has been well. ... Booting the kernel. ... mount: error 2 mounting ext3 ... The other volume I have is the data volume and is JFS on LVM, this I guess is where the error occurred during mount so is probably not really an issue at the moment, as the boot and root partitions are fine. ...
    (Fedora)
  • Re: fsck at boot, skip a disk ?
    ... I just noticed something stupid of the Fedora boot. ... At boot, fsck stops and drops me a line or I mount ... This will boot the system with just the "/" file system mounted. ... Also note that the when the list of file system types after the -t ...
    (Fedora)
  • Re: password recovery in RAID1
    ... boot cdrom -s ... mount my secondary device /a ... (add a password to root) ... mirror, however other mirror shall be intact. ...
    (SunManagers)