Difference between revisions of "Gourd/Einstein Migration Plan"
m |
(→Tomato) |
||
Line 71: | Line 71: | ||
'''change IP Addresses in network-scripts''' | '''change IP Addresses in network-scripts''' | ||
− | /etc/openldap/slapd.conf | + | /etc/openldap/slapd.conf '''done''' |
− | /etc/httpd/httpd.conf | + | /etc/httpd/conf/httpd.conf '''done''' |
− | /etc/httpd/conf.d/mailman.conf | + | /etc/httpd/conf.d/mailman.conf '''done''' |
− | /etc/dovecot.conf | + | /etc/dovecot.conf '''done''' |
− | /etc/postfix/main.cf | + | /etc/postfix/main.cf '''done''' |
− | /etc/mailman/mm_cfg.py | + | /etc/mailman/mm_cfg.py '''done''' |
===Gourd=== | ===Gourd=== |
Revision as of 16:32, 31 January 2010
This page is for notes on the steps needed in order to fully migrate from the current Einstein system to the new Gourd hardware and Einstein System.
Gourd
Gourd will serve as the file server for home folders and mail, as well as the Virtualization host for Einstein and other Virtual Machines such as Roentgen and Corn
Migration Checklist for Gourd
- Drives and RAID
- Configure hard drives and RAID arrays as outlined here
- Copy the 250GB system drive pass-thru disk to a 250GB RAID 1 volume on two 750GB disks (Slots 1 and 2) done
- Remaining 500GB on each drive spanned to a 1TB RAID 0, mounted on /scratch done
- Two 750GB disks as pass-thru, set up as software RAID (Slots 3 and 4) done
- 500GB RAID 1 for home folders (/dev/md0) mounted on /home done
- 100GB RAID 1 for Einstein's /var/spool/mail (/dev/md1) mounted on /mail done
- 150GB RAID 1 for virtual machines (/dev/md2) mounted on /vmware and added as a local datastore in VMWare done
- Two 750GB drives in Slots 7 and 8 as hot spares done
- Configure hard drives and RAID arrays as outlined here
- System Setup
- NFS
- Set up NFS Shares for /home and /mail done - Currently /mail share accessible by Tomato, need to change to Einstein at switchover
- Create npghome.unh.edu alias interfaces on Gourd done
- Add to DNS configs done - Assigned farm IP of 10.0.0.240
- Needs to be added to Servers in LDAP for iptables to work done on Tomato
- Change Automount configuration in LDAP (possibly also on clients) to use npghome:/home instead of einstein for /net/home done on tomato
- Ran into some trouble with this setup on feynman, could login but apps wouldn't run and Gnome would eventually freeze. Tested several possibilities:
- Setting npghome to Einstein's IP address in hosts file worked
- Bringing up npghome alias interfaces on Einstein worked
- On a hunch tried bringing down the firewall on Gourd, and then I could login and mount /net/home to npghome with no issues. Fixed the firewall configuration (ports were set incorrectly, added eth0.2 as the unh interface instead of eth1, and had the iptables script going to tomato's ldap since it contains the entry for npghome which needed to be added to the firewall, and automount to npghome is now working on feynman, parity, gourd, and tomato without issue as of 01/16
- Ran into some trouble with this setup on feynman, could login but apps wouldn't run and Gnome would eventually freeze. Tested several possibilities:
- Backups
- Change rsync-backup.conf so that /mail and /home get backed up
- Create new LDAP group for backups so that gourd doesn't get backed up a second time as npghome - change backup script in Lentil to use new group
- Virtual Machines
- Copy virtual machines from Taro to /vmware on gourd
- Corn done
- Roentgen
- Copy virtual machines from Taro to /vmware on gourd
- NFS
Einstein VM ( Currently Tomato )
- VM Setup done
- Create the Virtual Machine, Install / setup OS done
- Tomato is currently a CentOS 5.4 machine running on gourd
- Ran into issues with rhn since we don't seem to have a spare license to register tomato. We used CentOS so that we could install and update necessary packages and test out the new configuration, but we can set up Tomato with Einstein's license once that is free if needed, and then copy configs over from the current machine.
- Tomato virtual machine is setup to boot when Gourd boots. Tested this setup and gourd comes up successfully after a reboot. Initial login on gourd is a bit sluggish as you have to wait for tomato to finish booting, but works fine after a few seconds.
- Tomato is currently a CentOS 5.4 machine running on gourd
- Create the Virtual Machine, Install / setup OS done
- LDAP Configuration done
- Copied LDAP configuration from Einstein. Have tested authentication with tomato's LDAP on feynman, gluon, parity, gourd, and tomato itself. Seems to work as well as Einstein.
- Firewall setup done
- used old Einstein's iptables-npg config. Probably need to clean up some of the old unused rules from the old machine, though.
- Mail Setup
- Copy over configs for Dovecot, Postfix, Spamassassin, Mailman and Squirrelmail done
- Set up mail services using Einstein's current setup. Copied over CMUSieve plugin from Einstein.
- Dovecot seems to have some issues accessing mail over NFS mounts. Initially received the following error in /var/log/maillog - "dovecot: Mailbox indexes in /var/spool/mail/aduston are in NFS mount. You must set mmap_disable=yes to avoid index corruptions. If you're sure this check was wrong, set nfs_check=no" Changed the mmap_disable setting in /etc/dovecot.conf to yes. Considering making other changes according to the Dovecot wiki article on NFS. Will test to make sure they don't break anything.
- Mailman still needs setup
- Need to setup Apache for Squirrelmail. Also /var/www from old einstein for automount. Should websites from Einstein run on the new VM, or move to Roentgen? done - websites will be left alone for now but should probably stop being served from einstein
- Squirrelmail works, had some trouble caused by incorrect permissions on config files, now fixed.
- Copied /var/www/html from Einstein. Need to add entry in export for automount
- Copy over configs for Dovecot, Postfix, Spamassassin, Mailman and Squirrelmail done
Day of Migration Checklist
- Need to send out e-mails reminding users of necessary steps on their end to prepare for the migration on Sunday. Sent initial e-mail, currently drafting the reminder before Friday night
- Prepare Tomato to take over for Einstein
- We should do an initial rsync of mail and homes on Friday night or Saturday so that the day-of sync will take less time.
- Tomato can be reconfigured to prepare for the switchover ahead of time. We will need to login via the VMWare interface and shut down the network interfaces to avoid conflicts with the current Einstein and then make configuration changes so that it identifies itself as Einstein (listed below)
- At 1pm Sunday we will bring down mail on the current Einstein and then boot the newly reconfigured Einstein VM.
- Test e-mail, webmail, ldap etc - login from several workstations to make sure things are authenticating correctly.
- If this is successful we can begin the process of switching automount to use npghome on workstations.
- This may not require a reboot. I tested it on feynman and all I had to do was make the changes to auto.net and then restart autofs while only logged in as root. We can try it this way but be prepared to reboot if there's some issue with nfs.
List of configuration files where "tomato" needs to be changed back to "einstein"
Tomato
/etc/sysconfig/network change IP Addresses in network-scripts
/etc/openldap/slapd.conf done
/etc/httpd/conf/httpd.conf done /etc/httpd/conf.d/mailman.conf done
/etc/dovecot.conf done /etc/postfix/main.cf done
/etc/mailman/mm_cfg.py done
Gourd
/usr/local/bin/netgroup2iptables.pl -- set to authenticate to tomato. change back to einstein. /etc/exports -- Change /mail share so that it allows connections to Einstein's IP addresses, not tomato's
Other Machines
Other workstations and servers will have to have their configurations for /etc/auto.net changed so that home is mounted via npghome and not einstein. Other configs can be left the same apart from those whose ldap configurations were temporarily switched to use tomato for testing - Probably just Gourd, Feynman, Gluon and possibly parity.