[Samba] Re: Moving samba PDC to new machine (same name?)

Paul Smith paul at gami.com
Tue Feb 28 15:39:28 GMT 2006


Mark, thanks for the link.

How does this look?

OLDSERVER:
Stop Samba.
Backup smb.conf, smbpasswd, passdb.tdb and secrets.tdb from /etc/samba
Backup *.tdb from /var/lib/samba
Make note of the users/groups UID/GIDs
Power down

NEWSERVER:
Power up server
Change hostname to OLDSERVER
Install latest Samba
recreate users/groups with same UID/GID as the old server
restore backed up files (smb.conf, smbpasswd, passdb.tdb and secrets.tdb
from /etc/samba and *.tdb from /var/lib/samba)
Recreate shared directories
Run testparm
Start Samba
Check domain SID is the same as the old one

Does that handle all the group mappings?  I guess they're in the tdb
files?

The old server is Suse and the new server will be debian, for what it's
worth.

Paul 

-----Original Message-----
From: samba-bounces+paul=gami.com at lists.samba.org
[mailto:samba-bounces+paul=gami.com at lists.samba.org] On Behalf Of Mark
Nienberg
Sent: Monday, February 27, 2006 11:50 PM
To: samba at lists.samba.org
Subject: [Samba] Re: Moving samba PDC to new machine (same name?)

Paul Smith wrote:
> I'm using a tdbsam database with Samba 3.0.11 on a machine that's
> getting a little long in the tooth.  I'd like to move the whole deal
to
> a new machine without any reconfiguring on the clients - I'm happy
with
> a little downtime - out of office hours the system is hardly used
> anyway.  I'd like to upgrade to 3.0.21c at the same time.
> 
> I'm thinking:
> 1. backup domain data on old server
> 2. shut down old server
> 3. build new server with same name as old one
> 4. restore domain data to new server
> 
> I'm having trouble with steps 1 and 4.  What exactly do I need to
> backup, and how?
> 
> Is this possible or do I have to make a new domain and rejoin the
users
> all over?


You can do this with no changes to the clients.  they will be able to 
log on to the new PDC just fine if you do it right.  The process is 
explained here:

http://us4.samba.org/samba/docs/man/Samba-Guide/upgrades.html

Read the whole chapter and pay particular attention to the section 
"Migrating Samba 3 to a new server", "Replacing a domain controller".

I did it about a week ago with no difficulties.

Mark Nienberg

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list