[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

2nd samba PDC server

Hello
We have a samba PDC server our network long time and we plan 2nd samba PDC server the same
network.
Is that possible two PDC server in the same network?
thank you
0
linuxdebian
Asked:
linuxdebian
  • 5
  • 4
5 Solutions
 
nanocosmCommented:
There is no problem running more that one PDCs in the same network as long as the don't have the same dominnames!

0
 
linuxdebianAuthor Commented:
first PDC is ork.example.com
second PDC will be ork1.example.com

is that correct?
0
 
nanocosmCommented:
Partly - You need to select an different DNS name (ork1.example.com) for the 2nd PDC and - this is the important - a different Samba Domainname (which has nothing to do with DNS)
Edit your smb.conf (normally located at /etc/samba/smb.conf) locate in the
[global] Section the line "workgroup = FOOBAR" and change it. Don't forget to restart samba

Example for 1st PDC:
[global]

    wide links = no
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
    workgroup = PDC1

# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
    netbios name = PDC1

# server string is the equivalent of the NT Description field
#   server string = %v
   server string = 1stPDC

Example for 2nd PDC:
[global]

    wide links = no
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
    workgroup = PDC2

# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
    netbios name = PDC2

# server string is the equivalent of the NT Description field
#   server string = %v
   server string = 2ndPDC



0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
linuxdebianAuthor Commented:
Thank you nanocosm for your answer
That is perfect.

I have one more thing.What about the Domain names?

Example for 1st PDC:
[global]
   wide links = no
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = EXAMPLE.COM


I want my second PDC the same Domain name.
Example for 2nd PDC:
[global]

   wide links = no
# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = EXAMPLE.COM



my question is : when xp client join the domain how can i know which machine i join?



0
 
nanocosmCommented:
It is not possible to have more than one PDC with the same NT-Domainname in a network!

You need to setup a BDC (BackupDomainController) if you want to have a kind of fault tolerance.
But keep in mind that a BDC just authenticate the users in a domain, but all updates to the domain (new users, changed passwords, group membership, etc) could only be made via the PDC, which would then propagate these changes to all BDCs in the domain. A BDC normally does not carry the user data.

Read these articles:
http://en.wikipedia.org/wiki/Domain_controller
http://en.wikipedia.org/wiki/Primary_Domain_Controller
http://en.wikipedia.org/wiki/Backup_Domain_Controller

If you setup two PDCs (with different NT-Domainnames) you can join each XP client to each PDC.
0
 
linuxdebianAuthor Commented:
nanocosm thank you so much for your informations,they are really helpful

What is your thought and advices ? if you were i what would you do?
thank you
0
 
nanocosmCommented:
That depends on what you want to do...
Faulttolerance ?
Filetransfer speed ?
More storage space ?

For Faulttolerance I'd setup a BDC and sync the Userdata frequently with rsync for example. But there are other soultions possible

For Filetransfer speed I'd add another NIC and setup them as bonding so that the network load can be shared to multiple clients

For more storage space I'd just add another harddisk
0
 
linuxdebianAuthor Commented:
Basically we have old samba server in our network(PDC1) we want to PDC2 making and if all are goes good then stop working with old one(PDC1).
0
 
nanocosmCommented:
Well, in this case you need to setup the new PDC2 as a BDC, sync/transfer all the data let them both sync the authenticate credentials. Now shutdown the old PDC1 and promote the new BDC to a PDC.

See: http://samba.org/samba/docs/man/Samba-HOWTO-Collection/samba-bdc.html#id2567666

IMHO it is much easier and faster to copy over all the data and configuration from the old machine to the new one instead of creating a BDC since in case of the BDC scenario you still need to manually copy and sync a lot of data.
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now