[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



If speed is a lesser concern, consider using the -sync mount option. 
Not sure what filesystems support that, or maybe it is a generic Linux
thing so all of them do.  I do know that XFS supports it.

The -sync option is supposed to tell the entire FS/partition to ensure
data is flushed from cache prior to returning from write() calls.  You
would also want to disable any controller/disk write caches you have.

If that is too unwieldy for you, I think you can use the chattr
command to set a file-by-file flag that enables sync.  That way any
specific files you want to protect should not return from write()
calls until their data is flushed from cache.

As I recall, chattr is only documented to work with ext2/ext3, but
support has also been in XFS for a while now.

FYI: Without the use of the above, I would consider XFS my last choice
for surviving unclean powerdowns.  It has a very bad reputation.

FYI2: there was recent thread about all this on the XFS mailing list. 
It had a little more information than the above.

Greg


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00159" href="msg00159.html">[ale] Best FS to use when doing unclean shutdowns?</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00163" href="msg00163.html">[ale] Best FS to use when doing unclean shutdowns?</a></strong>
<ul><li><em>From:</em> CMorlan at filink.com (Claudia Morlan)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00165.html">[ale] Best FS to use when doing unclean shutdowns?</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00171.html">[ale] Best FS to use when doing unclean shutdowns?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00165.html">[ale] Best FS to use when doing unclean shutdowns?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00167.html">[ale] Best FS to use when doing unclean shutdowns?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00166"><strong>Date</strong></a></li>
<li><a href="threads.html#00166"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>