Skip to content

Instantly share code, notes, and snippets.

@mifix
Created May 30, 2016 09:33
  • Star 9 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mifix/169ab20c1e9df0672a7fc3bd78b723a2 to your computer and use it in GitHub Desktop.
LXD - ZFS - resize
# make sure zfs autoexpand is enabled (only needed once)
sudo zpool set autoexpand=on lxd
sudo truncate -s 50G /var/lib/lxd/zfs.img
# Make zfs realize the fact that partition has been changed and make zpool
# use the new partition which is actually the same one
sudo zpool online -e lxd /var/lib/lxd/zfs.img /var/lib/lxd/zfs.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment