15

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?

1 Answer 1

28

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

XFS cannot be shrunk (ref).

4
  • 1
    +1 - there were some patches adding support for shrinking a filesystem, but they seem to have stalled now
    – James
    Dec 8, 2009 at 9:23
  • 1
    For RedHat (and CentOS) users, see RedHat's article 540013. Sep 30, 2015 at 9:19
  • 2
    Some documentation about XFS backup/dump/restore XFS Dump and Restore, and Red Hat 6 documentation Sep 30, 2015 at 9:28
  • 5
    @FranklinPiat, that Red Hat article requires a subscription for access.
    – Kevin
    Feb 21, 2017 at 21:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .