we are seeing some delay ZFS writing.
We created a file of 1Gb on ZFS filesystem. then tried to see the disk usage of that file.
after the file creation command is executed, the file size of 650 MB initially and after few seconds it increased by few MB. and after another few seconds it shows 1GB. we are wondering where the file getting written to? and suppose if the system crashed before it writes to disk, what about the data consistency?
Here is the scenario we tested:
root@oranod2 # date;mkfile 1g new-to-be-deleted;date;du -sh new-to-be-deleted
Monday, January 3, 2011 06:33:16 PM AST
Monday, January 3, 2011 06:33:22 PM AST
650M new-to-be-deleted
root@oranod2 # date;du -sh new-to-be-deleted
Monday, January 3, 2011 06:33:29 PM AST
962M new-to-be-deleted
root@oranod2 # date;du -sh new-to-be-deleted
Monday, January 3, 2011 06:33:32 PM AST
962M new-to-be-deleted
root@oranod2 # date;du -sh new-to-be-deleted
Monday, January 3, 2011 06:33:37 PM AST
962M new-to-be-deleted
root@oranod2 # date;du -sh new-to-be-deleted
Monday, January 3, 2011 06:33:46 PM AST
962M new-to-be-deleted
root@oranod2 # date;du -sh new-to-be-deleted
Monday, January 3, 2011 06:34:14 PM AST
1.0G new-to-be-deleted
root@oranod2 #
please help us in resolving this issue. Please let us know if anything needs to be tunned at ZFS for directly to disk.