Hi I upgraded my samba 4 DC running on Ubuntu 12.04 from 4.6.7 to 4.6.10 sernet samba package. apt-get update apt-get upgrade sernet-samba While downloading the new package the internet went down and it stopped so later when the connection was restored I started it again with ap-get upgrade sernet-samba and it started again. Now after rebooting the server the sernet-samba-ad service is not running and failing with error SAMBA NOT CONFIGURED AS DC. The testparm command is giving an error /var/run/samba pid missing so I have copied the folder from another running DC running 4.7.1. Please help to resolve the problem. This is a main DC and I have still not transferred the FSMO rules to the new 4.7.1 server. Thanks n Regards Harsh Sent from my iPhone
Hi, In the sernet packages, the DC packages are called sernet-samba-ad I think. So perhaps you need to run something like: apt-get upgrade sernet-samba-ad (or even apt-get install sernet-samba-ad) But SAMBA NOT CONFIGURED AS DC means that the smb.conf is not for a DC, and you say the machine was a DC. Not sure how an apt-get upgrade could have caused this... MJ On 11/16/2017 10:13 PM, Kukreja H.Kukreja via samba wrote:> Hi I upgraded my samba 4 DC running on Ubuntu 12.04 from 4.6.7 to 4.6.10 > sernet samba package. > > apt-get update > apt-get upgrade sernet-samba > While downloading the new package the internet went down and it stopped so > later when the connection was restored I started it again with ap-get > upgrade sernet-samba and it started again. > Now after rebooting the server the sernet-samba-ad service is not running > and failing with error SAMBA NOT CONFIGURED AS DC. The testparm command is > giving an error /var/run/samba pid missing so I have copied the folder from > another running DC running 4.7.1. > > Please help to resolve the problem. This is a main DC and I have still not > transferred the FSMO rules to the new 4.7.1 server. > > Thanks n Regards > > Harsh > > Sent from my iPhone >
On Thu, 16 Nov 2017 23:13:27 +0200 "Kukreja H.Kukreja via samba" <samba at lists.samba.org> wrote:> Hi I upgraded my samba 4 DC running on Ubuntu 12.04 from 4.6.7 to > 4.6.10 sernet samba package. > > apt-get update > apt-get upgrade sernet-samba > While downloading the new package the internet went down and it > stopped so later when the connection was restored I started it again > with ap-get upgrade sernet-samba and it started again. > Now after rebooting the server the sernet-samba-ad service is not > running and failing with error SAMBA NOT CONFIGURED AS DC. The > testparm command is giving an error /var/run/samba pid missing so I > have copied the folder from another running DC running 4.7.1. > > Please help to resolve the problem. This is a main DC and I have > still not transferred the FSMO rules to the new 4.7.1 server. > > Thanks n Regards > > Harsh > > Sent from my iPhoneThe upgrade shouldn't have touched the Samba database, just the binaries etc, so check the smb.conf file and recreate it if you cannot find it, or if it is incorrect. If all else fails and because you seem to have other DCs, turn off the DC, seize the FSMO roles to another DC, forcibly demote the dead DC. Re-install the OS on the old DC, do not use the old DCs ipaddress or hostname. Now install Samba and join it to the domain as another DC Rowland
The upgrade shouldn't have touched the Samba database, just the binaries etc, so check the smb.conf file and recreate it if you cannot find it, or if it is incorrect. The smb.conf still exists [global] workgroup = IUMNET realm = IUMNET.EDU.NA netbios name = IUMDCDP01 server role = active directory domain controller dns forwarder = 172.16.10.254 domain master = yes preferred master = yes # server services = +s3fs,+dnsupdate,+dns,+winbind,+kdc,+ldap password server = 172.16.10.5 allow dns updates = nonsecure and secure # lanman auth = Yes # client lanman auth = Yes ntlm auth = yes client use spnego = no client ldap sasl wrapping = sign # ldap ssl ads = yes # ldap ssl = start tls ldap server require strong auth = no # wins server = iumnet.edu.na # wins support = Yes time server = Yes template shell = /bin/bash template homedir = /home/%U # idmap config * : backend = tdb # idmap config *:range = 50000-1000000 full_audit:prefix = %u|%I|%m|%S full_audit:failure = connect full_audit:success = connect disconnect seize the FSMO roles to another DC, forcibly demote the dead DC Please help with the commands to seize the FSMO roles to another DC and forcibly demote the dead DC. *Harsh Kukreja *Systems Administrator *International University of Namibia *Tel: 061-4336000 - E-mail: h.kukreja @ium.edu.na - Web: *http://www.ium.edu.na <http://www.ium.edu.na/>*Private Bag 14005,Bachbrech. 21-31 Hercules Street, Dorado Park, Windhoek, NAMIBIA On Thu, Nov 16, 2017 at 11:35 PM, Rowland Penny via samba < samba at lists.samba.org> wrote:> On Thu, 16 Nov 2017 23:13:27 +0200 > "Kukreja H.Kukreja via samba" <samba at lists.samba.org> wrote: > > > Hi I upgraded my samba 4 DC running on Ubuntu 12.04 from 4.6.7 to > > 4.6.10 sernet samba package. > > > > apt-get update > > apt-get upgrade sernet-samba > > While downloading the new package the internet went down and it > > stopped so later when the connection was restored I started it again > > with ap-get upgrade sernet-samba and it started again. > > Now after rebooting the server the sernet-samba-ad service is not > > running and failing with error SAMBA NOT CONFIGURED AS DC. The > > testparm command is giving an error /var/run/samba pid missing so I > > have copied the folder from another running DC running 4.7.1. > > > > Please help to resolve the problem. This is a main DC and I have > > still not transferred the FSMO rules to the new 4.7.1 server. > > > > Thanks n Regards > > > > Harsh > > > > Sent from my iPhone > > The upgrade shouldn't have touched the Samba database, just the > binaries etc, so check the smb.conf file and recreate it if you cannot > find it, or if it is incorrect. > > If all else fails and because you seem to have other DCs, turn off the > DC, seize the FSMO roles to another DC, forcibly demote the dead DC. > > Re-install the OS on the old DC, do not use the old DCs ipaddress > or hostname. Now install Samba and join it to the domain as another DC > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >