XFS

From ArchWiki
Revision as of 01:39, 16 July 2009 by Fukawi2 (Talk | contribs) (Fixed layout, punctuation etc)

Jump to: navigation, search

It seems even XFS file system needs defragmentation occasionally.

Inspect Fragmentation Levels

To see how much fragmentation your file system currently has:

xfs_db -c frag -r /dev/sda3
Note: Make sure you use the block device (eg, /dev/sda3) in the above command, and not the mount point (eg, /media/music)

Perform Defragmentation

To begin defragmentation, use the xfs_fsr command which is included with the "xfsdump" package.

  xfs_fsr /dev/sda3   
                   
Note: Make sure you use the block device (eg, /dev/sda3) in the above command, and not the mount point (eg, /media/music)