I’m thinking of moving the current /var/lib/lxd to a zfs dataset liblxd so that I can restore the full lxd server elsewhere. If everything, containers and /var/lib/lxd is on zfs, then it seems true that I should be able to send and receive the snapshots and have everything working at destination as an exact copy of the src. Do people agree that this should work? (I will install lxd at destination so that init script, log dir etc is created).
how would you go about doing the initial migration on a running server? Steps I’m considering:
- create a liblxd ds and have it mounted at its default location /zpool/liblxd
- stop lxd
- copy all the data from /var/lib/lxd to /zpool/liblxd
- change the mountpoint of the liblxd dataset to be /var/lib/lxd
anything missing? other thoughts?