(copied from 2013-06 Move
New machine: mercnew.bonmot.ca
Big Picture
- Get security & authentication running
- Do hardening - guide here: https://www.debian.org/doc/manuals/securing-debian-howto/ch-sec-services.en.html
- Copy /local/ into place, copy everything else into /mercury_old/
- Bring services on line one by one.
- mercnew -> mercury, mercury -> mercold
- we'll preserve services running on Bonmot and move without a major outage
- we'll help Moose with $$ for hardware - say, disk, for about $400
- there's no reason to stay with Solaris so we'll move to Debian Linux, virtualization by proxmox, inside an openvz container.
Tasks (roughly in order)
- [x] DAN copy /etc/passwd & /etc/shadow over
- [x] rsync + config files
- [x] begin sync'ing old bonmot /local/ to new one
- [ ] DOUG hardening from Debian guide (above)
- [x] DOUG sudo
- Move DNS
- [x] Configure named & copy zone files over, begin serving
- [x] Notify our secondary to being updating from new
- [x] Update glue record for bonmot.ca
- [x] DAN rsync script
- [x] /local --> /local
- [x] everything else --> /mercury_old/
- [ ] bind9
- [x] Dan: install mysql
- [ ] DOUG Change root password
- [ ] Get apache2 up, move httpd.conf, serving home directories
- [x] Drupal 7
- [ ] Drupal 8
- [ ] make sure that only apache2 is coming up
In progress
- [ ] Dan get $400 to Moose for hosting
To be added to the to-do list maybe
- [ ] Patch with apt-get update ; apt-get dist-upgrade
- [ ] Harden with fail2ban
- [ ] Move backup source from old to new machine.
- [ ] Decide on an http server -- apache2
- [ ] Move composium.org & paradisecinema.com
- [ ] Move gay.hfxns.org
- [ ] Move shinesre.com and a few more domains
- [ ] Test & document procedure for moving a Drupal site over (see below)
- [ ] One by one, move Drupal websites: condominiummana, cygnettrailers, crowfeather, wayves, geoearthing, w2sa
- [ ] Install Oddmuse & its modules
- [ ] Move shinesre.com
- [ ] Move performance.shinesre.com
- [ ] Get mail system running - postfix & dovecot
- [ ] Move rest of bonmot.ca sites - will be intense.
- [ ] Look at fail2ban configuration file & tune it
- [ ] Fix up logs.daily
- HUP with kill -HUP `cat /var/run/named` etc.
Move Drupal Site
- somehow lock the site so no changes can be made
- mysqldump the database to e.g. wayves.ca.sql
- scp wayves.sql over to mercnew:/tmp/wayves.ca.tar
- scp both files to mercnew:/tmp
- unpack the tarfile into /usr/share/drupal7/sites/
- mysql < /tmp/wayves.ca.sql
- change the dns and wait for the traffic to move over