Theoretically, XFS is "corruption-proof" but there are several preconditions that must be fulfilled before this can be relied upon:
- disk controller must be in "write through" mode
- alternatively, if the controller is in "write back" mode, it must be equipped with a Battery Back Up (BBU)
- if relying on "write back" mode with BBU, the battery in BBU must be in good condition
- even if the BBU battery is in good condition, it can only preserve the filesystem journal for so long
- the filesystem must not be mounted with the "nobarrier" mount option
If you experience a power outage or other crash, and XFS filesystems fail to mount afterwards, please double-check that these conditions were fulfilled before opening a bug against XFS or any systems, such as Ceph, that rely on XFS filesystem consistency.
Also, in any bug you open, provide detailed information about your disk controller, how it is configured, presence of BBU and state of the battery, how long the power was out, etc.