Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 0/2] NLM failover unlock
@ 2008-01-07  5:31 Wendy Cheng
  2008-02-14 18:38 ` Bob Bell
  0 siblings, 1 reply; 7+ messages in thread
From: Wendy Cheng @ 2008-01-07  5:31 UTC (permalink / raw)
  To: NFS list; +Cc: cluster-devel

This submission is part of the patch sets added to support NFS server 
failover where the specified export is moved from one physical server to 
another. The technical discussions can be found at cluster-devel mailing 
list archives:
https://www.redhat.com/archives/cluster-devel/2007-April/msg00028.html

The implementation has not changed much since first RFC. The external 
interfaces, however, have been revised several times. During latest code 
review, it was suggested using export path name as the interface. The 
idea was subsequently prototyped but found difficult to implement. The 
killing issue is the existing lockd reclaim code structure on backup 
server. The associated export path name is difficult to retrieve (based 
on client svc_rqst structure) when the reclaim call is invoked. The 
details is explained in:
[1] http://people.redhat.com/wcheng/Patches/NFS/NLM/004.txt

Nevertheless, as commented by few IT folks who are current managing NFS 
servers on daily basis, the lock dropping feature itself is useful, 
regardless failover and/or cluster setup. This new patch set allows 
system administrator (or cluster user mode applications) to drop NLM 
lock on server based on any one of the following two criteria:

   o Server in-bound IP address
   o Export path name (with restriction - see above [1] for details)

The reclaiming grace period can only be set based on server in-bound IP 
address and the associated patch set will be submitted after this patch 
set is settled and accepted.

-- Wendy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] NLM failover unlock
  2008-01-07  5:31 [PATCH 0/2] NLM failover unlock Wendy Cheng
@ 2008-02-14 18:38 ` Bob Bell
       [not found]   ` <20080214183833.GA26936-y89O8yXFYpDSsb2jM9SCN5/hYUUxywnI@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Bob Bell @ 2008-02-14 18:38 UTC (permalink / raw)
  To: Wendy Cheng; +Cc: NFS list

On Mon, Jan 07, 2008 at 12:31:09AM -0500, Wendy Cheng wrote:
>This submission is part of the patch sets added to support NFS server 
>failover where the specified export is moved from one physical server 
>to another.

Wendy,

What's the current status of these patches?  I believe I have 
a situation that could benefit from being able to release all NLM locks 
on an exported filesystem.

-- 
Bob Bell

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] NLM failover unlock
       [not found]   ` <20080214183833.GA26936-y89O8yXFYpDSsb2jM9SCN5/hYUUxywnI@public.gmane.org>
@ 2008-02-14 19:04     ` Wendy Cheng
  2008-02-15 16:20       ` J. Bruce Fields
  0 siblings, 1 reply; 7+ messages in thread
From: Wendy Cheng @ 2008-02-14 19:04 UTC (permalink / raw)
  To: Bob Bell, J. Bruce Fields; +Cc: NFS list

Bob Bell wrote:
> On Mon, Jan 07, 2008 at 12:31:09AM -0500, Wendy Cheng wrote:
>> This submission is part of the patch sets added to support NFS server 
>> failover where the specified export is moved from one physical server 
>> to another.
>
> Wendy,
>
> What's the current status of these patches?  I believe I have a 
> situation that could benefit from being able to release all NLM locks 
> on an exported filesystem.
>
I think Bruce has queued the unlock patch for 2.6.26 (Bruce ?) ..

-- Wendy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] NLM failover unlock
  2008-02-14 19:04     ` Wendy Cheng
@ 2008-02-15 16:20       ` J. Bruce Fields
  2008-02-15 16:30         ` Chuck Lever
  2008-02-15 17:25         ` Wendy Cheng
  0 siblings, 2 replies; 7+ messages in thread
From: J. Bruce Fields @ 2008-02-15 16:20 UTC (permalink / raw)
  To: Wendy Cheng; +Cc: Bob Bell, NFS list

On Thu, Feb 14, 2008 at 02:04:28PM -0500, Wendy Cheng wrote:
> Bob Bell wrote:
>> On Mon, Jan 07, 2008 at 12:31:09AM -0500, Wendy Cheng wrote:
>>> This submission is part of the patch sets added to support NFS server 
>>> failover where the specified export is moved from one physical server 
>>> to another.
>>
>> Wendy,
>>
>> What's the current status of these patches?  I believe I have a  
>> situation that could benefit from being able to release all NLM locks  
>> on an exported filesystem.
>>
> I think Bruce has queued the unlock patch for 2.6.26 (Bruce ?) ..

Not yet, for several reasons.  First, there's two smaller problems
outstanding that I can recall:

	- We should be matching on the superblock, not the vfs mount.
	  Otherwise, for example, the unlock will have no effect if it's
	  done from a private namespace, which I think will be
	  unexpected.  Arguably this could result in revoking more locks
	  than necessary, but if the goal is to allow unmounting some
	  shared block device, then that's what we've got to do.
	- Let's get the address types right.  I think the concensus from
	  previous discussions was just to use in6_addr everywhere?

(Both those should be relatively small-let me know if you can resend
fixed versions or if you'd like me to fix them up--either's fine.)

As I've said before I'd also like to see how this will fit into a
solution for some longer-term problems:

	- How will we block locks on other nodes of a cluster filesystem
	  during grace periods/failover?
	- How will the comparable v4 references to the filesystem (from
	  opens and locks) be revoked?

I'm working on those (some patches are in

	git://linux-nfs.org/~bfields/linux.git failover

but it's still at an early stage.)  But I don't want the perfect to be
the enemy of the good, so, sure, if it looks like that's not going to be
figured out by 2.6.26 then I'll queue up this unlock patch before then.

We do need at least the small problems above fixed, though.

Also, are you planning to address the comments on the grace period
patches, or do you want me to take over revising them?

--b.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] NLM failover unlock
  2008-02-15 16:20       ` J. Bruce Fields
@ 2008-02-15 16:30         ` Chuck Lever
  2008-02-15 16:36           ` J. Bruce Fields
  2008-02-15 17:25         ` Wendy Cheng
  1 sibling, 1 reply; 7+ messages in thread
From: Chuck Lever @ 2008-02-15 16:30 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Wendy Cheng, Bob Bell, NFS list

On Feb 15, 2008, at 11:20 AM, J. Bruce Fields wrote:
> On Thu, Feb 14, 2008 at 02:04:28PM -0500, Wendy Cheng wrote:
>> Bob Bell wrote:
>>> On Mon, Jan 07, 2008 at 12:31:09AM -0500, Wendy Cheng wrote:
>>>> This submission is part of the patch sets added to support NFS  
>>>> server
>>>> failover where the specified export is moved from one physical  
>>>> server
>>>> to another.
>>>
>>> Wendy,
>>>
>>> What's the current status of these patches?  I believe I have a
>>> situation that could benefit from being able to release all NLM  
>>> locks
>>> on an exported filesystem.
>>>
>> I think Bruce has queued the unlock patch for 2.6.26 (Bruce ?) ..
>
> Not yet, for several reasons.  First, there's two smaller problems
> outstanding that I can recall:
>
> 	- We should be matching on the superblock, not the vfs mount.
> 	  Otherwise, for example, the unlock will have no effect if it's
> 	  done from a private namespace, which I think will be
> 	  unexpected.  Arguably this could result in revoking more locks
> 	  than necessary, but if the goal is to allow unmounting some
> 	  shared block device, then that's what we've got to do.
> 	- Let's get the address types right.  I think the concensus from
> 	  previous discussions was just to use in6_addr everywhere?

I thought the consensus was use in_addr everywhere, and let me worry  
about converting these to in6_addr as part of the NLM IPv6 work.

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] NLM failover unlock
  2008-02-15 16:30         ` Chuck Lever
@ 2008-02-15 16:36           ` J. Bruce Fields
  0 siblings, 0 replies; 7+ messages in thread
From: J. Bruce Fields @ 2008-02-15 16:36 UTC (permalink / raw)
  To: Chuck Lever; +Cc: Wendy Cheng, Bob Bell, NFS list

On Fri, Feb 15, 2008 at 11:30:04AM -0500, Chuck Lever wrote:
> On Feb 15, 2008, at 11:20 AM, J. Bruce Fields wrote:
>> On Thu, Feb 14, 2008 at 02:04:28PM -0500, Wendy Cheng wrote:
>>> Bob Bell wrote:
>>>> On Mon, Jan 07, 2008 at 12:31:09AM -0500, Wendy Cheng wrote:
>>>>> This submission is part of the patch sets added to support NFS  
>>>>> server
>>>>> failover where the specified export is moved from one physical  
>>>>> server
>>>>> to another.
>>>>
>>>> Wendy,
>>>>
>>>> What's the current status of these patches?  I believe I have a
>>>> situation that could benefit from being able to release all NLM  
>>>> locks
>>>> on an exported filesystem.
>>>>
>>> I think Bruce has queued the unlock patch for 2.6.26 (Bruce ?) ..
>>
>> Not yet, for several reasons.  First, there's two smaller problems
>> outstanding that I can recall:
>>
>> 	- We should be matching on the superblock, not the vfs mount.
>> 	  Otherwise, for example, the unlock will have no effect if it's
>> 	  done from a private namespace, which I think will be
>> 	  unexpected.  Arguably this could result in revoking more locks
>> 	  than necessary, but if the goal is to allow unmounting some
>> 	  shared block device, then that's what we've got to do.
>> 	- Let's get the address types right.  I think the concensus from
>> 	  previous discussions was just to use in6_addr everywhere?
>
> I thought the consensus was use in_addr everywhere, and let me worry  
> about converting these to in6_addr as part of the NLM IPv6 work.

OK, that'd be fine too.

--b.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] NLM failover unlock
  2008-02-15 16:20       ` J. Bruce Fields
  2008-02-15 16:30         ` Chuck Lever
@ 2008-02-15 17:25         ` Wendy Cheng
  1 sibling, 0 replies; 7+ messages in thread
From: Wendy Cheng @ 2008-02-15 17:25 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: Bob Bell, NFS list

J. Bruce Fields wrote:
> Also, are you planning to address the comments on the grace period
> patches, or do you want me to take over revising them
>   

You're welcome to take over the revising tasks !

-- Wendy


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-15 17:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-07  5:31 [PATCH 0/2] NLM failover unlock Wendy Cheng
2008-02-14 18:38 ` Bob Bell
     [not found]   ` <20080214183833.GA26936-y89O8yXFYpDSsb2jM9SCN5/hYUUxywnI@public.gmane.org>
2008-02-14 19:04     ` Wendy Cheng
2008-02-15 16:20       ` J. Bruce Fields
2008-02-15 16:30         ` Chuck Lever
2008-02-15 16:36           ` J. Bruce Fields
2008-02-15 17:25         ` Wendy Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox