From: Steve Dickson <SteveD@redhat.com>
To: Jeff Layton <jlayton@redhat.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 2/7] clstated: reattempt the pipe open if it fails on ENOENT
Date: Wed, 14 Dec 2011 11:28:22 -0500 [thread overview]
Message-ID: <4EE8CEA6.7000001@RedHat.com> (raw)
In-Reply-To: <20111214110056.4832f52d@tlielax.poochiereds.net>
On 12/14/2011 11:00 AM, Jeff Layton wrote:
> On Wed, 14 Dec 2011 10:56:46 -0500
> Steve Dickson <SteveD@redhat.com> wrote:
>
>>
>>
>> On 12/14/2011 10:37 AM, Jeff Layton wrote:
>>> On Wed, 14 Dec 2011 10:29:49 -0500
>>> Steve Dickson <SteveD@redhat.com> wrote:
>>>
>>>>
>>>>
>>>> On 12/14/2011 10:19 AM, Jeff Layton wrote:
>>>>> On Wed, 14 Dec 2011 10:09:04 -0500
>>>>> Steve Dickson <SteveD@redhat.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On 12/14/2011 08:57 AM, Jeff Layton wrote:
>>>>>>> Generally, we want this daemon started before nfsd starts. Deal with the
>>>>>>> situation where the pipe hasn't shown up yet.
>>>>>> This can be done with your systemd start up script. Plus I'm not sure its
>>>>>> a good idea to steal cpu cycles waiting for an event that may never happen...
>>>>>>
>>>>>
>>>>> Presumably you just wouldn't start the daemon if you have no intent to
>>>>> use it.
>>>>>
>>>>> It does sleep 1s between each check, so the time is fairly minimal,
>>>>> but I'm definitely open to doing this differently. What may be
>>>>> reasonable is adding code to the daemon to check and see if the
>>>>> v4recoverydir is present. If it is, then just exit. Otherwise, wait for
>>>>> the pipe to show up.
>>>> Why just let the systemd scrips worry about the order of when to start
>>>> things up... To be honest, that is one thing systemd does do fairly well.
>>>>
>>>
>>> Because not everyone uses systemd, and we have to deal with the
>>> "legacy" case too for the transition phase.
>>>
>>> It's generally preferable not to start up nfsd until everything it
>>> needs is up. If we do what you suggest, then we're basically mandating
>>> that this daemon can't start until nfsd is up and running.
>> Order has ways been a part of how and when things are started which
>> have always been handled by initscripts. That's their job, to start
>> things in the correct order.
>>
>> I understand you want to make the daemon bullet proof... but starting
>> things up in the wrong order is an error... IMHO...
>>
>>>
>>> Could you give some details on how you think this ought to work?
>>>
>> I would think a error message stating unable to open whatever and then
>> say something like please make sure the nfs server is up and running,
>> would work... It seems to me this is a pretty common way of handling
>> this type of situation.... although I can not come up with a
>> explicit example, atm.
>>
>
> That's doable simply by dropping this patch. I think it'll make this
> more fragile, but if that's the consensus, I'll go along with it.
>
If that is the only fragile part then I you are in very good shape! ;-)
Thanks again!
steved.
next prev parent reply other threads:[~2011-12-14 16:28 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 13:57 [PATCH 0/7] clstated: add a daemon to track NFSv4 client names on stable storage (RFC) Jeff Layton
2011-12-14 13:57 ` [PATCH 1/7] clstated: add clname tracking daemon stub Jeff Layton
2011-12-14 13:57 ` [PATCH 2/7] clstated: reattempt the pipe open if it fails on ENOENT Jeff Layton
2011-12-14 15:09 ` Steve Dickson
2011-12-14 15:19 ` Jeff Layton
2011-12-14 15:29 ` Steve Dickson
2011-12-14 15:37 ` Jeff Layton
2011-12-14 15:56 ` Steve Dickson
2011-12-14 16:00 ` Jeff Layton
2011-12-14 16:28 ` Steve Dickson [this message]
2011-12-14 21:10 ` J. Bruce Fields
2011-12-14 21:20 ` Jeff Layton
2011-12-14 13:57 ` [PATCH 3/7] clstated: add autoconf goop for sqlite Jeff Layton
2011-12-14 13:57 ` [PATCH 4/7] clstated: add routines for a sqlite backend database Jeff Layton
2011-12-14 14:56 ` Chuck Lever
2011-12-14 15:14 ` Jeff Layton
2011-12-14 15:47 ` Chuck Lever
2011-12-14 16:15 ` Jeff Layton
2011-12-15 14:55 ` Chuck Lever
2011-12-15 15:04 ` Jeff Layton
2011-12-14 13:57 ` [PATCH 5/7] clstated: add remove functionality Jeff Layton
2011-12-14 13:57 ` [PATCH 6/7] clstated: add check/update functionality Jeff Layton
2011-12-14 13:57 ` [PATCH 7/7] clstated: add function to remove unreclaimed client records Jeff Layton
2011-12-14 15:23 ` [PATCH 0/7] clstated: add a daemon to track NFSv4 client names on stable storage (RFC) Steve Dickson
2011-12-14 15:32 ` Jeff Layton
2011-12-14 15:44 ` Steve Dickson
2011-12-14 16:05 ` Jeff Layton
2011-12-14 16:26 ` Steve Dickson
2011-12-14 16:34 ` Jeff Layton
2011-12-14 20:31 ` Steve Dickson
2011-12-14 21:06 ` Jeff Layton
2011-12-14 22:27 ` Steve Dickson
2011-12-15 1:46 ` Jeff Layton
2011-12-15 23:34 ` Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE8CEA6.7000001@RedHat.com \
--to=steved@redhat.com \
--cc=jlayton@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).