Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XFS Drives high disk fragmentation

Featured Replies

So I've read up on people running the following commands

xfs_db -r /dev/md# (where # = whichever disk you want to mount to inspect)

From there you can run "Frag" to see the fragmentation on the disk. 

I have 8 drives (7 drives 1 parity).  All are roughly 8TB.  The lowest one is 6.7TB used and the most full is 7.2TB.  When I ran a frag check, I was getting fragmentation at 97.5% on the least fragmented drive, with the highest being over 98%.  Most of the articles/reddit/forum posts I see have people talking about anything over say 60% is high enough to make them defrag.  Where as a lot of people are at like 40% or well under.

With mine being at 97-98%... is there any good way to defrag them all at once, rather than running this method one drive at a time?  I understand this can take many days to run, per disk.  Just curious what the best approach or method would be. 

  • Community Expert
43 minutes ago, Meller said:

is there any good way to defrag them all at once

Only if you disable parity, or it would be hammered and take much longer. 

  • Author

Ok, if I didn't disable parity... how would I go about defragging them in the best method?  Is one at a time still the only route?

  • Community Expert
32 minutes ago, Meller said:

  Is one at a time still the only route?

With parity is what I would recommend.

 

 

  • Author

Ok, if I disabled parity... how would I go about defragging them in the best method?  Is one at a time still the only route?

  • Community Expert

If you disable parity you can defrag them all the same time.

Have you see this thread?

 

 

Unless things have changed in the last five years, it hardly seems worth the effort. You might make better use of the time simply copying files sequentially from one disk to another. I personally think it's a non-issue anyway.

 

  • 4 weeks later...
  • Author
On 4/13/2021 at 6:47 AM, John_M said:

Have you see this thread?

 

 

Unless things have changed in the last five years, it hardly seems worth the effort. You might make better use of the time simply copying files sequentially from one disk to another. I personally think it's a non-issue anyway.

 

Strongly disagree. While yes, it took me a couple of weeks to defrag (xfs_fsr) 8x8tb drives all at 89% or higher capacity.  I can honestly say... once I finished and had all drives at 1% fragmentation or less... the speed was so much faster.  Files and folders open almost immediately, plex media plays almost immediately with the ability to  skip/search so SO much faster.

I will 100% keep an eye on my disk/file/folder fragmentation for now on as keeping it low has proven first hand how extremely beneficial it is in terms of speed.

  • 1 year later...

How did you check how fragmented your drives were? While they were defragging were you still able to use them? I was hoping to find a disk utility docker or plugin but no luck. 

On 2/4/2023 at 11:16 PM, FlyingTexan said:

How did you check how fragmented your drives were? While they were defragging were you still able to use them? I was hoping to find a disk utility docker or plugin but no luck. 

 

See the link John_M posted a few comments back

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.