Skip to content

HankB/Fun-with-ZFS

Repository files navigation

Fun-with-ZFS

Explore simple ZFS operations

Warning

These scripts create and destroy pools. If running on a host that has important (other) pool(s) there is a remote possibility that the important pool(s) could be accidentally destroyed. Appropriate precautions include thorough backups and/or testing on a throw away host.

Note

On 2024-09-26 I accidentally committed and pushed two test files. I followed a circuitous sequence of commands (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository#using-git-filter-repo) to remove them and the result is that I could no longer pull/push from an existing repo. Fun with Git!

Motivation

Some operations that should be simple and straightforward have not been so simple for me. I found it convenient to set up some simple scripts to work through the operations and allow me to explore the results and try different options. The plan is that each subdirectory will include one or more scripts related to a particular operation or scenario along with a README with appropriate comments.

Status

First script complete. More to come.

Testing

Not really. Scripts are checked using shellcheck to provide a minimal level of error checking.

Contributing

I'd be delighted to have additional scenarios added. I reserve the right to add requirements to PRs as I identify the need. I'll need to research what to do about copyright for projects of this type.

Errata

Testing is performed on hosts running Debian Buster (ZFS 0.8.5) and Debian Stretch (ZFS 0.7.12) using bash. More recent work is on Debian Bookworm and using ZFS 2.2.x.

About

Explore simple ZFS operations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages