Difference between revisions of "XFS"

From ArchWiki
Jump to: navigation, search
(Fixed layout, punctuation etc)
m
Line 13: Line 13:
  
 
   xfs_fsr /dev/sda3   
 
   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)}}
 
{{note|Make sure you use the block device (eg, /dev/sda3) in the above command, and not the mount point (eg, /media/music)}}

Revision as of 01:39, 16 July 2009

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)