Change default storage

I have deleted all images and containers.
Is there any way to change the default storage without calling lxd init again?

lxc profile device remove default root
lxc storage delete default
lxc storage create default …
lxc profile device add default root disk path=/ pool=default

5 Likes

Thanks again!

hi,

when i create a zfs pool named zfstemp. should the last command then be?

lxc profile device add default root disk path=/ pool=zfstemp

Yes that is correct.