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.

[Feature Request] Add bcache module to kernel

Featured Replies

  • Community Expert

I suspect that simply adding the bcache module to the kernel is not all that would be involved or it would probably already have happened.    For instance how would it interact with the Unraid User Share system?  
 

Having said that if such issues could be resolved it might be an attractive feature and at the very least it would replace the need for the current Use Cache=Yes option on User Shares.

  • 4 months later...

hope this function add to urnaid,cache  setting up cache on dir is improper,not flexible enough

  • 5 months later...

any updates about this ask in 2024?

  • 3 weeks later...

I google this at least twice a year to see if there’s been any updates. 

  • 10 months later...
On 10/1/2023 at 7:42 AM, itimpi said:

I suspect that simply adding the bcache module to the kernel is not all that would be involved or it would probably already have happened.    For instance how would it interact with the Unraid User Share system?  
 

Having said that if such issues could be resolved it might be an attractive feature and at the very least it would replace the need for the current Use Cache=Yes option on User Shares.

Unraid 7.0 kernel has the bcache-linux module. What is missing is unraid web interface hooks to detect and handle the configuration of bcache disks (its similar to setting up a disk partition format dance).

  1. /dev/sda needs to be bcache formatted via make-bcache command.

  2. Now that /dev/bcache0 exists, unraid needs to allow us to put encryption or a partition on top. In other words unraid needs to threat /dev/bcacheN as it does for /dev/sdN in the current state of affairs.

I haven't bruteforced since I don't have a spare license and all my USB disks all have undergone a trial already but I did see I was able to create a /dev/bcache0 device on my unraid because the kernel has the module it needs - i just needed to drop the binaries for the userspace tooling that talks to the kernel and go to town.

https://github.com/TheLinuxGuy/ugreen-nas/blob/725850e877731aa475300b3eacfdd7f853640b8a/bcache-cheatsheet.md?plain=1#L53

  • 2 weeks later...
On 7/11/2025 at 11:16 PM, TheLinuxGuy said:

Unraid 7.0 kernel has the bcache-linux module. What is missing is unraid web interface hooks to detect and handle the configuration of bcache disks (its similar to setting up a disk partition format dance).

  1. /dev/sda needs to be bcache formatted via make-bcache command.

  2. Now that /dev/bcache0 exists, unraid needs to allow us to put encryption or a partition on top. In other words unraid needs to threat /dev/bcacheN as it does for /dev/sdN in the current state of affairs.

I haven't bruteforced since I don't have a spare license and all my USB disks all have undergone a trial already but I did see I was able to create a /dev/bcache0 device on my unraid because the kernel has the module it needs - i just needed to drop the binaries for the userspace tooling that talks to the kernel and go to town.

https://github.com/TheLinuxGuy/ugreen-nas/blob/725850e877731aa475300b3eacfdd7f853640b8a/bcache-cheatsheet.md?plain=1#L53


Ohhh, if this gets added it would be fantastic for people who don't use ZFS. Too bad this wasn't around before I rebuilt my entire server. Still going to be keeping my eye on it.

  • 5 months later...

interesting topic.

I don't have need for bcache for the array. I'm happy with it as it is. Despite of the downsides the versatility it provides in the ability to mix disks is what made me choose unraid in the first place.

But i have a need for a vm to have a large and fast volume. Too large to hold it on a ssd and too fast to rely only on hdd. It doesn't need to on the array.

How could i setup such a volume ?

I was thinking about lvm volume with bcache or another type of cache (completly outside of the array). The glitch is i have room for another hdd but not for a ssd. Could i use a vdisk on a existing ssd to act as cache for a lvm volume on a new hdd?

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.