Working from a remote linux machine on a zfs fs that is an nfs mounted share (set for nfs availability on zfs server, mounted nfs on linux); I've been noticing a certain kind of sloth when messing with files.
What I see: After writing a file it seems to take the fs too long to be able to display the size correctly (with du). I'm wondering if I should be using some special flags either on the osol end or the linux end. Here is an example: rm -f file1; sleep 2;awk 'NR< 115000{print}' debug.log.6 >file1;du -sh file1;sleep 3;du -sh file1;sleep 3; du -sh file1; ls -l file1; sleep 10; du -sh file1 512 file1 <tested right away with du -sh> 512 file1 <checked after 3 seconds> 512 file1 <checked after 6 seconds> <long `ls -l' just to show the size du is failing to see> -rw-r--r-- 1 nobody nobody 10831062 Feb 21 12:33 file 512 file1 <final check after 16 seconds> Some time later the correct size becomes available... not sure how much. ------- --------- ---=--- --------- -------- If that line above gets too wrapped to understand easily it is: ## clear any file rm -f file ## brief sleep sleep 2 ## write a lot of lines to a file from some log file awk 'NR< 115000{print}' debug.log.6 >file ## check the size right away du -sh file ## sleep 3 seconds sleep 3 ## check size again du -sh file ## sleep 3 more seconds sleep 3 ## check size again du -sh file ## sleep a final 5 seconds sleep 10 ## Check on last time du -sh file _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss