Archive for April 2014

LEGO HTPC / Server Project (pt 1 Hardware)

This HTPC/server project became a necessity a couple months ago when my existing home server started showing signs of wear. The old server had become too slow and too limited in capacity. The plan was to build new and combine my existing HTPC into the same enclosure. Where to go, where to go? Oh I know, LEGO!

The project had two goals. The first, obviously, was to look cool. The second was to have enough room for both the new server as well as my existing HTPC. Both PC’s would be mini ITX sized (17cm x 17cm) and my entertainment bench cubbyhole (where the server would end up sitting) was 18cm high. Perfect, I thought; the motherboards could be positioned vertically to fit within the space.

VIA_Mini-ITX_Form_Factor_Comparison

For reference, here are the various sizes of motherboards on the market.

 

The concept for the server/HTPC enclosure was an 18cm square box that would contain all the parts. This included two mini ITX motherboards, their respective drives, their power supplies, and a cooling fan. A tall order to fit inside an 18cm cube.

The server would have an ASRock c2550d4i motherboard powered by an Intel Avoton C2550 Quad-Core processor, with 16GB of memory and three 4TB WD Red HDD’s. I chose the processor because of its high-powered performance and its low power consumption: only 20 watts under full load.

asrock c2550d4i

ASRock c2550d4i motherboard for new server

In terms of software, the server would run the FreeNAS OS and the HDD’s would be configured in a ZFS array. Three drives would be run in a ZFS-1 array, and a stretch goal of four drives (space permitting) would allow a ZFS-2 array. The ZFS-2 configuration provides double redundancy or failure protection for two HDD’s, where the ZFS-1 would only provide protection for one HDD. Let’s see how much space we have and decide on the configuration later.

The HTPC would be a carryover from my previous XBMC project, which included an SSD.

 

HTPC12

XBMC project case

HTPC05

XBMC project hardware

And the power supplies would be PicoPSU, which were the slimmest-profile bricks I could find. While the PicoPSU is a standard brick power supply that has an ITX-style power harness, it didn’t come any bigger than 160W.  By my calculations, the server would consume no more than 140W under full load and the HTPC would consumer no more than 70-80W under full load, so I crossed my fingers and hoped for the best.

picopsu

PicoPSU power supply

 

—Part I: Building the Enclosure—

Once I knew my hardware specs, it was time to design my enclosure with Lego. I chose a 25cm x 25cm LEGO base-plate for the foundation of my structure.

LEGO

The first Lego configuration had the four drives stacked on top of each other (left in photo) and the motherboards standing on their side (right in photo). The remaining space (at front of photo) was reserved for the two power supplies and cables.

Server_Org_2014 (1)

This concept was abandoned early on as the tower structure for the drives had no stability and could not handle the weight of three HDD’s and one SSD.

The second iteration of the enclosure saw the drives arranged vertically (right of photo), the motherboards standing on their sides (left of photo), and the power supplies stacked in the remaining space (back of photo).

Server_Org_2014 (2)

At this point, I made a decision to add another HDD to the server so that I would have at total of four 4TB HDDs. Since space within the enclosure was at a premium, I decided to mount the power supplies externally to make room.

The final concept for the enclosure had a similar configuration as before, with the drives aligned vertically on half of my plaftorm and the motherboards perpendicular to the drives. This allowed me to have four HDD’s, one SSD, two motherboards AND a cooling fan built into the front wall of the case (back of photo).

Server_Org_2014 (3) Server_Org_2014 (4) Server Build 2014 (2) Server Build 2014 (6)Server Build 2014 (17)

This concept was built up to this point where the parts could be test fitted. Not wanting to spend another evening ripping apart the previous night’s work, we made sure all the hardware would fit. And sure enough, it did!

We needed to mount the motherboards to back-plates so that they could be mounted into the enclosure. As seen in the photo above, the mounted motherboards would slide into their respective grooves, and the space would be cooled by the fan mounted on the front. And as we had some spare LEGO, we dressed up the motherboard back-plates.

Server Build 2014 (60) Server Build 2014 (64) Server Build 2014 (71) Server Build 2014 (67)

Next up was to mount the drives. Knowing that the HTPC’s SSD was smaller than the server’s HDD’s, we made its compartment smaller. It would be mounted in the first slot followed by the 4 HDD’s.

Server Build 2014 (77) Server Build 2014 (78) Server Build 2014 (82)

 

Here she is, all wired up and running:

DSC00262_1 DSC00258_1

 

—Part II: Configuring the Server (Coming Soon)—