Skip to contentSkip to conversation

exportfs -f question

DISCUSSION Frank van Maarseveen 1 participant 1 message May 14, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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)

Signature · 10 lines
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  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs