Skip to content

Instantly share code, notes, and snippets.

@francis-io
francis-io / README.md
Created January 28, 2022 23:51 — forked from yorickdowne/README.md
Ubuntu Desktop 20.04 with mirrored ZFS boot drive

Overview

Ubuntu Desktop 20.04 supports a single ZFS boot drive out of the box. I wanted a ZFS mirror, without going through an entirely manual setup of Ubuntu as described by OpenZFS

This adds a mirror to an existing Ubuntu ZFS boot drive after the fact.

ZFS requires native encryption to be added at pool / dataset creation. Ubuntu 21.04 supports this during installation. Whether these instructions are suitable for mirroring such a setup has not been tested. For Ubuntu 20.04, these instructions are not suitable for creating an encrypted ZFS boot disk, please use the full instructions linked above for that. You can, however, add an encrypted dataset after the fact: You could encrypt just the portion of your file system that holds secrets.

Note: If your use case is running docker instances, and not a full-fledged Ubuntu install, then take a look at TrueNAS SCALE

@francis-io
francis-io / tf.sh
Created August 26, 2019 17:33 — forked from mmhmxx/tf.sh
tf – a wrapper around Terraform
# A wrapper around Terraform: runs terraform with given command in an environment taken from current directory.
#
# Workflow:
# cd webops-terraform/$component/$environment
# tf a|apply
# tf g|get
# tf i|init
# tf l|landscape # plan piped through landscape: https://github.com/coinbase/terraform-landscape
# tf o|output
# tf p|plan