Forked from develforever/lxd_lxc_zfs_pool_storage_resize.sh
Created
March 23, 2021 17:32
-
-
Save karagi4/723061ee1d61564de2dee56860cf65c3 to your computer and use it in GitHub Desktop.
LXD zfs resize pool
This file contains 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