Created
April 7, 2020 23:18
-
-
Save develforever/487e41e899f8318debf8ee7fb0355f69 to your computer and use it in GitHub Desktop.
LXD zfs resize pool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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