Tontonjo / proxmox_toolbox

A toolbox to get the firsts configurations of Proxmox VE / BS done in no time
https://www.youtube.com/c/tontonjo
GNU General Public License v3.0
271 stars 40 forks source link

Restore one cluster node #19

Closed mac-linux-free closed 11 months ago

mac-linux-free commented 11 months ago

Hello, due to the grub/zfs non efi bug encountered now with pm 8.1 upgrade I have to reinstall one node after the other. Does the restore process work on a member node?

Thank you.

Tontonjo commented 11 months ago

Hello!

As said in the readme, this has not been tested in a cluster configuration. As far as i know, it should work on the host, but i'm not sure how the cluster may react.

Please let me know how it goes if you try, very interested!

Regards

mac-linux-free commented 11 months ago

Hello!

I got it working. But please could you add one more thing to the backup?

/etc/corosync/authkey it is a file.

It did not work at first. But after copying this file my cluster is up again.

Horray.

mac-linux-free commented 11 months ago

but the ssh_keys are messed up

mac-linux-free commented 11 months ago

and you have to be sure, that replication jobs are removed at first.

Tontonjo commented 11 months ago

Hello!

I got it working. But please could you add one more thing to the backup?

/etc/corosync/authkey it is a file.

It did not work at first. But after copying this file my cluster is up again.

Horray.

Will do, thanks you very much for your test and feedback!

Tontonjo commented 11 months ago

but the ssh_keys are messed up

How so? Is there something we can do about it? Prevent any unwanted behaviors

Tontonjo commented 11 months ago

and you have to be sure, that replication jobs are removed at first.

Ye makes sense, that's the kind of things i was exepecting when i say " i'm not sure how the cluster may react" :)

So in cluster configurations, you have to stop the replication in cluster before restoring the memeber configuration right?

mac-linux-free commented 11 months ago

In the next hour I'll do the next node. So thank you.

Tontonjo commented 11 months ago

In the next hour I'll do the next node. So thank you.

https://github.com/Tontonjo/proxmox_toolbox/commit/5ed95f9d5910e1c003ebd9bd0ff0f382f780dfcc

mac-linux-free commented 11 months ago

ok it worked