Server Migration Complete
I finished the last piece of my home web/mail server migration today! Several weeks ago, my home web/mail server went down with a bad power supply fan, which meant all of my web sites and email services were no longer available to my family and paying customers.
First some history: In the not too distant past I actually ran all of these services from multiple rack mounted servers in my garage, but over the years and after paying way too many high PGE bills, I consolidated all of my servers into a single Dell small form factor server running on my desktop. My PGE bills naturally went down, but I was still at the mercy of how reliable my DSL connection to the world was each day. And with a business DSL connection, the fastest upload speed I was able to get in the comfortable price range was 768 megabits per second. Not nearly fast enough for a robust email and web server environment in my opinion.
Well, when this little Dell went down a few weeks ago, it occurred to me that the time had come to end this home server experiment and move all of my sites and services into a hosted environment. But I couldn’t do all of that overnight, so I quickly ordered a replacement fan for the Dell server and until that arrived, I was able to continue operating the server with the case open and by pointing a small fan at the open CPU. This kept things cool enough to run each day. When the replacement power supply arrived, I was able to get that installed in a record 10 minutes (for me anyway), close the server case and resume normal operations!
The next step was finding a suitable Linux-based hosting provider with affordable monthly rates, shell access and the type of granular control I would need to continue hosting my websites and email. After evaluating a few candidates, I settled with a company called HostMonster.com. In addition to unlimited domains, unlimited email accounts, unlimited server space and unlimited bandwidth, the price per month dropped to an incredible $3.95 if you paid for three years up front. Sounded like a great deal, so I signed up and started the migration process for all of my websites and email customers.
Fortunately with shell access and using rsync over SSH, I was able to upload/copy all of my data (and there was a lot of it) over to the new HostMonster server. The migration process took a number of days, since my upload speeds from the house are so slow. A couple of highlights include that HM used the Dovecot IMAP mail server, so the formatting of my existing mail boxes was exactly the same as where they would ultimately be hosted. What a time saver! Setting up Apache and the various domains was pretty easy, in addition to keeping things clearly compartmentalized on the server too. I’m also very happy with being able to offer my customers a much better webmail experience too. Not only does HM have SquirrelMail (which my customers had already been using), but Horde and RoundCube webmail are also available.
The last phase of my server migration involved moving my entire Nagios server/services monitoring application from my home server to the Amazon EC2 Cloud. I got this done today. Essentially I brought up a new server instance in the Amazon Ec2 Cloud, installed all the LAMP stack requirements and then installed and configured Nagios. I was able to save a great deal of time by rsyncing my existing plugins and configuration files from the old server. With a few tweaks here and there, Nagios came up clean and is now monitoring all of the sites and services offered by my employer. And I can sleep better at night knowing that the monitoring is now being done outside of my home network, which can be spotty on its own, and lead to erroneous notifications.
And finally, the coup de grâce. I was able to power off the little Dell home web/email server this morning. Sleep well buddy, you done good.


















Social Links