systemctl start snap.lxd.daemon
followed by lxc list produces: cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_f8RF31//dev: No such file or directory
/var/snap/lxd/common/lxd/logs/lxd.log: Failed to start the daemon: Failed to start dqlite server: raft_start(): io: closed segment 0000000000054298-0000000000054800 is past last snapshot snapshot-1-54272-9477069720
journalctl -u snap.lxd.daemon -n 30
-- Logs begin at Mon 2021-06-14 13:54:08 PDT, end at Mon 2021-06-14 18:52:19 PDT. --
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: 11: fd: 17: cpuset
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: 12: fd: 19: memory
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: Kernel supports pidfds
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: Kernel does not support swap accounting
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: api_extensions:
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - cgroups
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - sys_cpu_online
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - proc_cpuinfo
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - proc_diskstats
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - proc_loadavg
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - proc_meminfo
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - proc_stat
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - proc_swaps
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - proc_uptime
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - shared_pidns
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - cpuview_daemon
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - loadavg_daemon
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: - pidfds
Jun 14 18:52:17 srv-nd lxd.daemon[15882]: Reloaded LXCFS
Jun 14 18:52:18 srv-nd lxd.daemon[404961]: => LXD failed to start
Jun 14 18:52:18 srv-nd systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=1/FAILURE
Jun 14 18:52:18 srv-nd systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
Jun 14 18:52:18 srv-nd systemd[1]: snap.lxd.daemon.service: Scheduled restart job, restart counter is at 5.
Jun 14 18:52:18 srv-nd systemd[1]: Stopped Service for snap application lxd.daemon.
Jun 14 18:52:18 srv-nd systemd[1]: snap.lxd.daemon.service: Start request repeated too quickly.
Jun 14 18:52:18 srv-nd systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
Jun 14 18:52:18 srv-nd systemd[1]: Failed to start Service for snap application lxd.daemon.
Jun 14 18:52:19 srv-nd systemd[1]: snap.lxd.daemon.service: Start request repeated too quickly.
Jun 14 18:52:19 srv-nd systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
Jun 14 18:52:19 srv-nd systemd[1]: Failed to start Service for snap application lxd.daemon.
So this is a bit confusing… the last snapshot is 54272, the last transaction is 54913 and you have segment files going from 54023 through to 54913 so I’m not too sure why it’s not loading properly.
So I guess start by making a full backup copy of the global directory.
Then you can try removing:
0000000000054298-0000000000054800
0000000000054799-0000000000054913
Which will make LXD entirely rely on that latest snapshot and try to start back up from it. If that doesn’t work, you’ll have to restore global from your copy and we can then try to remove that latest snasphot (snapshot-1-54272-9477069720 and snapshot-1-54272-9477069720.meta) and see if the snapshot prior to that + the segment files can get you back online.