OpenZFS On Debian
Table of Contents
Installation
If you want to use ZFS as your root filesystem, see the Root on ZFS links below instead.
ZFS packages are included in the contrib repository. The backports repository often provides newer releases of ZFS. You can use it as follows.
Add the backports repository:
1 | vi /etc/apt/sources.list.d/bookworm-backports.list |
1 | deb http://deb.debian.org/debian bookworm-backports main contrib |
1 | vi /etc/apt/preferences.d/90_zfs |
1 | Package: src:zfs-linux |
Install the packages:
1 | apt update |
Caution: If you are in a poorly configured environment (e.g. certain VM or container consoles), when apt attempts to pop up a message on first install, it may fail to notice a real console is unavailable, and instead appear to hang indefinitely. To circumvent this, you can prefix the apt install commands with DEBIAN_FRONTEND=noninteractive, like this:
1 | DEBIAN_FRONTEND=noninteractive apt install zfs-dkms zfsutils-linux |
Root on ZFS
- Debian Bookworm Root on ZFS
- Debian Bullseye Root on ZFS
- Debian Buster Root on ZFS
- Debian Stretch Root on ZFS
Related topics
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Oyyl Blog!
