Created
September 16, 2020 15:10
-
-
Save c-goes/dd91ee17adcc5dc64c52b57e97dd1370 to your computer and use it in GitHub Desktop.
ZFS ext4 volume (zvol) and move LXD container to new ext4 storage 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
zfs create -s -V 100G rpool/lxd_ext4 | |
mkfs.ext4 /dev/zvol/rpool/lxd_ext4 | |
mount /dev/zvol/rpool/lxd_ext4 /mnt | |
lxc storage create ext4 dir source=/mnt/lxd | |
lxc stop c1 | |
lxc move c1 c1temp -s ext4 | |
lxc move c1temp c1 | |
lxc start c1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment