-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the ability to add ZFS pool configurations/properties #13168
Comments
ATM, if one asks LXD to create a zpool while running on a recent kernel (say 6.5.0 with zfs 2.2) and later wants to go back to an older kernel (say 5.15 with zfs 2.1), the zpool won't import due to being incompatible with the older zfs module coming with the older kernel. This prevents one from switching from the Ubuntu HWE kernel back to the GA kernel for example. |
How would one allow this to proceed? Do you have an example of the settings needed? |
For the case I described, there is no nice solution I guess. If we grow the ability to set the compatibility level, one could be foreseeing the need to using an older zfs module and thus set things accordingly at pool creation time. |
@simondeziel so if a pool is created with ZFS 2.2 there's no way to downgrade it back to 2.1 compat? |
@tomponline that is correct. In this example, the pool
Only the zpool created while running 5.15.0/zfs 2.1 is usable:
|
@tomponline One way to improve things would be to take into consideration if we are running on a Ubuntu LTS where HWE kernels are a thing. If the snap detects an Ubuntu LTS env, it could set the compat level suitable for the GA kernel instead of the currently running one. This isn't super nice as this feels like added maintenance and is Ubuntu (and derivative) specific. |
It'd be nice if LXD allowed setting zpool level configurations/properties when creating the storage pool. This was discussed in this thread.
The text was updated successfully, but these errors were encountered: