A bash script for creating and managing mini ZFS pools (mirror or raidz) for learning and experimentation.
Fun fact: This script was born when I was knee-deep in writing a Greek tutorial called "ZFS: Don't try it, you might fall in love". Tired of playing pool boy with ZFS, manually creating and destroying test pools, I decided to let this script do the heavy lifting. Who says laziness isn't the mother of invention?
- Create mirror or RAIDZ, ZFS pools using disk image files
- Automatically set up spare disks for the pools
- Easy cleanup and destruction of pools once you are done
- Interactive menu-driven interface
- ZFS installed on your system
- Sudo privileges
-
Clone the repository:
git clone https://github.com/synergops/zfs-mini-lab.git
-
Make the script executable:
cd zfs-mini-lab chmod +x zfsminilab.sh
-
Run the script:
./zfsminilab.sh
-
Follow the on-screen menu to create or destroy mini ZFS pools.
- Create a mirror with 2 disk image files and 1 spare
- Create a RAIDZ with 3 disk image files and 1 spare
- Destroy and clean up existing pools
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to all contributors and users of this tool.
If you find this tool helpful, consider supporting it: PayPal Donation Link