Difference between revisions of "XFS"

From ArchWiki
Jump to: navigation, search
(Fixed layout, punctuation etc)
Line 1: Line 1:
It seems EVEN xfs file system needs defragmentation. To see how much fragments you have:
+
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              
+
  xfs_db -c frag -r /dev/sda3
(Note: NOT /media/Share!)
 
  
 +
{{note|Make sure you use the block device (eg, /dev/sda3) in the above command, and not the mount point (eg, /media/music)}}
  
2. To defragment, use xfs_fsr which is from package "xfsdump":
+
== Perform Defragmentation ==
  
 +
To begin defragmentation, use the xfs_fsr command which is included with the "xfsdump" package.
  
 
   xfs_fsr /dev/sda3   
 
   xfs_fsr /dev/sda3   
 
                      
 
                      
(Note: NOT /media/Share!)
+
{{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)