BowerStudios.com Web Server upgrade
daniel Thu, 07/07/2011 - 7:13am
The BowerStudios.com web server was down for a couple of days this past week. We had a power outage here, and when I returned and tried to power it back up, it was dead. My guess is the power supply is fried. I took the opportunity to just pick up a new box instead of reviving the old hardware as it has been running for about 5 years. Got a very nice deal on a return at Microcenter.
I powered it up once to make sure everything was in order, and then got to work. Out came the original hard drive, and to be safe, the dvd drive. This little box only has a 250 watt power supply, and I'm plugging in 2 hard drives for a mirrored raid array. In goes the Raid Array, and that's all the hardware tinkering that needs to be done.
Next, I fired up the machine, and Ubuntu comes up faithfully, although with a message about a degraded raid array and a missing network interface. I used:dmesg | grep net
to find out that my network card was no longer eth0, but eth1. I edited /etc/network/interfaces, and replaced the references to eth0 with eth1, restarted the box and networking is back. I started apache, which is the only thing I require to be started manually due to my protected ssl cert.
I updated my router to forward to the new ip address that my server was pulling down due to the new MAC address, and noticed that my website was still broken due to the database not being accessible. It turns out that the only app with the ip hard coded was mysql. I updated the configuration in /etc/mysql/my.conf and everything seems to be in good shape for the most part.
I had gotten the degraded raid array message, so I started looking into it. sudo cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdb1[0] sda1[1]
976759936 blocks [2/2] [UU]
unused devices: none
It appears everything is in good shape, no error messages at least, but I'll need to test some more to be positive.
Only thing left to do now, is actually mount the raid array into the chassis (raid array is still sitting in old server with cables - power and sata - strung over to the new one) and plug in the printer.
- Log in to post comments
Comments
More Raid info
Submitted by daniel on Wed, 08/31/2011 - 12:27amA handy link at advosys.ca
Also, some terminal output:
$ sudo mdadm --misc --query /dev/md0
/dev/md0: 931.51GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
$ sudo mdadm --misc --detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Sun Mar 7 19:57:03 2010
Raid Level : raid1
Array Size : 976759936 (931.51 GiB 1000.20 GB)
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Aug 31 00:23:36 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 4722f385:3eb36125:a9324b34:3ad9ad4c
Events : 0.1034658
Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 1 1 active sync /dev/sda1