Home fileserver with RAID upgrade? How easy was that

arad85

Suspended / Banned
Messages
9,438
Name
Andy
Edit My Images
Yes
I'm quite stunned...

As some of you may know, I'm a geek... :geek: and last year I got fed up with XP on my home server as drives were losing directories every now and again plus I wanted robustness on my data.

I may be a geek, but I'm also a skinflint and I have all my media stored on the central server. I was going to run Linux with RAID5 and was getting myself into a twist with cards, support, what happens if the controller dies etc... so I started looking into which was the best filesystem for my needs and came across ZFS on OpenSolaris. Enterprise wide filesystem, great data integrity and you can run something called RAIDZ which is a software RAID5 but in software.

I ended up installing FreeBSD 8.2 and have had it running nicely since September last year. One set of disks (in a RAID1 mirror under ZFS) have always been connected to an old SATA1 cheapo PCI card and have always been slow. Also, doing some digging in my bootup messages, the disks that are in the RAIDZ array are attached vis 2 different controllers due to the Mobo architecture so it was time for a rework.

Before moving, I took my spare disk (which is a hot spare) and mounted it as a filesystem so I could backup the important bits of data on the RAID just in case! To remove the hot spare (named label/disk5) from the raid array (called storage) and mount it as a drive itself (as /tempstore) took 2 commands:

Code:
zpool remove storage label/disk5
zpool create tempstore label/disk5

and then just accessed as a normal drive. How cool was that.

Purchased 2 Adaptec 1430SA cards (basically PCI-e x4 -> SATA II adapters) as the cheapest way I could find of moving 7 drives to the PCI-e bus with a reputable manufacturer and plugged them in. Then plugged the 7 disks in to the new adapters and told the boot system to load the driver for them.

Reboot and voila, my RAIDZ array is just re recognised - on new controllers - and all as bright shiny SATA2 connected. So the hours of waiting to copy my main data wasn't needed - it just worked.

So to put my hot spare back into the array named storage, first destroy it and then add it as a spare:

Code:
zpool destroy tempstore
zpool add storage spare label/disk5

Whole thing took 10-15 minutes (actually it took a couple of hours as I also upgraded the heatsink!!).

If you are building your own fileserver and want RAID5 levels of protection (actually RAIDZ is quite a bit better than RAID5) without the worry of what happens if my RAID controller dies, I thoroughly recommend looking into a system that has ZFS supported as a filesystem.

Apologies for the geekiness of the post (as Ms arad85 puts it "geekiness spelled with an F"), but I'm a very happy chappy at the moment :D
 
so youve got Adaptec 1430SA cards capable of raid but have opted for software raid? did i read that right?

raid5 and software raid in theory should require a lot more CPU time as well as most of the time being proprietory format. also is the software raid dependant on the OS? my knowledge of ZFS and OpenSolaris is pretty much non-existant but does that mean if the array fails the OS may have issues loading? youve also got potential write cache issues that would normally be solved by a raid controllers backup battery.

personally software raid always fills me with dread and id always opt for a good branded hardware raid controller, but whatever works for you.. :)
 
Last edited:
Tee hee...

The raid cards are actually RAID 0/1 raid cards - and that's done in software anyway. The cards aren't RAID5 capable - hence why they're £75 rather than £250!

I did a lot of research into this before deciding what to change the system to back in September. A lot of the problems associated with RAID5 just don't exist on ZFS and it has lots of really neat features including athe ability to just add disks to a mount point and not having to offline the disks to fsck them.

The OS is on a UFS drive :D

Have a look at this: http://hub.opensolaris.org/bin/download/Community+Group+zfs/docs/zfslast.pdf

It's also in use by FreeNAS.

As to performance, I can write to them over the network at 107MBytes/sec with a fairly low CPU load so that's not too bad ;)
 
Back
Top