Koozali.org: home of the SME Server

Migration: selective migration using Lazy Admin Tools

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Migration: selective migration using Lazy Admin Tools
« on: March 04, 2017, 10:02:22 PM »
I've added a section to the LAT (Lazy Admin Tools) wiki page describing how to transfer user accounts, user files, and user email from your old SME8 server to a new SME9 server:

https://wiki.contribs.org/Lazy_Admin_Tools#Server_Migration


Janet asks in another thread:
Quote
mmccarn

Does using lat, transfer the machine accounts ?

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Migration: selective migration using Lazy Admin Tools
« Reply #1 on: March 05, 2017, 01:53:20 AM »
A more than useful addition, thank you
--
qui scribit bis legit

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Migration: selective migration using Lazy Admin Tools
« Reply #2 on: March 05, 2017, 01:36:33 PM »
Does using lat, transfer the machine accounts ?

Good question.

 I don't know; I've never used a SME as a domain controller. 

You could run lat-dump -d on one of your servers then look for the machine accounts in one of the output files.  If you find them you'd know that they're being dumped, at least.  The associated restore command should (hopefully) restore them,

Online Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Migration: selective migration using Lazy Admin Tools
« Reply #3 on: March 06, 2017, 06:17:19 PM »
From what I know I would say no ! I have no machine to test this. However if somebody is able to provide the relevant files I would be happy to update the contrib the way I did for the shadow file.

from what I understand there is something to do with
/etc/samba/smbpasswd
/etc/samba/schannel_store.tdb
/etc/samba/secrets.tdb


not sure however if machine accounts get their way in accounts e-smith db or in shadow but I would say no.

I would say however that just copying those  files should be enough, and might also be necessary.

Were you able to log in with samba without copying those files ?

Offline Mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: Migration: selective migration using Lazy Admin Tools
« Reply #4 on: March 06, 2017, 10:55:27 PM »
Thanks for creating this thread.

lat-dump: is the size of the output essentially the total of the information bays plus user directories, and a bit more for user and group data?
- Mark

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Migration: selective migration using Lazy Admin Tools
« Reply #5 on: March 07, 2017, 02:06:58 PM »
lat-dump: is the size of the output essentially the total of the information bays plus user directories, and a bit more for user and group data?

No - lat-dump creates text files containing only the contents of the SME db files - 40k in my case. None of the server data is included.