Principles
- 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] Delete unused Drupal sites from old server
- [x] Decide if we're going to run our own mysql or share one with Moose: answer: run our own for now, and possibly forever
- [/] Dan get $400 to Moose for hard disks (2013-06-03: $325 done)
- [ ] Get remaining $75 to Moose for hard disks
- [ ] Doug get $200 to Dan
- [x] Get a container and IP number
- [x] Install Debian
- [x] Configure rsync daemon on new
- [x] Create rsync script venus:/local/etc/copy_to_new.sh to sync old to new
- [x] Create script mercnew:/usr/local/bin/bonmot_move_fix_uids to fix the UIDs
- [x] Get the usernames moved over with their new UIDs:
- 101, 102 etc get mapped to 1001, 1002, etc
- 10001 --> 1101, 2002 --> 1102
- [x] Get sudo config moved
- [x] Change root password
- [ ] begin sync'ing old bonmot /local/ to new one
- [ ] add /local/etc/ to exclude list so we can begin making changes there
- [x] back up the rest of mercury to /mercury_old/ so we can get to the conf files etc.
- [x] Get apache2 up, move httpd.conf, serving home directories
- [x] Configure mysql and test binary database move -- DOESN'T SEEM TO WORK
- [x] Patch with apt-get update ; apt-get dist-upgrade
- [x] Harden with fail2ban
- [ ] Move backup source from old to new machine.
- Move DNS
- [x] Configure named & copy zone files over
- [ ] Update glue record for bonmot.ca
- [ ] get all the name server secondaries checked & fixed - currently a minor mess
- [x] Decide on an http server -- apache2
- [ ] Move composium.org & paradisecinema.com
- [ ] Move gay.hfxns.org
- [ ] Move shinesre.com and a few more domains
- [x] Install mysql
- [x] Install drupal7
- [x] Test & document procedure for moving a Drupal site over (see below)
- [ ] 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