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? Many many thanks Paul
Mark Nienberg
2006-Feb-28 05:50 UTC
[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
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@lists.samba.org [mailto:samba-bounces+paul=gami.com@lists.samba.org] On Behalf Of Mark Nienberg Sent: Monday, February 27, 2006 11:50 PM To: samba@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 dealto> a new machine without any reconfiguring on the clients - I'm happywith> 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 theusers> 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
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 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@lists.samba.org [mailto:samba-bounces+paul=gami.com@lists.samba.org] On Behalf Of Mark Nienberg Sent: Monday, February 27, 2006 11:50 PM To: samba@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 dealto> a new machine without any reconfiguring on the clients - I'm happywith> 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 theusers> 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
Mark Nienberg
2006-Feb-28 18:52 UTC
[Samba] Re: Moving samba PDC to new machine (same name?)
Paul Smith wrote:> 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 >When I did it I had the 2 servers running at the same time for a while so I could move data from old to new using an nfs mount. This took a few hours to move approx 100 Gb. Of course I did this with smb off on both machines. Then I stopped the old server, changed the name and ip address of the new server, and continued as you outlined. Mark