Archive for the ‘Server Maintenance’ Category

Bloggin’ Upgrade

Thursday, May 7th, 2009

For all of you who have tried to make comments, but have been unable to for a variety of reasons, the most common being that my posts have vanished, or you have been unable to login, I have some very good news. I have updated the blog software to the most current version. Hopefully that means that there won’t be any more missing/phantom posts. I have also changed the way that comments work. Now you just need to fill in the form, my server checks it for spam and blocks it if it thinks it is spam. Hopefully we won’t lose any one comments. It has to be filled with quite a bit of spam to be blocked, so we shouldn’t have any issues. Good luck and thanks to every one who is leaving comments.

The trouble with other peoples hardware

Sunday, April 26th, 2009

Last night while I was sleeping (or rather, trying to sleep, my allergies have been getting to me the last few days) I received a phone call. It was one of my clients. He said that he had been unable to access his computer for the last 40 minutes and wanted me to check it out. It never seems to fail, I leave for the weekend, and that is when the disasters happen. Fortunately, last week I replaced my border switch with a Cisco 2924, this made it possible to troubleshoot a lot more without actually being on site in the data center. I found that all my hosting equipment was working right and that my clients computer had a link. So I called the on call technician and had him restart the computer. That still didn’t fix the problem, so I had the technician log in. We found that the default network route was configured wrong (don’t ask me how that happens in the middle of the night) so I fixed the default route (which meant sending the information to the default router rather than the network address.) which fixed the problem and everyone is happy now.

Getting MySQL to run on FreeBSD 7.0

Thursday, April 10th, 2008

During my server migration, I decided that I was going to switch from five or six random Linux distributions to using a single operating system. My place of employment seems to have a fondness for FreeBSD so I decided to give it a whirl. Although very similar to the several Linux distributions I use, FreeBSD has some differences. First installing software, I have finally gotten accustom to apt-get on the Debian based distributions I use as well as YUM (Which is on the RedHat Linux variants) because FreeBSD uses an entirely different package management system I had to learn something new. (Which is always a good thing)

FreeBSD uses two different methods. I am going to focus on the Ports collection since this way seems to be the most flexible, I must warn you though, compiling everything can become a pain in the neck if you have a slow machine. Fortunately for me, all of the servers I am using in the Server Migration are new and quite fast.

The Ports collection is relatively easy to use. Simply go into the ports collection.


server# cd /usr/ports

Now you will need to find the package you want to install (I will forgo the instructions on how to do this, as I am assuming that you know how to do that already.) In my case I started with MySQL 5

server# cd databases/mysql50-server
server# make install clean
server# mysql_install_db
server# chown -R mysql:mysql /var/db/mysql
server# /usr/local/bin/mysqld_safe -user=mysql&
server# mysqladmin -u root password <password>
server# vi /etc/rc.conf

Now you will need to tell the server to automatically start the MySQL daemon when the computer restarts. Add the following line to your rc.conf file (Which you will be editing if you have followed the previous steps.)

mysql_enable=”yes”

There you go, as long as no error messages show up, your MySQL 5.0 server will be running and will be usable.

Server Migration

Thursday, April 10th, 2008

I own a Utah web hosting business called Preciant Hosting. Recently I have started experiencing several problems with one of my servers. It would constantly go up and down. My monitoring software (Nagios for those that are interested) was showing that the server would be up for an hour or so, and then go down for three-four hours while I tried to get the data center technicians to reboot the machine. Being as how I provide services for several customers from that machine, this up and down time is NOT acceptable.

I had previously decided to purchase some servers (rather than use dedicated servers spread around the nation) and move into a local data center. Since I work for a company that provides web hosting and other data center services, (such as colocation, which is what I needed) I got some rack space in the Fibernet & Nethosting data center and ordered my servers.

The servers have finally started to come in and I am slowly setting them up and moving them into the data center. I am planning on sharing all of my wo’s involved in migrating all of my servers and I am also planning on sharing my solutions to the problems

Return often to find out about my trials and solutions.


Switch to our mobile site