Question 530
At Delta Insurance, an administrator proposes shrinking an XFS filesystem to reduce its LVM volume before moving to a smaller disk. The issue recurred during a separate controlled validation window; administrators must preserve service continuity and verify the outcome. A colleague suggests: “Reduce the LV below filesystem size and trust XFS to shrink automatically.” Which flaw makes that recommendation inappropriate?
Explanation
Correct Answer
Check the filesystem's actual resize capabilities and use a supported migration or restore plan rather than online shrink. Verify that the new smaller target has a verified restored dataset and no unsupported XFS shrink was attempted.
Incorrect Answers
“Run resize2fs on a filesystem and assume underlying logical allocation grows without lvextend.” is a different mistake. The current issue is that XFS does not support ordinary filesystem shrinking and reducing the block device first risks data loss.
“Run lvextend repeatedly without adding any free extents to the full group.” is a different mistake. The current issue is that XFS does not support ordinary filesystem shrinking and reducing the block device first risks data loss.
“Assume a snapshot stored on the same failing volume group protects against all disk failures.” is a different mistake. The current issue is that XFS does not support ordinary filesystem shrinking and reducing the block device first risks data loss.