I just recently migrated to a new server using replication. I used a similar command to what you listed below:
cobbler replicate --master=$MASTER_SERVER_IP --distros=* --profiles=* --repos=* --systems=* I think replicate syncs all data by default unless you use the --omit-data option. The only real issues I had was with custom triggers that couldn't run on the slave system due to config issues, which breaks the replication unless you disable them on the master first then re-enable them after the replication. I also had an issue where the profile names associated with systems were using the wrong case compared to the profiles themselves. This was resolved by changing the profiles on these systems to match the correct case. After all of this the new cobbler server worked fine, even puppet external node classifiers. HTH, byron -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of petermity Sent: Friday, April 01, 2011 3:37 AM To: [email protected] Subject: Re: Setting up new Cobbler server from existing one Scott Henson <[email protected]> wrote: >On Mon, 28 Mar 2011 23:52:24 -0700, petermity <[email protected]> >wrote: >> If I have an existing Cobbler server all set up, is there an easy >> way to copy all of the distros, profiles, and other Cobbler >> aspects from it to a freshly created unit? >> >> Could I just copy /etc/cobbler, /var/www/cobbler, and >> /var/lib/cobbler to the new machine and then do cobbler sync? > >That might work, but you will likely run into problems. The correct way >to do it is to use 'cobbler replicate --master'. Generally you would >want to setup the cobbler settings file, start up cobblerd and then do >that. This is the way I do it, and it allows you to do all kinds of fun >things with selecting what you want brought down. Thanks, I wasn't aware of replicate (it's not mentioned in Cobbler's top-level help). The documentation at: https://fedorahosted.org/cobbler/wiki/ReplicateMaster is sparse, not enough examples of exactly how to use it. Apparently there used to be a parameter "--full-data-sync" - that's what I want to do. Would this be the equivalent (since I have no systems or images)?: cobbler replicate --master=$MASTER_SERVER_IP --distros=* --profiles=* --repos=* When looking into it, I ran across: https://fedorahosted.org/cobbler/wiki/MovingYourInstallToAnotherBox which has an unhelpful statement, "use the right flags". Again, examples would help. I also ran across this bug, over a year old - it would seem to imply that it won't be worth replicating because I won't have access to distros - is this bug bogus, or there's a workaround, or what?: https://fedorahosted.org/cobbler/ticket/566 _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
