OpenZFS on OS X
OpenZFS on macOS Project · 面向 macOS 的 ZFS 驱动程序和实用工具,用于管理 ZFS 存储,并支持在 Finder 中访问文件系统挂载。
brew install --cask openzfs- 近 30 天安装
- 193
- App榜第 778
- 近一年安装
- 1,725
- 365 天累计
- 最新版本
- 2.4.1p2
- 下载大小
- 21MB
- pkg
- 更新节奏
- 每月
- 近 30 天 1 个版本
介绍
OpenZFS on OS X 为 macOS 安装 ZFS 驱动程序和实用工具。该项目将其文件系统描述为提供池化存储和原生 macOS 集成;它是存储系统组件,并非图形化管理应用。
- ZFS 使用校验和检测数据损坏;项目说明可借助冗余奇偶校验进行纠正。
- 支持按时间点创建写时复制快照。
- 项目列出的功能包括原生加密和 ZSTD。
- 文件系统挂载可通过 macOS Finder 访问,软件包还包含
zfs和zpool的 shell 补全文件。
使用 brew install --cask openzfs 安装。Homebrew 会根据 macOS 版本和处理器架构选择软件包。安装需要内核扩展。如果安装失败,提供的说明建议在“系统设置”→“隐私与安全性”中允许该扩展,然后重试。更多信息请参阅厂商文档。
基本信息
- 芯片
- Apple 芯片 · Intel
- 自动更新
- 否
- 仓库
- GitHub 仓库 · 1 天前更新★163
- 开发者
- OpenZFS on macOS Project
- Homebrew
- 可以安装,由 Homebrew 更新
- 其他名称
- openzfs
- 主页
- openzfsonosx.org
- 软件包标识符
- openzfs
核查日期
2.4.4rc3 更新内容
新版本 · 来自 GitHub Release
*** zfs-macOS-2.4.4rc3
OpenZFS on OS X 2.4.4rc3
Changes since rc2: crash and hang fixes, a round of memory and performance work from rottegift, and hardware-accelerated encryption on Apple Silicon.
Crash and hang fixes
- Unmount/export hang fixed. A file opened during a write-sync could keep a stray reference on its vnode, so the unmount waited forever. Spotlight indexing a new dataset triggered this easily. (
macOS: release async-zget znodes that are not attached yet) - Unmounting now always goes through DiskArbitration. It tries a normal
diskutil unmountfirst and falls back to a forced unmount only when asked. It never usesumount -f, which bypassed DiskArbitration and could leave Spotlight (mds) holding files. - Stale per-file state on reused znodes fixed.
z_suspendedandz_document_idare now reset each time a znode is allocated, including for.snapshot-directory entries.zfs - Timer interval fixes. Several wrong time-interval calculations are corrected. One of them made the ARC run as an MRU-only cache instead of a balanced MRU/MFU cache, which hurt cache hit rates.
Memory and performance (rottegift)
- ABD buffers use
IOMallocData()on macOS 15 and newer. These are the kext's largest memory consumer. They now come from the data allocator instead ofIOMallocAligned(), which eases pressure on the kernel's shared memory map. - Kernel memory caches are grouped by how long their allocations live. Short-lived and long-lived allocations no longer fragment each other. There is also a diagnostic report of what each cache holds.
- Memory is returned after a large free. Per-CPU caches that keep memory pinned are now flushed after a mass free, so memory goes back to the system sooner.
- The slab consolidator's rate can be changed while running.
- The number of ZFS vnodes can optionally be capped. This is off by default. When on, idle vnodes are recycled in batches to limit the memory they pin.
- Apple Silicon CPU layout. CPU IDs are numbered without gaps, and efficiency (E) cores are counted.
- SPL load messages are kept in a boot-log kstat, along with a summary of memory sizing at load.
Encryption
- Accelerated AES on Apple Silicon (#117). The AES modes and GCM now use the ARMv8 crypto instructions (
aesv8/ghashv8), and the fastest available implementation is selected automatically. They pass all ICP test vectors: 322 of 322 for GCM and 552 of 552 for CCM.
*** zfs-macOS-2.4.4rc3p1
- Changes to the installer to handle exporting pools better
*** zfs-macOS-2.4.4rc2-anyraid
- rc2 build with new anyraid support if anyone wants to test it. It is not in rc3
*** zfs-macOS-2.4.4rc2
- raidz1 arithmetic could corrupt pointers on arm64.
*** zfs-macOS-2.4.4rc1
Changes since 2.4.3rc5
New features (macOS)
- ZFS Versions (ported from Windows into ZetaWatch): a file's earlier versions in snapshots, with Open, Copy To and Restore. Open it from Finder → Services → "ZFS Versions…" or with zetawatch://versions?path=.
- ZFS Deleted Items: lists files deleted from a folder that still exist in its snapshots, and can restore them. Open it from Finder → Services → "ZFS Deleted Items…".
- New libzfs function zfs_get_obj_version().
- fcntl(F_PUNCHHOLE), _PC_MIN_HOLE_SIZE and renamex_np(RENAME_SWAP) are now implemented.
- symbolicate_panic_macos.py has a --live mode and reads the compact-stackshot paniclog format.
Fixes (macOS)
- Data corruption: writev() across a record boundary (Akhil).
- Kernel panic when com.apple.owneruid/ownergid is out of range on mounts with ownership ignored (#138).
- Stale negative name-cache entries (#113).
- Unmount hang: vnops no longer hold the teardown lock across ERESTART retries.
- Rollback now unmounts and remounts descendant filesystems.
- snapdir=disabled is now enforced.
- Use-after-free in mkdir/symlink.
- ldi_strategy/ldi_close race and NULL vd_lh in vdev_disk.
- zvol: wrong status and byte counts on async I/O, and stale open flags.
- ARM64 AES decrypt was calling the encrypt routine.
- zfs_uio_page_aligned() read past the end of the iovecs.
- /etc/exports was created with mode 0600.
- _tunable_zfetch sysctl was not registered.
- ZetaWatch: the helper no longer asks for a password at every login.
Build and packaging
- Builds with Xcode 27 and the macOS 27 SDK (blake3 asm, pipe2).
- The kext is built arm64e-only.
- zpool no longer has the app-sandbox entitlement.
- Clean builds on Linux and FreeBSD, plus SPDX tags (fro0 work).
- Test-suite fixes for macOS.
Upstream OpenZFS (about 350 commits), mainly:
- Block-cloning fixes: self-deadlock and double free.
- ARC: a race between arc_release() and arc_read_done(), and a use-after-free in dnode_rele.
- DDT pruning fixes.
- A raidz expansion startup race.
- Imports now work with corrupted spare or l2arc configs
- New commands and options: zpool status -vv error ranges, zpool initialize -z, zstream raw, zhack MOS leak tools.
- Performance: lockless spa_config_lock reads and less dp_lock/dd_lock use.
如何在 Mac 上安装 OpenZFS on OS X
Homebrew 会运行安装包 OpenZFSonOsX-2.4.1p2-GoldenGate-27-arm64.pkg,需要输入管理员密码。
不用 Homebrew 安装
下载文件因系统版本而不同,请在官网选择: 安装细节
卸载 OpenZFS on OS X 与可选的数据清理
brew uninstall --cask openzfs普通卸载会删除应用本身,设置和缓存会保留。
深度清理(可选)
brew uninstall --zap --cask openzfs--zap 还会删除 Homebrew 定义里列出的设置、缓存等文件,其中可能有其他应用共用的数据,删除后无法恢复;它也不保证没有任何残留。请先备份需要保留的数据;如要保留设置和缓存,请不要加 --zap。
关于 OpenZFS on OS X 的常见问题
OpenZFS on OS X 安全吗?
OpenZFS on OS X 收录在 Homebrew 官方软件库中,没有被停用。自 2026 年 9 月起,Homebrew 会停用没有通过 macOS Gatekeeper 检查的应用。安装时,Homebrew 会用 SHA-256 校验值核对来自 github.com 的安装包。过去 30 天,它通过 Homebrew 安装了 193 次。
OpenZFS on OS X 有公开的 GitHub 仓库吗?
OpenZFS on OS X 有公开的 GitHub 仓库(https://github.com/openzfsonosx/openzfs-fork),但 OpenNavo 尚未核实其 OSI 许可证。
怎样在 Mac 上彻底卸载 OpenZFS on OS X?
运行 brew uninstall --cask openzfs。它会停止 5 个后台服务、清除 1 条安装记录。要连设置和缓存一起删除,运行 brew uninstall --zap --cask openzfs。--zap 还会删除 Homebrew 定义里列出的设置、缓存等文件,其中可能有其他应用共用的数据,删除后无法恢复;它也不保证没有任何残留。请先备份需要保留的数据;如要保留设置和缓存,请不要加 --zap。这会再删除 5 处文件和文件夹,包括 ~/。
OpenZFS on OS X 支持 Apple 芯片(M1 及更新)的 Mac 吗?
支持。Homebrew 会为 Apple 芯片和 Intel 芯片的 Mac 分别下载不同的安装包。
OpenZFS on OS X 的最新版本是多少?
最新版本是 2.4.1p2,Homebrew 收录于 2026年11月20日。运行 brew upgrade --cask openzfs 即可更新。
安装 OpenZFS on OS X 还会装上什么?
它通过 .pkg 安装器安装,安装时需要输入管理员密码。
相似应用
- Jabra Direct一款 macOS 应用,可更新和个性化设置 Jabra 耳机,并通过耳机控制受支持软电话的通话。
- Bitfocus Companion用于控制视听及广播设备的控制面板应用,支持 Stream Deck,并内置虚拟控制方式。
- Wacom TabletWacom 的 macOS 数位板驱动程序包,以安装程序形式提供,适用于兼容的 Wacom 设备。
- VueScan一款 macOS 扫描应用,内置驱动旨在帮助使用制造商已停止支持的旧款扫描仪。