How can I best recover from the mess that I’ve made?
I’ve attempted to migrate from lxd 3.0.3 on Ubuntu 18.04 to the snap package. First, lxd.migrate had problems. Then I had problems with the lxc commands not working in the new version. So I uninstalled lxd apt/deb, unaware that lxd.migrate had not completed. That did not help, so I uninstalled he snap version of lxd and re-installed the apt/deb version.
Bottom line is that I think I’ve pretty much lost any chance of getting things back other than a manual recovery of some sort.
At this point, I have the apt/dev package installed. I’m looking for the easiest/fastest way to get my containers back up and running. I’m open to moving forward with either apt/deb or snap packages, whichever is easier & faster. I will eventually want to move to snap, but getting these containers back quickly is important.
My issues with currently installed apt/deb package are:
-
I need help figuring out how to setup and/or recover my storage pools. The current state is that I don’t have any storage pools defined b/c every time I try to create a storage pool and map it to the existing zfs pool (pogo1 fwiw) I get a message that says that the pool is not empty.
-
lxd.migrate removed the mountpoints on my zfs container file systems and I don’t remember and I can’t figure out what those mount points need to look like. The lxd import command says that “you must first mount your container storage at the expected path inside the storage-pools directory”. However, without an example, I don’t know what the “expected path” is.
-
Related to the point above - I’m pretty sure that the snap version brought significant changes in the directory structure of containers etc. If the lxd directory structure changed from version 2 to version 3, it MAY be relevant that my containers started with an early version 2. I say this b/c I don’t remember “storage-pools” being in the mount path on the containers AND it’s not in the storage path of containers that I have on another system that is still at lxd version 2.0.11 on Ubuntu 16.04. The mount paths on that system are “/var/lib/lxd/containers/container_name.zfs”. I believe that this is how my mount paths were on the system I’m working on now.
-
I would like to eventually move my containers to a new zfs filesystem on a zfs pool with newer and hopefully less-likely-to-fail hard drives. Any hints for helping with this would be appreciated.
I believe the files system containers in zfs are untouched other than having their mount points removed. Although I have 20 some containers, I really only care about three of them, and I can recreate the networking configuration if necessary. (They have fixed IP addresses configured inside the containers)
I’m happy to provide additional diagnostic info as needed, though since I’ve uninstalled and reinstalled lxd apt/dev & snap versions several times, I’m guessing it will be useless.
TIA - Jonathan