[Samba] steps for fileserver replacement
rpenny at samba.org
Mon Jul 10 20:13:20 UTC 2017
On Mon, 10 Jul 2017 21:54:21 +0200
lists via samba <samba at lists.samba.org> wrote:
> In the near future we are going to replace our current fileserver
> (domain member server in a samba4 AD) with new hardware, and new
> fresh debian 9 installation.
> I don't want to upgrade the old installation, but completely
> reinstall. So, should it simply work to:
> - install the new machine with a random temp name / ip
> - make it also a domain member server (under the temp name)
> - configure winbind for nsswitch AD uid/gid on new server
> - turn off samba on the old server (to prevent client access)
> - rsync the user files from the old to the new server
> - make sure file/dir ownerships/permissions match the old server
Now leave the domain
> - turn off the old server
> - put the old server ip on the new server
> - put old server hostname on the new server
> - adjust smb.conf for the new hostname
If you don't put 'netbios name =' in smb.conf, you wont have to do this.
> - rejoin domain with the new hostname
> - restart the new machine
> And, since the new server has now the same ip / dns / netbios name as
> the old server, should all GPO (drive mappings) 'just work' as if
> nothing was changed?
Provided EVERYTHING is the same as the old Unix domain member, I can
see no reasons why this will not work.
> Or if there is a (wiki) doc on this, kindly point me to it, as I
> couldn't find it...
Fairly sure there isn't one, want to write one once you have done it ?
More information about the samba