I recently installed the snap version of LXD after running the packaged version included with Ubuntu 17.10 (just before this I also upgraded to 18.04). I ran
lxd.migrate and got the following error:
=> Connecting to source server => Connecting to destination server => Running sanity checks === Source server LXD version: 3.0.0 LXD PID: 1824 Resources: Containers: 6 Images: 0 Networks: 0 Storage pools: 2 === Destination server LXD version: 3.0.0 LXD PID: 4517 Resources: Containers: 0 Images: 0 Networks: 0 Storage pools: 0 The migration process will shut down all your containers then move your data to the destination LXD. Once the data is moved, the destination LXD will start and apply any needed updates. And finally your containers will be brought back to their previous state, completing the migration. Are you ready to proceed (yes/no) [default=no]? yes => Shutting down the source LXD => Stopping the source LXD units => Stopping the destination LXD unit => Unmounting source LXD paths => Unmounting destination LXD paths => Wiping destination LXD clean => Moving the data => Moving the database => Backing up the database => Opening the database => Updating the storage backends error: Failed to update the storage pools: no such table: storage_pools
The old installation is still there, but it’s empty. The new installation lists my containers but won’t start any, with a
Error: no such file or directory error. My storage pools are btrfs looped images, and I see they’ve been moved to /var/snap/lxd/common/lxd/disks. I thought I might just be able to set the source of the pools to the new path, but I get
Error: The [source] properties cannot be changed for "btrfs" storage pools
I also don’t know what other migration steps were left after configuring the storage pools.