13

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?

26

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

XFS cannot be shrunk (ref).

| improve this answer | |
  • 1
    +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
  • 2
    Some documentation about XFS backup/dump/restore XFS Dump and Restore, and Red Hat 6 documentation – Franklin Piat Sep 30 '15 at 9:28
  • 4
    @FranklinPiat, that Red Hat article requires a subscription for access. – Kevin Feb 21 '17 at 21:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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