From d472f48845449f430d5e7b6cbe5d655111b946d1 Mon Sep 17 00:00:00 2001 From: Markus Ressel Date: Wed, 29 Oct 2025 20:16:36 +0100 Subject: [PATCH] Update README with note about "zfs rewrite" command Added important notes about ZFS 2.3.3 and the `zfs rewrite` command. --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b6e91bb..bc09971 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ # zfs-inplace-rebalancing Simple bash script to rebalance pool data between all mirrors when adding vdevs to a pool. +> [!IMPORTANT] +> ZFS 2.3.3 introduced the `zfs rewrite` command, which is meant to address this very issue as well, but avoids most of the caveats the script in this repository has. Definitely check it out first before trying to make this script work for you. +> +> PR: https://github.com/openzfs/zfs/pull/17246 +> Docs: https://openzfs.github.io/openzfs-docs/man/master/8/zfs-rewrite.8.html + [![asciicast](https://asciinema.org/a/350222.svg)](https://asciinema.org/a/350222) ## How it works @@ -93,7 +99,8 @@ Dependencies: ## Usage -**ALWAYS HAVE A BACKUP OF YOUR DATA!** +> [!CAUTION] +> **ALWAYS HAVE A BACKUP OF YOUR DATA!** You can print a help message by running the script without any parameters: