diff --git a/lxd/cluster/recover.go b/lxd/cluster/recover.go index 92514e6c273c..947c29258b96 100644 --- a/lxd/cluster/recover.go +++ b/lxd/cluster/recover.go @@ -390,6 +390,11 @@ func MaybeUnpackRecoveryTarball(database *db.Node) error { return err } + err = writeGlobalNodesPatch(database, incomingRaftNodes) + if err != nil { + return fmt.Errorf("Failed to create global db patch for cluster recover: %w", err) + } + // Now that we're as sure as we can be that the recovery DB is valid, we can // replace the existing DB err = os.RemoveAll(globalDBDir)