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.

zfs recordsize not possible to set to 1M

Featured Replies

Hello,

using unRAID 7.2.3. Tried to create a dataset with recordsize 1M. But it's not possible to create or to set:

cannot create 'BKUP4/bkp_Tank': 'recordsize' must be power of 2 from 512B to 128K

Upon researching, i found that module parameter zfs_max_recordsize needs to be set accordingly.

Can you please advise how i can do this in unRAID? Thankyou.

(And what might be the reason for this limitation?)

Edited by unraidinterested

Solved by unraidinterested

  • Author

ok, i found out that in Tools/System drivers i can add the parameter, save and reboot.

However, this does not fix the issue.

How can i create 1M recordsize datasets in unRAID?

  • Community Expert

You should just need to type zfs set recordsize=1M pool/dataset

If that's not working, there's something else going on, start by posting the diags.

  • Author

That's not working either.

root@Unraid:~# zfs create BKUP4/bkp_Temp

root@Unraid:~# zfs set recordsize=1M BKUP4/bkp_Temp

cannot set property for 'BKUP4/bkp_Temp': 'recordsize' must be power of 2 from 512B to 128K

I see that in Diags even though allegedly it's anonymized, SN of all disks are included in clear text. I feel a little bit uneasy without redacting the files or at least checking what is in them. Is there some specific file you are asking for?

(The installation was upgraded from when i bought my first license which was probably in November 2024, so maybe 6.7...; some tools are installed like ZFS Master)

Edited by unraidinterested

  • Author

with a little test, i can add that setting a testdataset on a ZFS pool to 1M works.

So it might have to do with the single SATA drive BKUP4, running as unassigned device in unRAID (the unassigned devices plugin is installed)?

Edited by unraidinterested

  • Author
  • Solution

found the issue:

when creating the pool, a lot of features are not set, including the large_block feature, most likely due to compatibility. Once you run zpool upgrade <Pool>, the necessary features are set and i was able to set recordsize=1M. (This implies, you will not be able to mount the pool on ZFS systems not supporting the featureset).

  • Community Expert
57 minutes ago, unraidinterested said:

when creating the pool, a lot of features are not set, including the large_block feature, most likely due to compatibility.

This was with UD right? All features will be enabled for pools created with Unraid.

  • Author

affirmative. I knew there was a feature set, but i was missing the info that UD has its own approach. Once you think about it and consider that it deals with external disks that you just want to mount without modifying anything, it makes a lot of sense.

In my usecase, my unRAID has a cage for single drives to send/recv zfs snapshots for backup purposes but now i know what to do.

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.