Linux NFS development
 help / color / mirror / Atom feed
From: Wendy Cheng <s.wendy.cheng@gmail.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: multiple instances of rpc.statd
Date: Sun, 27 Apr 2008 22:59:11 -0500	[thread overview]
Message-ID: <48154B8F.7050301@gmail.com> (raw)
In-Reply-To: <20080425220727.GA9597@fieldses.org>

J. Bruce Fields wrote:
> On Fri, Apr 25, 2008 at 09:47:03AM -0400, Wendy Cheng wrote:
>   
>> Bernd Schubert wrote:
>>     
>>> Hello,
>>>
>>> on servers with heartbeat managed resources one rather often has the 
>>> situation one exports different directories from different resources.
>>>
>>> It now may happen all resources are running on one host, but they can 
>>> also run from different hosts. The situation gets even more complicated 
>>> if the server is also a nfs client.
>>>
>>> In principle having different nfs resources works fine, only the statd 
>>> state directory is a problem. Or in principle the statd concept at all. 
>>> Actually we would need to have several instances of statd running using 
>>> different directories. These then would have to be migrated from one 
>>> server to the other on resource movement. However, as far I understand 
>>> it, there does not even exist the basic concept for this, doesn't it? 
>>>
>>>   
>>>       
>> The efforts have been attempted (to remedy this issue) and a complete  
>> set of patches have been (kept) submitting for the past two years. The   
>> patch acceptance progress is very slow (I guess people just don't want  
>> to get bothered with cluster issues ?).
>>     
>
> We definitely want to get this all figured out....
>
>   
>> Anyway, the kernel side has the basic infrastructure to handle the  
>> problem (it stores the incoming clients IP address as part of its  
>> book-keeping record) - just a little bit tweak will do the job. However,  
>> the user side statd directory needs to get re-structured. I didn't  
>> publish the user side directory structure script during my last round of  
>> submission. Forking statd into multiple threads do not solve all the  
>> issues. Check out:
>> https://www.redhat.com/archives/cluster-devel/2007-April/msg00028.html
>>     
>
> So for basic v2/v3 failover, what remains is some statd -H scripts, and
> some form of grace period control?  Is there anything else we're
> missing?
>
>
>   
The submitted patch set is reasonably complete ... .

There was another thought about statd patches though - mostly because of
the concerns over statd's responsiveness. It depended so much on network
status and clients' participations.  I was hoping NFS V4 would catch up
by the time v2/v3 grace period patches got accepted into mainline
kernel. Ideally the v2/v3 lock reclaiming logic could use (or at least
did a similar implementation) the communication channel established by
v4 servers - that is,

1. Enable grace period as previous submitted patches on secondary server.
2. Drop the locks on primary server (and chained the dropped locks into
a lock-list).
3. Send the lock-list via v4 communication channel (or similar
implementation) from primary server to backup server.
4. Reclaim the lock base on the lock-list on backup server.

In short, it would be nice to replace the existing statd lock reclaiming
logic with the above steps if all possible during active-active
failover. For reboot, on the other hand, should stay same as today's
statd logic without changes.

-- Wendy



  reply	other threads:[~2008-04-28  3:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-25 13:31 multiple instances of rpc.statd Bernd Schubert
     [not found] ` <200804251531.21035.bs-PKu+Ek1N2UGzQB+pC5nmwQ@public.gmane.org>
2008-04-25 13:47   ` Wendy Cheng
2008-04-25 14:30     ` Bernd Schubert
     [not found]       ` <200804251630.36917.bs-PKu+Ek1N2UGzQB+pC5nmwQ@public.gmane.org>
2008-04-25 15:39         ` Wendy Cheng
2008-04-25 22:07     ` J. Bruce Fields
2008-04-28  3:59       ` Wendy Cheng [this message]
2008-04-28 18:26         ` J. Bruce Fields
2008-04-28 19:19           ` Wendy Cheng
2008-04-29 16:20             ` J. Bruce Fields

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=48154B8F.7050301@gmail.com \
    --to=s.wendy.cheng@gmail.com \
    --cc=bfields@fieldses.org \
    --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