Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2010 12:49:15 -0700
From:      Sean Bruno <seanbru@yahoo-inc.com>
To:        Garrett Cooper <gcooper@FreeBSD.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@FreeBSD.org>, "sbruno@freebsd.org" <sbruno@FreeBSD.org>, Scott Long <scottl@samsco.org>, "N.J. Mann" <njm@njm.me.uk>
Subject:   Re: /etc/rc.d/mountcritremote
Message-ID:  <1283284155.3665.71.camel@home-yahoo>
In-Reply-To: <AANLkTimzUf7Db=ZZM%2Br7F5QDpRtRAhVxJN_HSKT2_ZH5@mail.gmail.com>
References:  <1283271393.3665.13.camel@home-yahoo> <20100831162947.GA61795@titania.njm.me.uk> <1283279563.3665.66.camel@home-yahoo> <AANLkTimzUf7Db=ZZM%2Br7F5QDpRtRAhVxJN_HSKT2_ZH5@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2010-08-31 at 12:27 -0700, Garrett Cooper wrote:
> On Tue, Aug 31, 2010 at 11:32 AM, Sean Bruno <seanbru@yahoo-inc.com> wrote:
> > On Tue, 2010-08-31 at 09:29 -0700, N.J. Mann wrote:
> >> In message <1283271393.3665.13.camel@home-yahoo>,
> >>       Sean Bruno (seanbru@yahoo-inc.com) wrote:
> >> > An issue in testing came up where we were trying to mount NFS
> >> > directories from the same server, i.e. a machine trying to mount an NFS
> >> > dir on itself.
> >> >
> >> > Because mountcritremote runs before the NFS server is up, we modified
> >> > the REQUIRES section and appended nfsd.
> >>
> >> Is this not what the 'late' attribute in /etc/fstab is for?
> >>
> >> e.g.
> >>
> >> oberon% grep /usr/ports /etc/fstab
> >> oberon:/export/usr/ports   /usr/ports   nfs   late,rw,tcp
> 
> Specifying `late' seems extremely unnecessary for NFS mounts. If
> mountcritremote can't properly depend on nmbd, nfsd, smbd for mounting
> filesystems, then it seems like a rc script dependency issue
> (otherwise, mountcritremote is basically mountcritlocal, waiting for
> some networking connectivity to come up, right?).

Yup.  That's my impression.  In my user's application, they have 100's
of NFS mounts, of which ONE is a local-to-the-server mount.  So, in this
case, I don't really want to delay the mounting, 

I want the mounting to succeed at the time mountcritremote is invoked.
The user application is doing something silly and severely knuckle
headed, but it seems it should work in the way I propose instead of
mounting late in "mountlate"

However, I'm pretty ignorant of the dependencies in the system of rc
scripts.  There may be dragons here.

Sean

Sean




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1283284155.3665.71.camel>