Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ZFS delay writing Behaviour

810076Jan 9 2011 — edited Jan 22 2011
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2011
Added on Jan 9 2011
4 comments
339 views