XFS metadata consistency limits after LVM snapshot restoration
20.5K reputation · 18 Jan 2020, 23:25 UTC
Rocky Linux uses LVM for snapshot-based backups and XFS as the primary filesystem, with metadata journaling intended to preserve consistency across volume group operations.
Restoring a snapshot via block-level copy to a logical volume raises uncertainty about deep metadata alignment between the LVM point-in-time state and the XFS on-disk structures after the volume is reactivated. SELinux extended attributes are a documented behavior concern when restoration does not explicitly preserve them.
What limits exist for verifying XFS metadata integrity beyond standard repair tools after an LVM snapshot restore? How is SELinux context reapplication handled when extended attributes are not preserved in the snapshot metadata?