# XFS Fragmentation

**URL:** <https://forums.suse.com/t/xfs-fragmentation/29140>\
**Category:** SLES Configure-Administer\
**Created:** [December 18, 2016, 5:45pm UTC](https://forums.suse.com/t/xfs-fragmentation/29140 "2016-12-18T17:45:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![duwallace](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@duwallace](https://forums.suse.com/u/duwallace)\
**Post date:** [December 18, 2016, 5:45pm UTC](https://forums.suse.com/t/xfs-fragmentation/29140/1 "2016-12-18T17:45:07Z")

</div>

After running xfs\_db to check fragmentation of one of our file system /dev/sda4 it showed 70.8% fragmentation. Due to production we could not run the xfs\_fsr and reboot the server until a few day later. Prior to executing xfs\_fsr on /dev/sda4, I rechecked it with xfs\_db and it showed only 12.5%. I know the system wasn’t rebooted and that no one else executed a defragmentation. Is it possible that this is result of files that were heavily fragmented having been deleted?

Also, it seems that it is necessary to reboot to see the affects of xfs\_fsr, is there any other way?

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [December 21, 2016, 7:51pm UTC](https://forums.suse.com/t/xfs-fragmentation/29140/2 "2016-12-21T19:51:32Z")

</div>

It’s been a few days and I see that no one has offered a solution…

This is outside my area of expertise but I did locate this which may help:  
[  
How To Defragment An XFS File System](https://www.rootusers.com/how-to-defragment-an-xfs-file-system/)
