Blog Navigation
Partners
Latest Activity
Phil explains how to use the old telephone tones to wane off telemarketers!
Posted on: March 31st, 2010 by Famous Phil
I’ve spent the last year thinking of ways that I could effectively make a decent April Fools joke. Unfortunately, I am not a creative person in any aspect and I often end up using the ideas of others to make seemingly creative and innovative progress. I’ve never let this stand in my way of progress and I never intend to let it. So instead of doing a prank, I’m going to discuss some “fails” over the past year that I’ve found that I liked for one reason or another.
But first… A few pranks that I was tossing ideas around for but ultimately decided to let go of. Maybe some year
So now onto some of the fails of the year that I really didn’t like when they occurred:
Obviously, I’m not perfect, but I do find that I learn from my mistakes quickly. Hope you enjoyed reading a few of my biggest failures over the past year. My next blog is going to deal with sound wave analysis and the “Loudness Wars”, but I need a bit more research before I jump into the topic.
Tags: april fools, fail
Posted in Student Life
|| 2 Comments »
Posted on: March 11th, 2010 by Famous Phil
For all of you who have no clue what single user mode is, it is a recovery environment for Linux based servers. Single user mode allows for the system administrator account (root) to login via the local server (the console) to fix problems that prevent the server from coming up normally.
Single user mode can be triggered by a lot of factors, but there are two huge factors that can cause this. One is when the system’s drive information file (fstab) becomes inconsistent with the server’s configuration. The other time when a system will boot into this mode is when a file system is found to have errors on it. Linux automatically checks its file system occasionally on boot, which is why single user mode may occur without much notice (that is if the check can’t quickly fix the problem on its own).
Single user mode presents only the root file system (/) to the root user after login and this file system has only read access. This is to allow for file system checking since this mode is used commonly for running file system checks and repairs. If your file system becomes corrupt, the last thing you want is for your computer to write to the file system and lead to further corruption. The admin must mount the file system as read write in order to modify anything on the drive.
I’ve been in single user mode twice now for neglecting to verify all the information in the fstab file. My first time in single user mode was not fun and I ended up using a Ubuntu live cd to fix the problem since I didn’t have enough patience to look up the command. After my first time, I looked up the command in case I ever needed to enter single user mode again. This effort paid off since I knew that I would be rebooting one of the servers a little earlier that had significant edits to the fstab file. Although I was certain I didn’t make any mistakes, I didn’t check for duplicate entries. This caused the server to boot into single user mode. My job was to simply remove the duplicated line and reboot the server. Since I can never remember the command, I decided to write this blog. Remember this is a Centos 5.4 server running CPanel.
The command is: mount -n -o remount /
That command will mount the root file system (/) as a writable file system, thus allowing for a text editor such as vi to write edits back to the file system. I simply used vi to remove the duplicated line in the /etc/fstab file and rebooted and the server is back up. Hopefully I won’t see another time of single user mode, but as an admin, I’ve grown to expect stuff like this. I thought I would share the command so I don’t ever get lost again trying to find it
Tags: mount, single user mode, write
Posted in Hosting / Server Administration
|| 1 Comment »
Posted on: March 11th, 2010 by Famous Phil
Today, I will pursue a topic that all of us wish wasn’t necessary to discuss, but it is a fact of life. Backups are required in life and this isn’t a new concept, but poor backups can be devastating when you find out that it doesn’t work (and that is usually when you need it the most). I’ve spent a lot of time making changes to my backup systems over the years, but they are never perfect and I constantly find new flaws that I constantly work to fix.
A few weeks ago, I found a major flaw in my backup system that I never really thought about in the past. My backups would run every night by essentially pushing the latest backup to another server that I run. This server had an account on it where the backup would neatly upload then not be touched again until the next backup cycle ran. To access the backup, all I had to do is login as root on my production system (the system that runs famousphil), then request the backup. Passwords are entirely controlled through keys, so I didn’t have to do anything special or know anything to gain access to my backup server. Unfortunately, if all I needed was my root password / key to do that, if a hacker got into my system, they essentially could completely destroy my backup system as well.
With the ever growing threat of hackers attempting to compromise my network of servers, I’ve began giving more thought to hack attempts and prevention along with hard disk and other physical server failures (which also happen). Because of these thoughts, I’ve implemented a new backup routine that fixes most of my issues with a hacker gaining access to my network. If I discover a hacker has penetrated one of my servers within 12 hours, I will always be able to restore a backup that is no more than 3 days old now. The same goes for a hard disk failure / natural disaster. I do not feel it is in the best interest of Matthouse to disclose the new backup system and exact scheduled times, but I thought that it would be appropriate to share a little insight into that thought that I’m sure many other system administrators might fall into at one point or another.
Another threat that I found with my backup system was that part of my backups were incomplete. For any admin that thinks backing up /var/lib/mysql is appropriate to backup MySQL, think again. About 2 months ago, I thought this was appropriate, so I began backing up MySQL this way (I never really thought to check it initially since the server was brand new). I normally check the redundancy of my backups about once every 2-3 months. During my redundancy check, I always check everything and I discovered that I could not restore the MySQL database server from that directory easily. Since I have the original server still running, I came up with a new backup procedure that works much better and can actually be restored.
For all of you who need to backup an entire MySQL server, here are the 2 commands that will help:
Those are the 2 major points I wanted to make in this post. In conclusion, I recommend that you make a backup schedule for your servers and verify that loop holes don’t exist in it. I’m constantly looking for loop holes and I patch them as I find them. Also, verify your backups! I would have never realized that MySQL wasn’t being backed up unless it was for verifying that my backups are in tact and can be restored. I verify my backups every other month and I recommend that every system admin does so.
For anyone at home, HARD DRIVES DO FAIL. I strongly recommend keeping any data that you could not afford losing on a flash drive or external hard drive where if your computer did fail, you would still have your data. Unfortunately, data is unrecoverable at cheap rates, making a backup is a cheap insurance policy to avoid complete disaster!
Tags: backup, hacker, hard drive failure, mysql
Posted in Hosting / Server Administration
|| 2 Comments »