If you used a virtual IP address per export you could use Ganesha's HA release 
IP and take IP. Those will clean up all the state. 

But that would still leave global file descriptors open so we still need 
something to flush all of those for export without unexport. The only trouble 
is we will still have an fd open on the root of the export. That is only closed 
with unexport. So if you can't mount the file system on the new node without 
unmount on the old that would be a problem. 

Maybe we could add a quiesce export that is almost like unexport but it returns 
 NFS4ERR_DELAY or juke box instead of stale. 

Frank

Sent from my iPhone

> On Oct 5, 2017, at 6:21 PM, Malahal Naineni <mala...@gmail.com> wrote:
> 
> Use update export available in 2.5.
> 
>> On Thu, Oct 5, 2017 at 10:05 PM Pradeep <pradeeptho...@gmail.com> wrote:
>> Hello,
>> 
>> If we were to refresh an existing NFS export (meaning cleanup all MDCACHE 
>> entries in that export and release all FSAL object handles), we could use 
>> the DBUS interface RemoveExport and AddExport. One problem with this 
>> approach is that right after RemoveExport, all in-flight requests will start 
>> receiving ESTALE error. Is there a way to pause all transports in TIRPC, so 
>> that we can block requests for this duration? The flow will be something 
>> like this:
>> 
>> - Pause all transports.
>> - Drain in-flight requests.
>> - RemoveExport
>> - AddExport
>> 
>> Alternative is to restart ganesha process which will block I/Os for the 
>> 'grace' period which is not ideal.
>> 
>> Thanks,
>> Pradeep
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! 
>> http://sdm.link/slashdot_______________________________________________
>> Nfs-ganesha-devel mailing list
>> Nfs-ganesha-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Nfs-ganesha-devel mailing list
> Nfs-ganesha-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to