Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save karagi4/723061ee1d61564de2dee56860cf65c3 to your computer and use it in GitHub Desktop.
Save karagi4/723061ee1d61564de2dee56860cf65c3 to your computer and use it in GitHub Desktop.
LXD zfs resize pool
#!/bin/bash
# Stop all running containers.
lxc stop -all
lxc storage list
truncate -s +20G /var/lib/lxd/disks/default.img
zpool set autoexpand=on default
zpool status -vg default
zpool online -e default device_id_from_step_above
zpool set autoexpand=off default
service lxd restart
# Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment