ZFS on OSX and Windows

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.
OpenZFS on Windows 2.4.1 rc7 is no longer a Pre Release but Latest. While still not the final release edition, the devs are confident enough to suggest this edition if you want to try OpenZFS on Windows. Especially in combination with hd + nvme hybrid pools you should use OpenZFS 2.4. Especially the blake3 fix (propably not a Windows but a OpenZFS issue is welcome, you want it for Fast(est) Dedup)

Releases · openzfsonwindows/openzfs
openzfsonwindows/openzfs

** rc7

  • Fix blake3 BSOD
  • Internal: automatically populate symstore for builds
  • Internal: fix github CI for minimal build, disable spdxcheck
The multi-OS, multi-server web-gui napp-it cs supports the new features
 
A Windows NAS with web-gui for Storage Spaces and ZFS Pools in 3 steps

Required hardware: X86-64 system with Windows 11 or Windows Server 2019 or later
(the cheap Essentials version is great, as it supports AD and SMB Direct)
Min. 8GB RAM and 64GB+ boot drive
Min. 1 data drive (HDD, NVMe, Hybrid is fine, redundancy recommended), USB drive for backup

Step 1. Install OpenZFS Installer:
Releases · openzfsonwindows/openzfs

Step 2. Download Web-GUI (copy and run, no installation required),
https://napp-it.org/doc/downloads/xampp.zip

unzip xampp -> c:\xampp start web-gui: run "C:\xampp__start_zfs-gui_as_admin.bat" as admin

The napp-it web-gui (https://localhost) consists of a frontend (Xampp Apache webserver + web-gui) and a minimal backend service. The backend service uses barely more than 50k RAM and can also remotely manage a 2GB ZFS NAS (Raspberry). The frontend and backend run on FreeBSD, Illumos, Linux, OSX, Solaris, and Windows. The frontend can manage multiple servers, something like vSphere for storage.

Step 3: there is no step 3
Getting started:
Create ZFS (Storage Spaces) pool, also possible as RAID over SMB (vhdx files).
Shares, ACLs, and users are managed via Windows. ZFS Replication: any to any (any OS)
Encrypted datasets with 2/3-way key split (key parts: local, frontend, https1, https2)
All ZFS properties up to OpenZFS 2.4 (RAID-Z Expansion, Fast Dedup, Hybrid Pool etc.)

https://napp-it.org/doc/downloads/windows-aio.pdf
 
zfs-windows-2.4.1rc8 Latest

** rc8

Fix thread priority BSOD on large multicore systems in KiAddThreadToPrcbQueue()
Correct potential arm64 disk IO race in completion.
Speedup dirlisting, avoid memory fragmentation
OpenZVOL driver unload fix
Fix double free of MDL in write path (CrystalDiskMark)

The remaining bugs are more and more very special and depend on rare environments
like Win10 and many cores cores. For many systems OpenZFS on Windows works well.
 
New release candidate 10 for OpenZFS on Windows 2.4.1


** rc10
  • Add FileCompressionInformation to enable query of on-disk compressed size
  • Do some performance fixes to make things faster
  • Hardlink deletion would hide all other hardlinks
  • Fix deadlock in write path
  • Prioritise HarddiskXPartitionY paths over hack path
  • Add import --fix-gpt to correct NumPartitions=9 to NumPartitions=128.
  • Fix up condvar and mutex
  • Use User credentials, enabling zfs allow to work. Mix Unix and Windows permissions and hope for the best
  • OpenZVOL unload bug fixes
  • Fix spl_panic() call print and stack
So with Unix created GPT partitions, they use gpt.NumPartitions=9, this Windows does not accept, and Windows
computes gpt.checksum "as if" gpt.Numpartitions==128. So checksum mismatches, and partition table is ignored.
This is why OpenZFS uses path encoding of #partition_offset#partition_length#/path/to/device, saved into vdev->vdev_physpath.
This continues to work.
We added a new zpool import --fix-gpt which will rewrite gpt.NumPartitions=128, and recompute gpt.checksum. Since libefi already reads in the full GPT partition, we need not change anything else, and write it back out. This is left as a user option, as there could be partition usage I am unaware of. Who know if some legacy archs can only use fewer partitions? Or store microcode in the backhalf.
If GPT is written with gpt.NumPartitions=128, Windows will recognise the partitions, and create //?/HarddiskXPartitionY device objects, so we can import those directly, no need for special path. Success. We prioritise //?/HarddiskXPartitionY over #partition_offset#partition_length#/path/to/device - but it will try both.
Let's check for regression in this release.

Evaluate and report issues
 
OpenZFS on Windows 2.4.1rc14

** rc14
  • Pageout write stalls in rangelock
  • panic exceptions were masked
  • Unmount fixes, cause finally known of poor unmount
  • Change condvar to be posix compliant in mutex_exit -> cv_broadcast cases
  • Setting mountpoint would compute wrong path

    Issues:

btw
OpenZFS on OSX 2.4.1 has released state, not a release candidate
 
OpenZFS for Windows 2.4.1 rc15



** rc15

  • Fixed a BSOD (MEMORY_MANAGEMENT) that could occur running .exe files directly from a ZFS volume, caused by a Valid
    Data Length race during cached writes.
  • Fixed data corruption during large downloads to a ZFS volume (e.g. LM Studio model downloads) —
    FSCTL_QUERY_FILE_REGIONS was reporting invalid data regions incorrectly, and several related races/deadlocks in the
    cached-write fast path (fastio_write) under concurrent writers have been fixed.
  • Fixed a second, related MEMORY_MANAGEMENT BSOD that could occur when a file was reopened while another handle
    already had it memory-mapped.
  • Fixed filenames being mangled to the wrong case when a pool is mounted to a folder (reparse point) instead of a
    drive letter.
  • Fixed pool mount failures when Driver Verifier is enabled.
  • Fixed partition number (dki_partition) always reporting 0 on Windows.
  • Healed pre-existing non-power-of-2 block sizes that could otherwise cause issues when a file's block size grows.
  • Fixed several bugs in zfsinstaller found during code review.
  • Fix BSOD in shani benchmark at boot
 
OpenZFS on Windows 2.4.1 rc16


** rc16
  • Fixed a deadlock that could hang the system running VeraCrypt (or anything else doing large
    cached writes) on a ZFS volume — the Cache Manager's write-behind flush and the app's own
    cached write could end up waiting on each other forever.
  • Fixed a BSOD (PFN_LIST_CORRUPT) creating a VHD/VHDX file on a ZFS volume, caused by an invalid
    lock attempt on a kernel-mode write buffer (seen with vhdmp.sys).
  • Fixed mounting a pool read-only (e.g. force-imported after an unclean export) crashing instead
    of mounting.
  • Fixed renaming a file, or deleting via the Recycle Bin, spuriously reporting failure even
    though the operation actually succeeded.
  • Fixed a hang deleting files while another handle still had them open, caused by
    CcPurgeCacheSection blocking indefinitely (LM Studio downloads and others).
  • Fixed files getting permanently stuck reporting "access denied" on delete under fast
    open/close churn (seen with FreeFileSync's lock files).
  • Fixed two related memory-mapping BSODs (MEMORY_MANAGEMENT): one writing near the end of a file
    opened for append, one via FSCTL_OFFLOAD_WRITE.
  • Fixed a hang truncating a file while a concurrent write to the same file was flushing.
  • Fixed a file's on-disk size not being persisted correctly for some paging writes, which could
    revert a file to 0 bytes after a crash.
  • Fixed unbounded ARC growth: the ARC now actually caps itself around a third of system memory
    as documented, and proactively reclaims idle vnodes and returns freed memory to the OS instead
    of holding onto it indefinitely.
  • Fixed a crash in the Windows performance-counter (PCW) provider when a pool was mid-import or
    mid-export.
  • Fixed a crash in zed/event handling caused by resolving the wrong internal file handle.
  • Fixed IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS reporting the wrong extent length.
  • Fixed a rare crash reading files with a corrupted/zero block size.
  • Fixed write/read errors (out of space, I/O error) being silently reported back as success.
  • Fixed a crash (VERIFY panic) on a short/truncated read, e.g. during zfs receive.
  • Fixed IRPs occasionally completing with an invalid internal status in rare error paths.
  • Fixed ZVOLs not honoring SCSI Force Unit Access (FUA) — writes requiring guaranteed durability
    weren't actually being synced.
  • Fixed ZVOL disk-cache flush (SYNCHRONIZE CACHE) never actually reaching the underlying disk —
    data could be lost on power failure. Also fixed a related crash when write-caching was disabled
    on a ZVOL.
  • Fixed ZVOL writes being logged to the ZIL at the wrong offset, which could corrupt data during
    crash recovery. Also fixed ZVOL read/write throughput statistics always reporting 0.
 
  • Like
Reactions: unwind-protect
zfs-windows-2.4.1rc17b

Issues

rc17b
  • Delete via recycle.bin can stop unmount/exports.

  • zget attach could cpubusy loop on rare race
  • overwrite/truncate would fail to do so
  • correctly show mount flags (readonly etc) in userland
  • skip updating EA when existing
  • wire atime for Windows
  • zfs_tray cosmetic fixes
  • spl: fix memory eviction, stop lying about available memory

Hoping this is the last 2.4.1 version, moving us up to 2.4.4 to match macOS port.
 
OpenZFS for Windows 2.4.4 rc1


These are the changes from upstream 2.4.1 to 2.4.4

L2ARC — substantial rework

  • DWPD-based rate limiting with adaptive feed intervals (protects SSD endurance)
  • Per-device parallel feed threads (was single-threaded feed)
  • Persistent markers with consistent tail scanning + lazy reset flags + scan-based depth cap
  • Even-depth multi-sublist scanning, write budget fairness (metadata no longer monopolizes)
  • Rebuild bounded by write hand on first sweep; fixed a prev_hdr use-after-free

Performance


  • Predict and throttle buffers dirtied by the sync context
  • Batch object reallocation syncs in zfs receive
  • Parallelize metaslab_sync_done(), dedup block cloning, and brt_pending_apply() across vdevs
  • RAIDZ: optimize single data column writes; avoid extra abd_t allocations in RAIDZ/dRAID
  • Bridge speculative and prescient prefetchers; bound user prefetch to a fraction of ARC

New features / CLI


  • zpool condense — new verb
  • zpool scrub -t — thorough scrub support
  • zfs bookmark -r — recursive bookmark creation
  • zpool initialize -z — write zeroes
  • New dedupused/dedupsaved pool properties
  • zoned_uid property (Linux container/namespace delegation — not applicable to us)
  • FIDEDUPERANGE via block cloning
  • zstream: major rework — multithreaded, new raw/drop_record/queue subcommands, memory tracking

Data-integrity fixes (the ones that matter most)


  • Fix read corruption after block-clone-after-truncate
  • Fix double free for blocks cloned after DDT prune
  • draid: fix data corruption after disk clear; fix checksum errors after rebuild with degraded disks; fix import
    failure after disk replacement
  • Prevent range-tree corruption race in dnode_sync()
  • z_seq now persists across znode eviction — fixes the VMware ESXi-over-NFS "file specified is not a virtual disk" bug
    (Linux/FreeBSD only for now, per our earlier gap analysis)
  • DDT: multiple pruning bugs fixed (including negative time overflow)
  • Fix off-by-one in PREVIOUSLY_REDACTED handling that dropped the last block

Security hardening


  • vdev_open/zfs_file_open/vdev_file/vdev_disk: now check the calling credential instead of always using kcred (we
    ported the Windows side of this yesterday)
  • Additional verification of size fields and strings in the receive path
  • Hardened receive record validation
  • secpolicy_nfs removed; secpolicy_zinject/secpolicy_sys_config restricted to global-zone credentials

Deadlock/hang fixes


  • Fix deadlock on dmu_tx_assign() from vdev_rebuild()
  • Fix snapshot automount deadlock during concurrent zfs recv
  • Fix self-deadlock setting the vdev allocating/path property
  • Fix race between device-removal completion and pool export
  • zfs_ioctl: fix EBUSY race between quota queries and mount (we ported this too)
  • arc: fix race between arc_release() and arc_read_done()

OpenZFS on Windows

  • Add zpool create and zpool destroy to zfs_tray
 
Illumos ZFS and its derivative OpenZFS have been released for FreeBSD, Linux, and macOS. All that is really missing now for a universal NAS file system is Windows, and that is getting closer and closer with napp-it 4ai web-gui support for a ZFS NAS on any OS.

OpenZFS 2.4.4rc4 for Windows

Release zfs-windows-2.4.4rc4 · openzfsonwindows/openzfs

*** rc4
  • Explorer integration exposing snapshot versions
  • Fix "zfs diff"
  • zfs_tray features
  • Paging IO deadlock fix
  • Fix BSOD related to SEQ
  • zfs_inactive deadlock fix
Although the new 2.4.4 rc4 for Windows is still a pre-release on the way to the latest release candidate and final release, it has now gone through quite a few fixes and tests. I hope that rc5 can become the new latest version, and—provided not too many additional programs are discovered that still have issues with ZFS—a final "Released" version will follow at some point.

Quite interesting is the ZFS snapshot integration in Windows Explorer, especially for Windows 11, since Microsoft removed VSS with ZFS snapshots as "Previous Versions" there in order to push the server versions where that feature is available.

1791632435111.png
 
Last edited:
OpenZFS 2.4.4 rc5
Release zfs-windows-2.4.4rc5 · openzfsonwindows/openzfs

still a Pre-Release for tests und not a Latest for common use,

*** rc5

  • Readonly-file delete refusal, and its fallout fixed — del/FILE_DELETE_ON_CLOSE on a FILE_ATTRIBUTE_READONLY file now fails like NTFS instead of silently deleting it; the create-time path swallows the rejection via the existing "silently ignored" precedent so it doesn't leak a vnode ref (a260b29)
  • BSOD fix: unmount/export self-deadlock — zfsvfs_teardown()'s zil_close() could re-enter and try to attach NT security while already holding the teardown lock for write, tripping rrwlock's self-deadlock assert; security attach is now skipped on that re-entrant path (eee9770)
  • BSOD fix: usecount underflow in vnode_setparent() — two FILE_OBJECTs closing on the same vnode around the same time (e.g. a downloader writing through multiple parallel-chunk handles) could both release the same parent-link ref; the old-parent release is now claimed with a CAS so only one of them acts on it (bb999dc, #647 (#647))
  • OpenZVOL: fixed a crash on reinstall without reboot — a stale DRIVER_OBJECT pointer from a previous driver load caused IoDeleteDevice to dereference freed memory on unload; now only the devices this copy actually created are torn down (918b721, #654 (#654))
  • Rename: case-only rename now works — renaming low.txt → LOW.txt on a case-insensitive dataset was wrongly rejected as a name collision; it's now treated as the case-preserving rename it is (bd20aac)
  • Hardlinks: deleting one name no longer blocks the others — FileDispositionInformation(Ex) on a hardlinked file used to mark the whole vnode delete-pending, making every other name return access-denied; now only the one name being removed is affected, matching the existing DELETE_ON_CLOSE behavior (dce6de0)
  • Driver Verifier fixes (3 bugcheck 0xC4/0x3B crashes under Verifier):
    • zfs diff/send/recv: getf() referenced a user-mode fd as kernel-mode, and handed zfs_file_* the caller's raw handle instead of a kernel one usable from any thread (145eff7, 56c24ee)
    • Hardlink creation with a RootDirectory handle was also referenced with the wrong processor mode (849fada)
    • A lookup queued on an oplock break (STATUS_PENDING) kept touching the IRP's FileObject afterward, which could already be gone (873be90)
  • Internal: libzfs.abi/ZFS versions-feature plumbing (3a277c3, b9e3241) — no user-visible behavior change
 
OpenZFS on Windows 2.4.4 rc6 Pre-Release

*** rc6

We are finally attempting to switch from default build "Debug" to default build "Release"

Fixes

Release-build BSOD: ____cacheline_aligned is now a no-op on Windows. Optimised builds merged stores into aligned movaps on zio_t, but the allocator
only guarantees 8/16-byte alignment, so the release driver crashed in zio_vdev_io_start. Debug builds never hit it.

Features

Tray: zfs_tray now tells you when a newer OpenZFS on Windows is released. There is a Settings ▶ submenu to turn it on and off and to include
pre-releases, and it notifies once per version.

Packaging and build

Release installers: new ZFSInstall-release.iss produces OpenZFSOnWindows-.exe (-debug- is now the opt-in flavour), and the deploy project's
Release|x64 config is wired to x64-Release.
ARM64: real ARM64 installer scripts (debug and release) replace the mis-copied x64 one, and CMakeSettings.json gains an arm64-Release configuration.
Attestation: one attestation.sh [x64|arm64] [Debug|Release] [zip] replaces the separate ARM64 script and the .ddf files.

Verified

Release build on the x64 VM under Driver Verifier (no violations or failed pool allocations), and CrystalDiskMark. test.exe showed no crash.
 

OpenZFS on Windows 2.4.4rc8​

  • Fix a bugcheck from writing a short (REG_DWORD) registry value to a 64-bit tunable
  • Fix a Cache Manager bugcheck (CACHE_MANAGER 0x34) caused by reading the wrong device object in the lazy-write
    callbacks
  • Fix a bugcheck on a read/write through a mapped file whose vnode was already terminating — now fails cleanly instead
    of asserting
  • Fix a vnode reference leak in link/rename error paths that could trip a VERIFY(v_iocount > 0)
  • Add a GitHub Sponsors button (.github/FUNDING.yml)
 

OpenZFS on Windows 2.4.4rc8 AnyRaid​

  • Debug build of the new AnyRAID feature for those who would like to try.
    (Oh heh blast, I didnt tag it, so it says 2.4.1, but it is 2.4.4 :). )

    Anyraid works on tiles so you can combine any disk sizes and you can remove disks.
    I see Anyraid as the most universal raid type. It can replace mirror and raid-Z in future

    now in OpenZFS master and in OpenZFS on Windows 2.4.4 pre release for first tests

    Only for tests, not backward compatible with older OpenZFS

  • currently only mirror, not yet
    • raidz-Parität (anyraidz)
    • Rebalancing of Tiles on new disks
    • Vdev-Contraction
 
Last edited: