Friday, June 17, 2011

Disk extender to the rescue!

Well.

I have been through the drive to get my WHS server up on Raid 5 and had been beaten by server 2003.

Just as well that I did.

We got back from a weekend away a last month, to be greeted by an alarm squealing from the drive cage and a red light showing on the 4th drive. Now if this was Raid 5, I would have swapped the dead drive with a new identical spare, restarted the server and the array would have rebuild with no loss of data.

But as I was running Disk Extender, I went onto the console and removed the dead drive from the server storage pool. all my data was in replicated folders anyway so I new I had not lost anything. once the drive was out, I removed it and sent it back to the Amazon vendor for a warranty swapout. With one drive less, the files just re-duplicated across the remaining 4 and restored my data protection.

But they didn't have any more of the same drives and offered me a choice of a Hitachi or WD drive. I went with the WD drive and it arrived the next day.

Now with raid, you really need identical disks, so I would have had a system that would have worked by possibly not as well as it should have.

With Disk Extender, I just put the new drive in, rebooted and then added the new drive to the storage pool. over the next day, my files where re-duplicated back across the five drives.

Happy days!

Wednesday, June 8, 2011

Walking away from iTunes and Internet Tirrany

It's official

We are now free of Apple devices thoughout the house!

I have removed the PC virus that is iTunes and we are now mobile with Android.

The music library is now managed via JRiver Media Center (I have used this for years) and my tunes now come via Amazon and get loaded on to the hand held devices via Media center.

No more of this DRM terrorism that Apple enforces, now I'm not promoting piracy here, but if I buy music, I should be able to listen to it on my devices without having to re-authorise the device or the computer after nearly every upgrade or tweak.

Apples model is all about enslaving users to buy hardware and they enslave the users via the software that supports it and the DRM / encryption schemes tht they employ to stop other developers from accessing the hardware without Apples blessing.

The iCloud is just Apple's next step in building this hardware dependency / addiction. Apple is really going against the ideals of the internet, creating an cloudy intranet that is accessed only via it's devices or Apple software tethering the user to an Apple device. This will trap users and is also going to trap content creators by cutting deals with record companies and other mainstream producers locking them into the murky cloud. This is really taking content off the web and into a monetised walled garden. booo!

If this keeps up, the only content left on the web, After the apples and the Facebooks or the world fence us all in, will be porn and blogs full of people lamenting the dehydration of the internet.

I say no to Piracy

I say yes to the right to choose.

The New home server, what happened next...

I have been meaning to finish this off for a while and getting this thing up and running was not that straight forward at all.

Surgery continues
My original plan was to run this server on hardware raid over 5 x 1tb drives. this would include both the system drive and the data storage. Great plan, however, WHS seemed to have other ideas. Firstly I used the Intel embedded storage manager to create two raid volumes, a bootable C drive and a larger D drive. both Raid 5 using all 5 drives with 64kb blocks on C and 128k blocks on D (bigger files, bigger blocks etc.).


WHS just would not install on this, after the pain of having to create a driver floppy (a 3.5 disk, remember them?). not one PC in the house had a working floppy drive and I had dumped all my old 3.5 inch disks 4 years ago during a house move.

I managed to find a working USB floppy at work and make the required driver disks, however windows just would not install on my nice sensible raid. I tried for a week and then a work trip got in the way so I downed tools and ent off to Las Vegas (for work honestly).

Whilst I was in Las Vegas, I discovered Frys Electronics. It's kind of like a small corner of Sham Shui Po in Hong Kong without the tofu and wet market. Still perplexed by WHS's refusal to bend to my hardware demands, I went for a wander around this newly discovered world of computer goodies. If I needed a single boring drive to get this server going, what could fit the bill and not be such a glaring single point of failure?

The extra controller
Fry's had just started selling a range of SSD drives. This would give me a single drive but with no moving parts. This should work just fine. As I had filled all the internal SATA ports with 1tb drives, I would also need an additional SATA controller. a quick Google and a read of the box it came in, and I found a PCI SATA controller that had drivers for 2003 and picked up an 80gb SSD.

The drive "mounted" in the PC
After winning big in Vegas and wearing out shoes and knees walking around the convention center, I got back and continued the WHS quest.

This time, I created two huge 2gb volumes across all 5 disks due to 2003's 2tb hangup and installed the new controller and SSD into the HP. After a little fiddling with the config and boot order, WHS finally installed and booted up.

WHS then allowed me to add the 2 new raid volumes as storage drives to the system and off we went. I created new shares to mirror my old server and then used MS rich copy to copy all my content across then relocated the server into the loft and put it onto the UPS. I did not however stop using the old server, opting to just sync content to the new server and give it time to settle in and to see if it was going to flame out or die.

lucky I did.

A couple of days later, the unthinkable happened, drives 1 and 2 failed!! The system went into radi rebuild and failed (lost more than 1 drive) and WHS complained about everything being screwed / duplicated and I was basically sunk. I turned out that the failure was caused by the power Y cable I had to use and swapped it out and the drives came up and the server could then be rebuilt.

Not happy about this, I had a dig around google and read up on the pros and cons of WHS drive extender. Based on my experiences with large storage systems at work (we have around 250tb across various systems), I thought I would dump raid and go with the folder mirroring in WHS.

As the system was still booting and running of the single SSD, I firstly went in and deleted all all the files stored in the various shares, deleted the shares themselves and then in storage manager removed the raid volumes from the storage pool. I then rebooted the machine and deleted both Raid volumes, leaving me with just 5 single drives.



I then restarted WHS and went back into the console and was presented with 5 unused drives. I added all of then to the storage pool and then re-created my shares. this time for all the shares I enabled folder mirroring. OK so it's not as efficient as raid 5, but in the long term storage is cheap and this allows me to be flexible in how my files are managed and how I grow the system moving forward.

I then copied the media back into the newly created shares and let the storage management balance and replicate my data, at the file level across my pool of 5 separate drives.

I think the fact that the replication is done at the file level is very important. In a raid system, it's at a block level, your files are broken up and evenly spread across a number of drives, and this is fine when everything works but a raid system is just that, it's a system composed of a set of matched parts. your data will only be available as long as the system (excluding parity) survives.

With the drive extender, your files are distributed across a a pair of drives, like raid 0 but at a file level, so each f the drives have a complete copy of the file. Now I haven't

funny I should mention that.....

WHS complained that the storage pool was broken. This time however the fix was simple. As everything was mirrored, I did not loose anything. I just went into the storage manager and removed the dead drive from the storage pool. this just updated the pointers removing reference to any copy of a file that was on that drive.

I then ejected the drive and sent it off under warranty.

Disk extender then rebuilt the mirroring of the files across the remaining drives restoring my file resilience. When the replacement drive comes back I will add it to the pools and the files will then be distributed back across all 5 again. This is all done whilst the server is running and serving clients.
I think this is not a bad way to work. And drive extender realy needs to be something that Microsoft keep in the next version of WHS (but they are apparently dropping it!)

The server is now happy and running OK. At this time, I am still waiting for the replacement drive but it's doing OK so far.

Other things it is doing is backing up the main PC downstairs every night and it did back up my laptop too until the laptop died again. As WHS is really server 2003, it also has all the server features still hidden away too. I have now also got WHS acting as my home DNS with all my IP devices registered in my home zone and the DNS forwarding on other queries to my usual external DNS provider. I have also got it providing DHCP services for about 10 devices.

For media, I have installed Jriver media center on the server, and I use this to manage my music library and also jump out to Amazon via it's GUI to purchase MP3s. The Amazon MP3 downloader is also installed, and this allows my to download purchases directly into the music library.
For a media server, I have added the Twonkymedia server. This can serve out Music, pictures and video. In the lounge, we use a Sony network attached bluray player with the Sony Bravia portal. This can access Twonky on WHS and play stills, audio and video to the lounge TV.

For music around the house, I have a Roku M1001 sound bridge. This box happily acts as a renderer and teamed with the Twonky  Android app, can receive playlists and play music. I just purchased a second Roku (They don't make them anymore) and this will become the BBQ player linking back to the WHS via Wifi and being controlled from the android app.

It's all coming together rather well!