(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/
- [x] bind9
- [x] Dan: install mysql
- [x] DOUG Change root password
- [x] Get apache2 up, move httpd.conf, serving home directories
- [x] Drupal 7
- [x] Drupal 8
- [x] 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
- [x] Patch with apt-get update ; apt-get dist-upgrade
- [ ] Harden with fail2ban
- [x] Move backup source from old to new machine.
- [x] Decide on an http server -- apache2
- [x] Move composium.org & paradisecinema.com
- [-] Move gay.hfxns.org
- [x] Move shinesre.com and a few more domains
- [x] Test & document procedure for moving a Drupal site over (see below)
- [x] One by one, move Drupal websites: condominiummana, cygnettrailers, crowfeather, wayves, geoearthing, w2sa
- [x] 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