xfs_healer
xfs_healer
Posted Jan 23, 2026 18:36 UTC (Fri) by djwong (subscriber, #23506)Parent article: Filesystem medley: EROFS, NTFS, and XFS
For maximum repair abilities, you need to format the filesystem with reverse mapping and parent pointers enabled. This is the default in xfsprogs 6.18; for older versions you can pass “-m rmapbt=1 -n parent=1”. Don't do this if your kernel is older than 6.12; your distributor may not enable online fsck in their kernel configuration.
For self-repair, you also have to enable the xfs_healer_start service (“systemctl enable xfs_healer_start; systemctl start xfs_healer_start”), and set the autofsck property on each filesystem to the value “repair”, either by formatting with “-m autofsck=1” or via “xfs_property <mountpoint or device> set autofsck=repair”. Note that self-repair is still extremely experimental, so don't do this except on a test filesystem that you created by restoring a backup.
Complaints about xfs_healer should be sent to linux-xfs@vger.kernel.org so everyone can see how things are going.
