Skip to content

Instantly share code, notes, and snippets.

@c-goes
Created September 16, 2020 15:10
Show Gist options
  • Save c-goes/dd91ee17adcc5dc64c52b57e97dd1370 to your computer and use it in GitHub Desktop.
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
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