[Samba] Member can't join DC2 (The specified network name is no longer available)
Luis Peromarta
lperoma at icloud.com
Sat Apr 26 18:16:47 UTC 2025
Very happy you got it working.
Yes you can move VMs in proxmox from node to node no problem as long as in the same network.
I use LXC containers in unrestricted mode and works perfectly. 5GB disk and 1GB ram is enough for 400 pcs and 800 users. I run 4 DCs
On 26 Apr 2025 at 17:27 +0100, Adnan R. via samba <samba at lists.samba.org>, wrote:
> Le 24/04/2025 à 16:54, Rowland Penny via samba a écrit :
> > > First carry out an ldap search in AD for DC2, just to make sure that
> > > there are no leftovers.
>
> I did :
>
> ldbsearch -H /var/lib/samba/private/sam.ldb --cross-ncs objectguid |
> grep -A1 DC2
>
> Then
>
> ldbdel -H /var/lib/samba/private/sam.ldb [DNs found above]
>
> Hope it's enough.
>
> > > next, using Debian 12 with Samba from backports
> > > (this gets you Samba 4.21.5) join a second DC at your first place (note
> > > I say 'place' not 'site', you are not using 'sites'). If this works,
> > > then you are a step forward.
>
> Done. Replicated everything to it (sysvol and idmap.ldb), seems to be
> successful (see attachments)
>
> > > Once you are sure everything is working correctly at your first place,
> > > read this:
> > >
> > > https://wiki.samba.org/index.php/Active_Directory_Sites
> > >
> > > Then setup a second site for your second place.
>
> Before doing so, I checked the doc above and it seems that without
> knowing it, my sites were configured correctly (See attachments). BTW,
> DC4 (in place 2) appeared in the other site by itself. I never moved a
> server there. I proceeded anyway.
>
> > > Now attempt to join a new DC at your second site, do not point to a
> > > specific DC with the 'samba-tool domain join' command, but do specify
> > > the 'site' (see 'samba-tool domain join --help' for more info).
>
> Done. See showrepl in attachments.
>
> > > If that works then great, you can now add a second DC at your second
> site.
>
> Done. See showrepl in attachments.
>
> No errors. sysvol is configured to be replicated by rsync from dc1 to
> dc2, dc3 and dc4.
>
> Sites/Places are:
> - 190bis:
> -- dc1
> -- dc2
> - 133:
> -- dc3
> -- dc4
>
> Confirmed by Sites and Services
>
> I ten tried to join my windows 10 test VM and YES it works, VM in 2nd
> site selected DC3 in same site.
>
> Everything is good now, thank you for your help !
>
> DC3 and DC4 are on the same physical machine, we will add another
> proxmox next week on this site/place. Is it safe to shutdown dc4
> (without demote), move the VM to the other machine (without changing
> mac, machine-id, IP) and start it up?
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list