Saturday, 21 March 2009
Blog Moved, etc.
This week has been a busy one. Not only have I been working on wired, I've also been campaigning to become station manager at STAR (we still await results).
At work, we've got a new website as well. Check it out at http://www.perthfm.co.uk/ It's better than the old one and has some content. Talking of which, I got my photo taken and have submitted the required material for the "DJ Blog".
Monday, 3 November 2008
ResNet, FATMAN and JA.NET - A Romantic Tale
To see the embeded video, click on the read more link.
Friday, 31 October 2008
WiredSoc Presents...
A video of it has been recorded and if it makes an appearance online, I'll be sure to post.
Oh, and the talk was followed by an EGM. We now have the same person as last year looking after the website and I get a vote on the executive committee. :)
Tuesday, 28 October 2008
Wired Nosedives Again
The other day, wired crashed on us again. This time, no warning, some services still running. Rather odd. So I get called over to take a look at the physical box. Jaunty is there with the screen out and wired taking a rather serious hexdump:
Of course, the keyboard is not responding so we cannot scroll up to get any other messages. All we could do was reboot and investigate based on this photo and the logs (which were pretty bear).
Not good and we still can't pinpoint the issue. However, today wired went down again. This time the more regular cannot access services type of going down.
However, things were not quite so straight forward. Both the physical and virtual machine were still running! It turns out that the virtual network interfaces had been dropped and came back after a networking restart.
I really think with all these issues, the migration to the other machine can only make things better.
Wednesday, 22 October 2008
Changing Services
The current plan is to move the services in the wired VM onto the new physical box. This has been completed but is not yet in use as we're testing it (OMG wired testing something!?!). This new box is also running a VM that will only provide shell services. The benefit being that if the shell system is compromised (e.g. fork bomb, root exploit) the rest of our services should remain up.
But why the move from smoked to the new box? Well, the plan is to used smoked for storage services only (e.g. databases, nfs). So we have a split between services and data.
The migration will NOT be completed until we have tested the new setup. This will involve poking the committee to use the new services. And in Kieran's words "don't just log in, type ls and exit".
We did have a bit of fun with cron jobs running across two machines. Due to one updating the pid file then the other, we ended up with a huge number of GLaDOS instances on the IRC server.
Wednesday, 8 October 2008
Virtually Broken
Unfortunately this fails. Not because somebody screwed up with tar and root like last time but because the kernel module decided to unload itself. This was actually nothing to do with the crash but did give some rather concerning error messages.
If this is a one off, we have no problems but if it happens again, we should probably consider other options to KVM. We've tried Xen which seemed to "pause" execution and resume it after an arbritary period of time. As it didn't crash out, we had no error logs and could find no similar situations on the internet. So that option is also out.
VMWare has been toured as an option as well as OpenVZ. As we only have on VM, we could actually just run wired on the bear metal. The last option seeming the most stable as the host OS has not actually crashed out yet.
Wednesday, 10 September 2008
Power Goes Out... So Does wired
So, I come to St. Andrews to sort a few things out only to find a power cut when I turn up. Hmm... puts a bit of a dampener on things. Anyway, power comes back on, wired remains offline. Turns out there is a number of issues causing boot to fail (on the VM not the host). After much work from Kieran it is operational again let's hope it stays that way.
Wednesday, 3 September 2008
Changes Across The Board
Upgrading the Xen version did not fix the problem. So, we've simplified things a bit. This allows us to get a server up and providing services.
We no longer use Xen for virtualisation (though we may use it in a VM in the future). We now use KVM / Qemu. The plan is to have one VM as the main (live) system. This is backed up using LVM snapshots. The main VM "talks" to the host system holding all of the data.
Eventually further VMs will be created including Dev (testing, etc) and *possibly* a VM running Xen. Why? Well, it allows us to create more VMs in a controlled environment for users, etc.
Anyhow, service should be resumed as normal now.
Sunday, 31 August 2008
Online All The Time... Hopefully!
Upgrading the Xen version did not fix the problem. So, we've simplified things a bit. This allows us to get a server up and providing services.
We no longer use Xen for virtualisation (though we may use it in a VM in the future). We now use KVM / Qemu. The plan is to have one VM as the main (live) system. This is backed up using LVM snapshots. The main VM "talks" to the host system holding all of the data.
Eventually further VMs will be created including Dev (testing, etc) and *possibly* a VM running Xen. Why? Well, it allows us to create more VMs in a controlled environment for users, etc.
Monday, 18 August 2008
Documentation, Documentation, Documentation
You can read the documentation here. Only wiredsoc members can edit the content.
Wednesday, 13 August 2008
Busy Times Here
A few points about the new server. It's far more powerful than the current/old server. Also, we're making use of Xen virtualisation. There are many arguments for this approach, including the ability to pull a virtual machine if something goes bad. There's also the flip side - more complicated administration.
A decision has been made to make the transition between the old and new server progressive. So, we launch the new service one at a time. This should reduce the problems we run into and allows the services to continue to be used until the new ones are ready.
One example is the database migration. We run both a mysql and a postgresql server. So far only the mysql server has been migrated. The process was simple, get mysql to dump everything (that includes using the --all-databases flag) and them import it into the new server. Once this was completed, we took the old server offline and updated the hosts file on our server. This was done as the hosts file was ponting the aliases to the old server not the new server as our DNS server is. Once the entries were removed, we fell back on the DNS server and the new server was providing the data.
This kept most things working except for those pointing to the old server directly. These have now mostly been updated and are working again.
Wired is not the only server I have been bringing online. I have also been working on my own family server (steelehost.dyndns.org). This is acting as a web, file, backup and proxy server. The proxy part may sound a bit odd for a family but it is running squid and ad removal. No annoying adverts! However, the downside is the ad removal can be a little overzelous. Some corporate websites have the banners replaced with "this ad has been zapped". I'll post a screenshot soon on that one.
The plan is to eventually get subversion on the server and use it for various personal software projects.
Friday, 16 May 2008
Talking Servers
Amongst the more interesting facts were:
* Wired's e-mails are spam filtered by the university mail server. Even though my inbox is full of messages about "love sticks" and pills, most of it is apparently dropped.
* I am not allowed to blacklist logcheck emails as spam... :)
* On the new server, there will be a virtual server dedicated to the resource intensive service that is.... IRC.
Still, it was a very interesting presentation. I thought I'd better not write about it on the night due to the consumption of small amounts intoxicating beveridges.
Wednesday, 14 May 2008
Debian and OpenSSL
As we no longer have such a random seed, the keys become predicable. Just like old computer games. The reason: random number generators are not actually random. I was taught at school that they follow a list of random values that is pre-set. So the same seed will produce the same numbers. Which actually proves useful for testing. Not so much for keeping things secure.
Kieran has informed me the servers have been updated (bar starfm as it takes out the playout system when we do it).
Thursday, 8 May 2008
Keeping an Eye on Things
To keep an eye on servers, systems administrators often make use of
various monitoring tools. For example wired makes use of programs such
as logcheck, integrit and tiger. These are all valuable tools checking
system logs, file changes and system changes (these can suggest an
intrusion has occurred).
Being useful tools, they also tend to
e-mail the administration team with regular updates. The down side -
they can do it several times a day. For example, my inbox currently has
various messages along the lines of
May 7 23:03:40 wired sshd[304]: error: PAM: Permission denied for illegal user root from aaa.bbb.com
Ah,
the joy of botnets. I know this is the downside of such tools but
something I will have to put up with as we look out for real problems
that are within our control.
P.S. The root account is disabled for remote login if you're feeling bored / silly enough to try it.
Tuesday, 6 May 2008
Forgetfulness and Last Minute
Anyway, yesterday we were asked to provide assistance for live artists on one of STAR's programs less than 24hrs before the show. Thankfully, a few of the tech team did step up to the plate and help out! But, we technically should have said it was not doable.
On the forgetfulness front... I did walk in to the studio the other day to a recorded show still running on loop from CD the night before. It looks as though they expected people to turn up at midnight / 1am to stop the CD while they were away. No great problem fixing it... but it gave me an excuse to play Meat Loaf on the radio!
A bit of tech update as well. Wired's new server seems to be moving along nicely (according to the updates I've read from Hash9). We are going virtual with this server using Xen (the hardware supports it). Should be a fun new experience as we currently run separate boxes. However, the assistant sysadmin (Jaunty) does claim he's had training in virtualisation. A possible scape goat when things go wrong... :)
...only joking Jaunty!