Peter's Blog

Redefining the Impossible

Death of a Partition


Somebody at work was fiddling with the fuse box and took out all the servers in the IT room. I rebooted them all but our main file server wouldn't boot, the hard disk partition was fried.

I used a knoppix CD (excellent tool for any pc that won't boot from its hard disk) to delete the corrupt partition and then reinstalled Windows 2k server on it. Experience has taught me that there is little point in trying to repair windows installations. Fortunately this file server is set up with two disks, one for the OS and another for the data. This is a nice arrangement as if either disk dies, that's approximately half the work required to get the thing back up. I only had to reinstall Windows.

Things were back online by lunchtime, the only problem being that one of the computers in the building was unable to access the new shared file system: mine! Vista strikes again (this is one reason why I am using Vista, to iron out these sillies). It wouldn't connect to the file share without prompting for user name and password and it wouldn't accept any that I gave (apart from those for a local account on the PC, it wouldn't accept domain account details).

I decided the problem may be that in my haste to get the files online and people working, I omitting to install the latest service packs on the server. I ran the setup for service pack 4 and then remotely rebooted the server from home early this morning while nobody was using it. I connected to it using an ssh tunnel and ultravnc. For reference, the ssh tunnel command was:

ssh -L 5900:192.168.0.54:5900 me@work.com

This is saying, 'connect port 5900 on the pc 192.168.0.54 on the remote network to port 5900 on my local pc'. I connected to a linux server and used this as a relay to connect to the file server. I was able to open ultravnc at 127.0.0.1:5900 and see the windows desktop of the file server. Secure, magical, free. Yes, I could do all this with VPN's, Windows Remote Desktop, Terminal Services or whatever but ssh/vnc is much easier to set up and is immune to random weird Active Directory problems.

I opened 'Computer Management' and 'Shared Folders' and 'Open Files' which gives a nice list of who is using the file server. One user had 'desktop.ini' opened, nothing important so ZAP.

Anyway, the service pack did the trick and when I got to work Vista connected instantly.

Lessons learnt:

  • Know where the Windows Install disks are
  • Have the licence numbers printed and hung on the wall (not in a file on the server that just died, in an Access 2003 database, in a room full of servers with no copies of Access).
  • Buy a UPS, although it runs the risk that nothing ever fails and everyone thinks administration is easy. With the right tools it is, but don't let the world know.

Frank Says:

You should look at bluehost.com I've been using them for 2 years with no problems and you get a ridiculous amount of BW and disk space. BTW I have three file servers all running Linux with SMB for m$$$ with raid5 disks arrays, lost four drives so far with no lost data or down time! all too easy ;) (quick touch of wood & crossed fingers)

Peter Says:

Site5 are very good, I think the 25,000 inode thing is an old limit that they have forgotten to update as their disk space has gone up. The 750g they offer is a joke if the small print stops you using it for anything other than a huge online library of copyright free mp3's.

I'm now toying with the idea of going back to dedicated hosting and the best deal I've found includes, 160g raid 1 plus ftp backup... I'm fighting but I probably won't resist it.

I wouldn't run windows on a server. I've inherited a legacy Windows setup at work which I hate but changing it would mean major evangelism. Read this and consider just how impossible that would be with a Windows box. At the same time I still wouldn't run a desktop on linux, too many compromises. Ho Hum.

Peter

Frank Says:

So far on my work's servers I've installed and used Gentoo, RedHat, Fedora & Ubuntu LTS. Gentoo was a pain to install esp with raid5 - much to leading edge for production use IMHO. RedHat, Fedora5 - I felt far too isolated from the OS to get that 'I know whats going on feeling' ! Ubuntu is my current favorite - The LTS is now getting a little long in the tooth, as it's about to be revamped in the next update cycle (6mths) My Desktop is Ubuntu 7.10 running VMWARE for windoze apps works great.

There are no compromises on my desktop !

Frank.

Peter Says:

I used gentoo for a while but every now and then I'd do the emerge world thing and one of the builds would fail and I'd be left with something broken. It's ok if you like sysadminning more than getting things done.

I use Ubuntu or Debian (which it is descended from) as I love apt and I've had horrible experiences with rpm hell and never got into using yum (e.g. finding a good repository, fedora core being pretty bereft).

Peter

Have Your Say

I welcome constructive comments or questions but I reserve the right to delete any comments that displease me.

Who are you?

(Optional) If you enter an email address here I might email you back. Your email address will not be sold to spammers or shown anywhere

What do you have to say?