Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an xfs filesystem that has some free space. Can I shrink it? I know of xfs_growfs. And there is resize2fs and resize_reiserfs.

Side question: is xfs not a good filesystem choice for bulk longterm file storage?

share|improve this question
up vote 16 down vote accepted

You can make a backup, and then create a new smaller file system and restore.

XFS cannot be shrunk (ref).

share|improve this answer
+1 - there were some patches adding support for shrinking a filesystem, but they seem to have stalled now – James Dec 8 '09 at 9:23
For RedHat (and CentOS) users, see RedHat's article 540013. – Franklin Piat Sep 30 '15 at 9:19
Some documentation about XFS backup/dump/restore XFS Dump and Restore, and Red Hat 6 documentation – Franklin Piat Sep 30 '15 at 9:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.