Hi all, I have a Samba box (Mandrake 8.1, Samba 2.2.2). I have another hard disc that has Mandrake 9.0 + Samba 2.2.7 on it. I am looking to install this other hard disc into the Mandrake 8.1 box and migrate everything over. Do I need to do anything other than copy the contents of /etc/samba (smb.conf, secrets.tdb etc) over to the new hard disc to ensure that our Windows 2000 Pro workstations are still members of the Samba-controlled domain? Additionally, does anyone have any experience in setting up an entirely Samba-driven solution for fail-over? This place has two servers, and I was hoping to be able to setup Samba on both so that if the main one blows up/dies/gets stolen, everyone can still logon to the domain and see all their files (everyone saves all their stuff to the Samba box via drives mapped to their home directories and other places). All advice gratefully received. All amusing flames cheefully printed and stuck on the wall at the premises of subject. Chris
Try read help on samba swat home page on your 2.2.7 swat www or howto htmls. ***How To Configure Samba as a Backup Domain Controller for a Samba PDC*** But this is only for login good choice, for storing files is problem with change home directories to another server when PDC dies... For first Q about migration i must say that is not simply. Best setup is teoretical downgrade samba on new 9.0 to eq version 2.2.2 then copy all config and db files and then upgrade to 2.2.7a. You can try without this but not copy tdb files only overwrite smb.conf and smbpasswd plus recreate acounts from passwd 8.1. Plus transfer SIDs of machine and domain as is write in uplisted howto. Thats all folks. ----- Original Message ----- From: "Chris Nolan" <chris@itoperations.com.au> To: <samba@lists.samba.org> Sent: Wednesday, January 22, 2003 12:40 PM Subject: [Samba] Samba-to-samba migration> Hi all, > > I have a Samba box (Mandrake 8.1, Samba 2.2.2). I have another hard disc > that has Mandrake 9.0 + Samba 2.2.7 on it. I am looking to install this > other hard disc into the Mandrake 8.1 box and migrate everything over. > Do I need to do anything other than copy the contents of /etc/samba > (smb.conf, secrets.tdb etc) over to the new hard disc to ensure that our > Windows 2000 Pro workstations are still members of the Samba-controlled > domain? > > Additionally, does anyone have any experience in setting up an entirely > Samba-driven solution for fail-over? This place has two servers, and I > was hoping to be able to setup Samba on both so that if the main one > blows up/dies/gets stolen, everyone can still logon to the domain and > see all their files (everyone saves all their stuff to the Samba box via > drives mapped to their home directories and other places). All advice > gratefully received. All amusing flames cheefully printed and stuck on > the wall at the premises of subject. > > Chris > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
> Message: 21 > Date: Wed, 22 Jan 2003 22:40:18 +1100 > From: Chris Nolan <chris@itoperations.com.au> > To: samba@lists.samba.org > Subject: [Samba] Samba-to-samba migration > > Hi all, > > I have a Samba box (Mandrake 8.1, Samba 2.2.2). I have another hard disc > that has Mandrake 9.0 + Samba 2.2.7 on it. I am looking to install this > other hard disc into the Mandrake 8.1 box and migrate everything over. > Do I need to do anything other than copy the contents of /etc/samba > (smb.conf, secrets.tdb etc) over to the new hard disc to ensure that our > Windows 2000 Pro workstations are still members of the Samba-controlled > domain?/etc/samba/* should be sufficient for user accounts, but if you have printers setup with downloadeable drivers, you may want (depending on where the files were in 2.2.2 ) to grab /var/lib/samba/* and /var/cache/samba/*. Also, I hope you have all the contents of all the shares, since by default netlogon is in /var/lib/samba/netlogon, similar for profiles. And, when testing, ensure to test that profiles work on existing users, both those with admin rights on the machine in question, and those without.> > Additionally, does anyone have any experience in setting up an entirely > Samba-driven solution for fail-over? This place has two servers, and I > was hoping to be able to setup Samba on both so that if the main one > blows up/dies/gets stolen, everyone can still logon to the domain and > see all their files (everyone saves all their stuff to the Samba box via > drives mapped to their home directories and other places). All advice > gratefully received. All amusing flames cheefully printed and stuck on > the wall at the premises of subject. >IMHO, run with LDAP. Setup your main server as LDAP master, replicate to the backup server, and do file synchronisation with rsync. Point your samba on the backup server at it's own LDAP server ... and test. smbpasswd -S on the backup server to get the domain SID. Of course, while the master is down, password changes won't work. Packges of 2.2.7a where ldap referral *should* work (we just migrated our primary to a new server, and haven't yet setup the backup, so haven't been able to test) will be up soon at http://ranger.dnsalias.com/mandrake/samba/RPMS/9.0/samba-2.2.7a/ (-3mdk or later, mail me if you need them and they're not up). Buchan -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
> Message: 1 > From: "Marian Mlcoch, Ing" <mm@tsmp.sk> > To: "Chris Nolan" <chris@itoperations.com.au>, > <samba@lists.samba.org> > Subject: Re: [Samba] Samba-to-samba migration > Date: Wed, 22 Jan 2003 14:30:44 +0100 > Organization: =?iso-8859-1?Q?TSMP=2C_a.s._Presov?> > Try read help on samba swat home page on your 2.2.7 swat www or howto htmls. > ***How To Configure Samba as a Backup Domain Controller for a Samba PDC*** > But this is only for login good choice, for storing files is problem with > change home directories to another server when PDC dies... > > For first Q about migration i must say that is not simply. Best setup is > teoretical downgrade samba on new 9.0 to eq version 2.2.2 then copy all > config and db files and then upgrade to 2.2.7a.May be better (since there are 2.2.7 RPMs for 8.1 on the samba ftp mirrors) to upgrade the 8.1 box to 2.2.7 first, and ensure that's working fine, then migrate it to 9.0 while keeping the samba version the same.> You can try without this but not copy tdb files only overwrite smb.conf and > smbpasswd plus recreate acounts from passwd 8.1. Plus transfer SIDs of > machine and domain as is write in uplisted howto. >Well, 2.2.7 stores the domain SID in secrets.tdb, so it would be essential to take the secrets.tdb. Of course, you should still have a .SID file for 2.2.2 which you should backup, and 2.2.7 is supposed to be able to import a .SID file if it finds one ... But, if you want to run 2.2.2 on Mandrake 9.0 you're on your own ... Buchan -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 22 Jan 2003, Chris Nolan wrote:> Additionally, does anyone have any experience in setting up an entirely > Samba-driven solution for fail-over? This place has two servers, and I > was hoping to be able to setup Samba on both so that if the main one > blows up/dies/gets stolen, everyone can still logon to the domain and > see all their files (everyone saves all their stuff to the Samba box via > drives mapped to their home directories and other places). All advice > gratefully received. All amusing flames cheefully printed and stuck on > the wall at the premises of subject.Please see the Samba PDC/BDC HOWTO for more information. Its included in the the Samba distribution. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+NYOHIR7qMdg1EfYRAkjlAKDsa0rJWYbzGmMnbOIzBYklSb098wCfXFjQ pk25ZcIeY8AgGedo3QdTNLU=NcKu -----END PGP SIGNATURE-----