Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 2.08 KB

README.md

File metadata and controls

62 lines (41 loc) · 2.08 KB

ZFS Mini Lab Playground

Donate to project

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?

zfsminilab

Features

  • 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

Requirements

  • ZFS installed on your system
  • Sudo privileges

Usage

  1. Clone the repository:

    git clone https://github.com/synergops/zfs-mini-lab.git
    
  2. Make the script executable:

    cd zfs-mini-lab
    chmod +x zfsminilab.sh
    
  3. Run the script:

    ./zfsminilab.sh
    
  4. Follow the on-screen menu to create or destroy mini ZFS pools.

Options

  1. Create a mirror with 2 disk image files and 1 spare
  2. Create a RAIDZ with 3 disk image files and 1 spare
  3. Destroy and clean up existing pools

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to all contributors and users of this tool.

Support

If you find this tool helpful, consider supporting it: PayPal Donation Link