exportfs -f question
Subsystems (2)
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) = 0I 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