All of lore.kernel.org
 help / color / mirror / Atom feed
* exportfs -f question
@ 2007-05-14 18:28 Frank van Maarseveen
  0 siblings, 0 replies; only message in thread
From: Frank van Maarseveen @ 2007-05-14 18:28 UTC (permalink / raw)
  To: Linux NFS mailing list

I have a server which exports 20-30 local filesystems, each with a
different fsid=<decimal-ip-address> option. eth0 on the server has one
additional ip address for every export. Apart from NLM issues mentioned
earlier on this list, what is the best way to drop caches to be able to
umount one exported mount-point on the server?

Right now I do a

	ip addr del... (remove ip address to block traffic for this export)
	exportfs -f
	umount /exported-mountpoint

but since exportfs -f does a

	time(NULL)                              = 1179165584
	open("/proc/net/rpc/auth.unix.ip/flush", O_RDWR) = 3
	write(3, "1179165584\n", 11)            = 11
	close(3)                                = 0
	open("/proc/net/rpc/nfsd.export/flush", O_RDWR) = 3
	write(3, "1179165584\n", 11)            = 11
	close(3)                                = 0
	open("/proc/net/rpc/nfsd.fh/flush", O_RDWR) = 3
	write(3, "1179165584\n", 11)            = 11
	close(3)                                = 0

I wonder if:

-	can above umount fail due to a race with in-kernel operations?
-	is there a more efficient way to flush cached filehandles
	for a specific export or fsid?
	(I have no clue about performance penalty for the other exports)


-- 
Frank

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-14 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-14 18:28 exportfs -f question Frank van Maarseveen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.