Not that there?s a software problem but maybe like a power failure. Say a non-gracefully shut down server. Replication wise, is it ok to just reboot it ? LP On 4 Jun 2024 at 20:11 +0100, samba at lists.samba.org <samba at lists.samba.org>, wrote:> > Well, a Samba DC shouldn't crash, but if it does, you need to find out > why it crashed, there really isn't much point in restarting a DC if it > is just going to crash again. > > If the 'crash' was caused by an easily fixed error and can be fixed > quickly, you should be able to restart it and it should replicate from > any other DCs. You can, theoretically, restart a DC quite some time > after it is stopped, but it may just be easier to replace it. > > So, to put it into a nutshell, if a DC is stopped for a few hours, then > it should be safe to restart it, but if comes to days or weeks, then I > would replace it, better safe than sorry :-)
On Tue, 4 Jun 2024 20:53:28 +0100 Luis Peromarta via samba <samba at lists.samba.org> wrote:> Not that there?s a software problem but maybe like a power failure. > Say a non-gracefully shut down server. > > Replication wise, is it ok to just reboot it ? >In a situation like that, then yes, Linux should check the partitions on your harddrives and if they are okay and Linux starts, you should be good to go. Rowland
Perfectly fine to just restart. Do not routinely re-join DCs. The AD pattern is built on late 1990s hardware architecture, not 2010 cloud architectures, so each join leaves a mark on the domain. So do it per upgrade if you want, but not per boot. It is possible, but not required nor routinely done, to force in a full replication with various 'samba-tool drs replicate' commands. Andrew Bartlett On Tue, 2024-06-04 at 20:53 +0100, Luis Peromarta via samba wrote:> Not that there?s a software problem but maybe like a power failure. > Say a non-gracefully shut down server. > Replication wise, is it ok to just reboot it ? > LPOn 4 Jun 2024 at 20:11 +0100, samba at lists.samba.org < > samba at lists.samba.org>, wrote: > > Well, a Samba DC shouldn't crash, but if it does, you need to find > > outwhy it crashed, there really isn't much point in restarting a DC > > if itis just going to crash again. > > If the 'crash' was caused by an easily fixed error and can be > > fixedquickly, you should be able to restart it and it should > > replicate fromany other DCs. You can, theoretically, restart a DC > > quite some timeafter it is stopped, but it may just be easier to > > replace it. > > So, to put it into a nutshell, if a DC is stopped for a few hours, > > thenit should be safe to restart it, but if comes to days or weeks, > > then Iwould replace it, better safe than sorry :-)-- Andrew Bartlett (he/him) https://samba.org/~abartlet/Samba Team Member (since 2001) https://samba.orgSamba Team Lead https://catalyst.net.nz/services/sambaCatalyst.Net Ltd Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group company Samba Development and Support: https://catalyst.net.nz/services/samba Catalyst IT - Expert Open Source Solutions
Matthias Kühne | Ellerhold Aktiengesellschaft
2024-Jun-05 06:00 UTC
[Samba] PVE HA for DCs
Hello Luis, I think youre going at this problem the wrong way. Samba DC is built with multiple servers in mind. There is no need for external HA if you have enough DCs already. e. g. you have 3 nodes in your cluster: put a DC on each node and disable Proxmox HA alltogether. If one (or even two) nodes go down, your domain is still active because of the last DC. Its best to use different storages as well, so that a storage failure does not bring down your whole domain and locks you out of admin interfaces etc... As soon as your nodes recover, reboot the DCs on them and they'll sync again. If you have to decommision a node, then you can just move the DC from the old node to the new one and boot them there. Hope this helps. Regards, Matthias. Am 04.06.24 um 21:53 schrieb Luis Peromarta via samba:> Not that there?s a software problem but maybe like a power failure. Say a non-gracefully shut down server. > > Replication wise, is it ok to just reboot it ? > > LP > On 4 Jun 2024 at 20:11 +0100, samba at lists.samba.org <samba at lists.samba.org>, wrote: >> Well, a Samba DC shouldn't crash, but if it does, you need to find out >> why it crashed, there really isn't much point in restarting a DC if it >> is just going to crash again. >> >> If the 'crash' was caused by an easily fixed error and can be fixed >> quickly, you should be able to restart it and it should replicate from >> any other DCs. You can, theoretically, restart a DC quite some time >> after it is stopped, but it may just be easier to replace it. >> >> So, to put it into a nutshell, if a DC is stopped for a few hours, then >> it should be safe to restart it, but if comes to days or weeks, then I >> would replace it, better safe than sorry :-)-- Senior Webentwickler Datenschutzbeauftragter Ellerhold Aktiengesellschaft Friedrich-List-Str. 4 01445 Radebeul Telefon: +49 (0) 351 83933-61 Web: www.ellerhold.de Facebook: www.facebook.com/ellerhold.gruppe Instagram: www.instagram.com/ellerhold.gruppe LinkedIn: www.linkedin.com/company/ellerhold-gruppe Amtsgericht Dresden / HRB 23769 Vorstand: Stephan Ellerhold, Maximilian Ellerhold Vorsitzender des Aufsichtsrates: Frank Ellerhold ---Diese E-Mail und Ihre Anlagen enthalten vertrauliche Mitteilungen. Sollten Sie nicht der beabsichtigte Adressat sein, so bitten wir Sie um Mitteilung und um sofortiges l?schen dieser E-Mail und der Anlagen. Unsere Hinweise zum Datenschutz finden Sie hier: http://www.ellerhold.de/datenschutz/ This e-mail and its attachments are privileged and confidential. If you are not the intended recipient, please notify us and immediately delete this e-mail and its attachments. You can find our privacy policy here: http://www.ellerhold.de/datenschutz/