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 vs BTRFS for single NVMe Cache Drive

Featured Replies

Hi guys,

since the general opinion about this question seems to differ a lot, I wanna ask it here again. I know this is not the first time asked but:

 

What is the recommended choice when using a single cache drive (nvme), XFS or BTRFS? I'm not planning to add another drive to the cache-pool.

All my Docker-Containers + their persistent volumes are sitting permanently on the cache. Right now the pool drive is formatted with BTRFS, since it has native Trim support in Unraid.

I read about XFS being more stable and has better performance. I would need the Dynamix TRIM Tool for manual TRIM handling...

 

What would you choose? Just let it be and use BTRFS or switch to XFS?

 

Thanks in advance!

  • Community Expert

I use XFS, not planning to make a RAID array in the cache pool too. So no need for the BTRFS overhead and potential risk of corruption.

But, that is just my 2cents, others may love BTRFS...

 

(I also will not go for ZFS once it is released in the next version)

 

  • Author

Okay thanks! Since I'm using a single drive, I'm asking myself if there are any benefits of using BTRFS other than not having to enable TRIM via the Dynamix Plugin.

 

I'm using a external HDD for Synology backups ie. that is formatted with btrfs because the Synology NAS is able to read that in case of an emergency, so there is a (small) benefit. But for the cache drive?

BTRFS does offer snapshots if you have any need of them. I use single drive BTRFS for my cache drive and use snapshots to backup my appdata folder (not backup against drive failure but against accidental deletion of configuration breaking). It also offers the ability to do send and receive between BTRFS drives. I have not personally had any issues with corruptions on BTRFS file systems and have a mix of BTRFS and XFS drives in my array.

Edited by primeval_god

  • Author

Thanks for your insight!

I switched to xfs for my single cache nvme for now since the only thing I want is a fast accessable and reliable drive for all my Appdata. No other features needed atm.

Might change in the future, let's see :)

 

 

Only question that's left: I need to enable TRIM manually for that drive, right?

Edited by Jaytie

I also have enabled my cache drive with xfs. I am completely new and am trying to figure out if I still need to TRIM manual and how to do so. 

  • Community Expert
5 hours ago, AMDman13 said:

if I still need to TRIM manual and how to do so. 

There is a "Trim" Tab / section in the current version of unraid (before you needed to install a plugin).

Go to Settings -> schedules page (where you can manage the parity check runs) and see the section/Tab about TRIM.

 

Beware! When TRIM runs, the disk will be taken offline temporarily! This could interrupt ongoing transfers, so make sure you pick a time in which nothing is going on!

 

  • Author

SSD TRIM Settings are implemented in Unraid at least in my Version (6.11.5).

As @MAM59 said under Settings -> Scheduler -> SSD TRIM Settings

Thanks guys! Found it. Thanks for the tip on setting it during a time that the disk won't be used. I am all set. :)

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.