I just installed samba to two servers. One is the primary and the other one acting as backup.
My passdb backend is tdbsam. So I have passdb.tdb and
secrets.tdb. I tried to cp and overwrite the pssdb.tdb and secrects.tdb on the backup server. However, when I restart smb, it seems that it was not working anymore with the ff relevant error:
Code:
Sep 12 12:45:00 test_server smbd[23918]: [2011/09/12 12:45:00, 0] lib/util_tdb.c:tdb_log(664)
Sep 12 12:45:00 test_server smbd[23918]: tdb(/etc/samba/secrets.tdb): tdb_reopen: file dev/inode has changed!
Sep 12 12:45:00 test_server smbd[23918]: [2011/09/12 12:45:00, 0] smbd/server.c:open_sockets_smbd(586)
Sep 12 12:45:00 test_server smbd[23918]: tdb_reopen_all failed.
there are lots of errors such as PANIC and SIGTERM regarding nmbd but I think the culprit was when I rsync the passd.tdb and secrets.tdb on the backup server.
Is there a better way to sync passwd of samba to my backup server?