Re: [zfs-discuss] Transaction consistency of ZFS

2009-12-05 Thread nxyyt
The "rename trick" may not work here. Even if I renamed the file successfully, the data of the file may still reside in the memory instead of flushing back to the disk. If I made any mistake here, please correct me. Thank you! I'll try to find out whether ZFS binding the same file always to the

Re: [zfs-discuss] Transaction consistency of ZFS

2009-12-05 Thread nxyyt
Thank you very much for your quick response. My question is I want to figure out whether there is data loss after power outage. I have replicas on other machines so I can recovery from the data loss. But I need a way to know whether there is data loss without comparing the different data repli

[zfs-discuss] Transaction consistency of ZFS

2009-12-05 Thread nxyyt
Hi, everybody, I'm a newbie to ZFS. I have a special question against the COW transaction of ZFS. Does ZFS keeps the sequential consistency when it meets power outage or server crash? Assume following scenario: My application has only a single thread and it appends the data to the file contin