You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
* Update zfs.rst
Update guide for OpenZFS 2.0.0
* Update zfs.rst
Corrected a few typos and modified styling / organization.
* Update zfs.rst
Slight corrections after having tested this.
@@ -191,60 +165,61 @@ Load the kernel module at boot
191
165
192
166
OpenZFS kernel modules must be loaded before any OpenZFS filesystems are mounted. For convenience, load the kernel modules at boot.
193
167
194
-
#. Systemd uses the `/etc/modules-load.d/` directory to load out-of-tree
195
-
kernel modules. Make sure that the directory exists:
168
+
Systemd uses the `/etc/modules-load.d/` directory to load out-of-tree kernel modules. Make sure that the directory exists:
196
169
197
170
.. code-block:: bash
198
171
199
172
sudo mkdir -p /etc/modules-load.d
200
173
201
-
#. Create the configuration file:
174
+
Create the configuration file:
202
175
203
176
.. code-block:: bash
204
177
205
178
echo"zfs"| sudo tee /etc/modules-load.d/01-zfs.conf
206
179
207
-
#. Reboot your system. zfs.ko should be loaded automatically.
180
+
Reboot your system. zfs.ko should be loaded automatically (the module should appear in the outout of command :file:`lsmod`).
208
181
209
182
.. CAUTION::
210
183
211
-
When the |CL| kernel is upgraded, DKMS will attempt to rebuild your OpenZFS module for the new kernel.
184
+
When the |CL| kernel is upgraded, DKMS will attempt to rebuild the OpenZFS module for the new kernel.
212
185
213
186
- DKMS may not have rebuilt the module
214
187
- DKMS may not have auto-installed the module
215
188
- The new kernel might introduce breaking changes that prevent zfs
216
189
from compiling
217
190
218
-
To fix this situation, you may have to recompile zfs.ko with the new kernel code. OpenZFS *might* not compile at all with the new kernel.
191
+
To fix this situation, recompile zfs.ko with the new kernel code. OpenZFS *might* not compile at all with the new kernel.
219
192
220
193
.. CAUTION::
221
194
222
-
**Be sure you don't put anything on an OpenZFS pool that you would need
223
-
in order to rebuild kernel modules.** You must ensure the compatibility of OpenZFS with new Linux kernels when they are released.
195
+
**Be sure not to put anything on an OpenZFS pool that will be needed to rebuild kernel modules.** Ensure compatibility of OpenZFS with new Linux kernels when released.
224
196
225
197
Troubleshooting
226
198
===============
227
199
228
200
If you suspect an issue with DKMS rebuilding your module, you can check two places for information. The dkms-new-kernel service will show status that may help in troubleshooting:
229
201
230
-
.. code-block:: bash
202
+
.. code-block:: console
231
203
232
204
systemctl status dkms-new-kernel.service
233
205
234
-
Also, the systemd journal may have important information:
206
+
The systemd journal may also have important information:
235
207
236
-
.. code-block:: bash
208
+
.. code-block:: console
237
209
238
210
journalctl -xe
239
211
212
+
.. CAUTION::
213
+
As of OpenZFS 2.0.0, the included file :file:`script/dkms.mkconf` contains a minor incompability -- it calls the command :file:`lsb_release`, which is not available on Clear Linux by default. It is trivial to edit :file:`dkms.mkconf` and remove the singular reference to :file:`lsb_release` without any ill effects, and then execute the :file:`dkms` commands above. However, keeping the file as provided is perfectly fine, but **will result in :file:`dkms` warnings**.
214
+
240
215
Next steps
241
216
**********
242
-
You are ready to create zpools and datasets! For more information on using ZFS, see:
217
+
You're now ready to create zpools and datasets! For more information on using ZFS, see:
243
218
244
219
* `FreeBSD Handbook chapter on ZFS`_
245
220
* `ZFS-on-Linux issue tracker`_
246
221
247
222
.. _FreeBSD Handbook chapter on ZFS: https://www.freebsd.org/doc/handbook/zfs.html
0 commit comments