Normally, no, lxd cluster edit
and lxd cluster remove-raft-node
are used to modify the dqlite state. In this case you need to also modify the global database, removing all traces of the server, its instances, storage pools, networks, …
Your best bet is a patch.global.sql
that deletes the server from the global nodes
table. That should take care of most of the records, then once that’s done, you can use lxd cluster remove-raft-node
to finish the job.
Though it’s not something we’d ever recommend, you’re not supposed to ever remove a server that way and depending on how many servers are left and the roles prior to that upgrade you can end up with quite a bit of config to fix up…