Thank you Andrew and Roland. I appreciate it. I haven't built one for a few years. Last time I did so I used a walk through that I think Lois Van Belle wrote. Is that still available anywhere or is there another such walkthrough? On Fri, Mar 3, 2023, 11:48 AM Rowland Penny via samba <samba at lists.samba.org> wrote:> > > On 03/03/2023 19:36, Peter Pollock via samba wrote: > > I've been called back to an old workplace to try to help with some issues > > that they have and have found that the DomainDnsZones database is not > > replicating. Everything else in the replication seems to be fine. > > > > I ran a samba-tool dbcheck on the affected server and it returns: > > > > ltdb: > > > tdb(/var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=MYDOMAIN,DC=MYCOMPANY.ldb): > > tdb_rec_read bad magic 0xd9fee666 at offset=4135368 > > > > ERROR(ldb): uncaught exception - Indexed and full searches both failed! > > > > I've tried to force sync that file from our other DC but it errors out. > > > > Can I delete the file and manually copy it over from the good file on the > > other server? > > > > This is a live environment and I don't want to try it and bork things up > > even more if it can't be done that way. > > > > If not, how else could I fix the issue? > > > > Thank you. > > The best way out of this would be to demote the non working DC and > replace it with another one > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 03/03/2023 20:27, Peter Pollock via samba wrote:> Thank you Andrew and Roland. > > I appreciate it. I haven't built one for a few years. Last time I did so I > used a walk through that I think Lois Van Belle wrote. Is that still > available anywhere or is there another such walkthrough? > >Ah, then it sounds like you may need to replace both of your DC's, The latest Samba version is 4.17.5 (until next week when 4.18.0 is set for release). Not sure if Louis's website is still up and if it is, if is still relevant. As you are referring to Louis, I take it you are either using Debian or Ubuntu, so, if you use Debian bullseye, you can use backports and this will get you 4.17.5 . The Debian maintainer also has a repo for Ubuntu, cannot just remember the address, but if you search on this mailing list you should find it. After that it is just a matter of copying what you have now. Ask any questions you have to. Rowland