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.

gea

Well-Known Member
Dec 31, 2010
3,189
1,202
113
DE

ZFS is a perfect solution now for mutual use (important data, large data ex 20TB disks, redundancy with copies=2 or encryption with a key per filesystem) or disaster backups (external offline - beside backup syncs)

ZFS on OSX or Windows is up to date Open-ZFS 2.2.3 with release candidate beta state but mainly due driver/integration/installer issues.
If you find problems, report to the zfsonosx or zfsonwindows issue trackers


How do I handle ZFS on Windows USB disks
- I always name usb pools "usb"
- I create three batch files on the desktop

poolstate.bat with file content:
zpool list
timeout /t 5

import_usb_pool.bat with file content:
zpool import -f usb
timeout /t 5

export_usb_pool.bat with file content:
zpool export -f usb
timeout /t 5

Execute the file via a mouse right click and "run as administrator"
Prior an unplug, export or check state as ZFS hangs (reboot required) when you just unplug a single disk pool
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,189
1,202
113
DE
OpenZFS 2.2.3rc3
  • Fix input of passwords
  • fix suspended pools block reboots
  • minor smb fixes
I have had problems to install as the former driver
/windows/system32/drivers/OpenZFS.sys from the former version seems to be blocked.

I had to do a "manual" deinstall
-/windows/system32/drivers/OpenZFS.sys rename to openzfs.xx (rename possible, delete not)
- reboot
- remove OpenZFS Storagevolumes in device manager
- Installation of rc3
- ok
 

gea

Well-Known Member
Dec 31, 2010
3,189
1,202
113
DE
New release of ZFS on Windows zfs-2.2.3rc4, it is fairly close to upstream OpenZFS-2.2.3
with draid and Raid-Z expansion


rc4:
  • Unload BSOD, cpuid clobbers rbx
Most of the time this is not noticeable, but in registry-has-changed-callback
during borrowed-stack handling, rbx changing has interesting side-effects,
like BSOD at unload time.
This means 2.2.3rc1-rc3 can have BSOD at unload time. If you wish to avoid that,
rename Windows/system32/drivers/openzfs.sys to anything not ".sys", then reboot.
The system will come back without OpenZFS, and you can install rc4.


btw
Open-ZFS on OSX and Windows is still rc/ beta.
Problems are mainly around OSX or Windows integration not ZFS.

Try it and report problems to reach a stable state asap.
Issues · openzfsonwindows/openzfs
 
Last edited:

gea

Well-Known Member
Dec 31, 2010
3,189
1,202
113
DE
Am currently reactivating status and alert reports in napp-it cs on Windows via tls email, normally quite complicated..

In Windows, you can send TLS mail directly from powershell.
Edit the following script and replace =xx= values

Code:
$fromEmail = "=from="
$toEmail = "=to="
$subject = "=subject="
$body = "=body="       # mailbody
$Password = "=pw="

$smtpServer = "=smtpserver="
$smtpPort = =port=   #  587

$mailMessage = New-Object System.Net.Mail.MailMessage($fromEmail, $toEmail, $subject, $body)
$mailMessage.IsBodyHtml = $true

$smtpClient = New-Object System.Net.Mail.SmtpClient($smtpServer, $smtpPort)
$smtpClient.EnableSsl = $true
$smtpClient.Credentials = New-Object System.Net.NetworkCredential($fromEmail, $Password)

try {
  $smtpClient.Send($mailMessage)
  Write-Output "success"
} catch {
  Write-Error "send error: $($_.Exception.Message)"
}

Open a powershell admin terminal

1. allow script execution:
Set-ExecutionPolicy unresticted

2. edit mailtemplate.ps1 and replace =from=, =to= etc
with your values

3. start script
/path/mailtemplate.ps1

4. disable script execution
Set-ExecutionPolicy resticted


##
If you want to use gmail:
##################
- Login to your account
- enable 2FA
in the 2FA area you can create an app password
Use this app password together with your accountname xyz@gmail.com to send mails

For a different from, create an alias at gmail
 
  • Like
Reactions: unwind-protect

gea

Well-Known Member
Dec 31, 2010
3,189
1,202
113
DE
Development of Open-ZFS on Windows has reached a next step.
New Release candidate Open-ZFS 2.2.3 rc5 on Windows

it is fairly close to upstream OpenZFS-2.2.3

rc5:
  • VHD on ZFS fix
  • fix mimic ntfs/zfs feature
  • port zinject to Windows
  • fix keylocation=file://
  • fix abd memory leak
A ZFS Pool is now detected of type zfs and no longer ntfs
ZFS seems quite stable. Special use cases, special hardware environments or compatibility with installed software needs broader tests.

If you are interested in ZFS on Windows as an additional filesystem beside ntfs and ReFS, you should try the release candidates (for basic tests you can use a USB device if you do not have a free partition) and report problems to the OpenZFS on Windows issue tracker or discuss.

Jeder der Interesse an ZFS on Windows hat, sollte das installieren und Probleme im Issue Tracker oder Issue Discuss melden