[LON-CAPA-admin] Server migration
Guy Albertelli II
guy at albertelli.com
Fri Dec 15 12:28:25 EST 2006
Hi Stefan,
Gerd's list was close....
Let me know if anything need more clarification.
* install LON-CAPA on the new server as "standalone," using a new IP
address and DNS name, and test it
(you can use the rsync command below to seed /home with the existing
data, but you'll need to run the UPDATE script afterwards and set it to
standalone again after running the rsync command)
-- once you are ready to do the switch --
* shut down LON-CAPA services on the old server (stop httpd/loncontrol)
* shut down LON-CAPA services on the new server (stop httpd/loncontrol)
* replace the contents of /home on the new box with that of the old
rsync works well for this (run this command on the new machine):
rsync --delete -avze "ssh" polya.informatik.fh-wolfenbuettel.de:/home/ /home
(note that _is_ /home/ on the first path and just /home on the
second. If you don't get that correct you'll end up with
/home/home/ on the new machine)
* transfer /etc/passwd, /etc/shadow, /etc/group, /etc/gshadow
* if you had made changes to other files in /etc you will need to
migrate those settings over
* completely shut down the old box, or unplug the network, or change
the IP address on it. (make it disappear)
* change the hostname on the new machine to the same DNS name as the old
* either
- switch the IP address of the new box to be the same as the old
(I highly suggest this one. On Fedora you can easily change both
the IP and the hostname using the xwindows application
system-config-network )
or
- switch the DNS entry
* run the loncapa UPDATE prcoedure, configure it to be in the
production cluster and give it the settings you had on the old box
* reboot the new box
--
guy at albertelli.com 0-7-1-6-27,137
More information about the LON-CAPA-admin
mailing list