Hallo, Dirk! > Angeblich nutzt XFS ja als journalling-Option standardmäßig writeback. > Kann man das (und wenn ja: wie?) irgendwie umstellen auf die - so weit > ich das verstehe - sicherste Variante journal umstellen? Soweit ich das weiss, bietet XFS diese Option leider nicht (auch wenn ich sonst sehr gerne XFS einsetze), aber ich persönlich lebe lieber mit diesem Effekt als dem eines sich auflösenden Dateisystems (ext3 mit journal ist im Vergleich doch deutlich langsamer - und ähnliche Effekte entstehen bei Stromausfall dennoch). Aus der XFS-FAQ: Q: Why do I see binary NULLS in some files after recovery when I unplugged the power? XFS journals metadata updates, not data updates. After a crash you are supposed to get a consistent filesystem which looks like the state sometime shortly before the crash, NOT what the in memory image looked like the instant before the crash. Since XFS does not write data out immediately unless you tell it to with fsync, an O_SYNC or O_DIRECT open (the same is true of other filesystems), you are looking at an inode which was flushed out, but whose data was not. Typically you'll find that the inode is not taking any space since all it has is a size but no extents allocated (try examining the file with the xfs_bmap(8) command). > Und: kann man irgendwie die beim crash modifizierten/zerstörten Dateien > herausfinden? Ob das von Haus aus geht weiss ich leider nicht, zumindest nicht dass ich das jetzt aus dem Kopf wüsste. Aber nach einem Stromausfall ist so oder so vorsicht geboten, dass ich dazu übergegangen bin, die entsprechenden Dateien danach erstmal zu überprüfen. Spiele gerade mit ZFS, das soll ja auch dagegen immun sein. Cheers, Jan
Attachment:
signature.asc
Description: PGP signature
Attachment:
signature.asc
Description: OpenPGP digital signature