Closed TN-Wade closed 1 year ago
@TN-Wade this error is not about zpool
presence on the host, but inside the snap. For some reason you are sitting on the edge
channel of lxd snap. Is it intentionally or accidentally? You can try to make snap refresh lxd --channel=latest/stable
, but it may not work cause AFAIK you can't downgrade LXD version if database structure was changed between revisions.
@stgraber could this be to do with the switch to core22?
@TN-Wade this error is not about
zpool
presence on the host, but inside the snap. For some reason you are sitting on theedge
channel of lxd snap. Is it intentionally or accidentally? You can try to makesnap refresh lxd --channel=latest/stable
, but it may not work cause AFAIK you can't downgrade LXD version if database structure was changed between revisions.
My skillset is in networking and I know just enough Unix to get myself into trouble, I know very little about snap, sorry!
I setup lxd using a guide years ago so there's no rationale to being on the edge channel, entirely accidental. I did think it's strange my lxd version is a very recent git commit.
I just made a checkpoint and tried the snap refresh. It worked thankyou.
$ sudo snap refresh lxd --channel=latest/stable
2023-03-07T22:50:56+10:30 INFO Waiting for "snap.lxd.daemon.service" to stop.
lxd 5.11-ad0b61e from Canonical✓ refreshed
$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.58.2 14784 latest/stable canonical✓ core
core18 20230207 2697 latest/stable canonical✓ base
core20 20230126 1822 latest/stable canonical✓ base
core22 20230210 522 latest/stable canonical✓ base
lxd 5.11-ad0b61e 24483 latest/stable canonical✓ -
$ lxc list
+---------+---------+-------------------+------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+---------+-------------------+------+-----------+-----------+
| Plex | RUNNING | | | CONTAINER | 0 |
+---------+---------+-------------------+------+-----------+-----------+
Yeah, the core22 snap drops support for ZFS 0.6 and 0.7 as those aren't buildable anymore.
This affects Ubuntu 16.04 users that aren't on the HWE kernel but as neither Ubuntu nor ZFS of those versions are still supported, there's little we can do.
Worth noting that the same logic will make it to stable soon. On such systems you ideally want to update to a supported version of Ubuntu or at least switch to the HWE kernel to get ZFS 0.8.
Actually, that's 18.04, so still supported for a couple of months, so only switching to HWE would be needed in this case.
We won't be pushing the logic to the 3.0.or 4.0 tracks though, so the stock LXD version on those old Ubuntu distros won't be affected.
Thanks!
Required information
Issue description
Containers will not start after shutdown. lxd start container returns:
But zpool exists. I saw there's been some issues patched with initialising snap zfs so I tried an apt-update & upgrade to no avail. Rebooted a few times since too!
I found advice to restart the snap daemon which succeeds.
I've tried gathering as much information as possible based on similar posts. Dumped below.
Steps to reproduce
Information to attach
snap-daemon.txt