Jump to content

A How-To Guide: Building a Rudimentary Disk Enclosure

What is a Disk Enclosure?

A Disk Enclosure is a case (most commonly rack mountable) that contains nothing but bare drives, a means to power the drives, and a controller for the drives to use to communicate with a parent system.

 

Why Would Somebody Want to Build One?

  • Less expensive than off the shelf units (often cheaper than the used market)
  • Quieter (being able to choose your own fans)
  • Fully customizable (standard form factor)
  • Easier to repair (standard form factor)

The Build Process (an example using Mini-SAS)

Starting with the enclosure virtually any box or container could be used to build a Disk Enclosure but a chassis designed to hold a lot of drives, a chassis with many 5.25" drive bays (for 2.5"/3.5" drive caddies), or a rack-mount chassis would be ideal.

 

The Power Source

Depending on the enclosure different form factors of PSUs are available including ATX, SFX, FlexATX, and server variations (1U, 2U, 4U)/Mini-Redundant/etc are all options. It's important to understand that larger quantities of disks are going to require a larger PSU. Not for the reason of standard operation power draw but because of initial spin-up power draw. Staggered Spin-up is a feature designed to mitigate this issue but your controller and/or SAS Expander may not support it. Depending on your choice of disks datasheets can be found online to tell you how much current (Amps) are required to get the drive spinning. By multiplying this by the number of disks you have (make sure to pay attention to both the +5V & +12V rails) it will give you an idea as to how strong of a PSU you'll need. Make sure to give yourself some overhead for future expansion.

 

The SAS Expander (the controller)

There are a variety of SAS Expanders on the market but this guide will only go over one. If you have reason to use another be it better quality, cheaper, or you already have it you may be able to adapt it to work with this guide.

 

One that will provide modularity and give you 24 ports for HDDs is the HP 468405-002.

 

lsi_9207-8e(edit).jpg.d582109cfd9cb77654efe6a051e2015d.jpghp-sas-expander-2.thumb.jpg.1dceec4518f6e511242e64267680a5ea.jpg.e82fc516e4b81b295c2a204ac6c61ed4.jpg

 

It can be found on sites like Amazon & eBay for cheap. It comes with a SFF-8088 port (which will connect to your parent server) and eight SFF-8087 ports (6 of which will go to your drives/caddies/or backplanes, two of which can go to your HBA/Controller but we won't be using them).

 

Powering the SAS Expander can be done in one of two ways, which you choose may be determined by what you have available to you or how you've setup your box. The x8 slot on the SAS Expander isn't needed when the rear SFF-8088 port goes to your Controller. Because of this you can setup a low-end spare motherboard with CPU and RAM. This will just give it power. Then you could connect the front I/O cables to the motherboard for controlling power/reset.

 

An alternative option would be to use one of the powered PCI_e risers made for GPU Crypto Mining.

 

powered_pci-e_riser-1.thumb.jpg.a471c02c8faec78aa70fb0884304e888.jpg.6532821c016f08902f898b6e86b72028.jpgpowered_pci-e_riser-2.thumb.jpg.c4db93d94bc57c1b077251ec5e7840db.jpg.e28c9b1c713bbe3e3da579084bae21f8.jpg

 

Some people have reported this hasn't worked for them but instances of this haven't been checked that it wasn't user error. Never-the-less, this method may or may not work for you but it would be a lot cleaner and when building your own box, easier than mounting a full motherboard. Powering the Disk Enclosure on/off could be handled by shorting pins 15+16 (Green wire to a Black wire) on the 20+4 pin cable from the PSU then operating power by using the switch on the back of the PSU.

 

Additional Components

 

sff-8088_cable(edit).thumb.jpg.973afa5cbc82454fb7290b95d3107515.jpg.541f6f70615c51593425e8bfd5524e91.jpglsi_9207-8e(edit).jpg.717b045af0238fc7057599157fdf7c42.jpg.591685ad167b7c830010ae65bfdb2b55.jpg

 

  • SFF-8088 to SFF-8088 cable
    • This cable will run externally to the Disk Enclosure and will connect to your server.
  • HBA/RAID Controller (with external ports)
    • An HBA or RAID controller with external ports (such as the LSI 9207-8e) will be needed in your server for the Disk Enclosure to interface with it.

 

Optional Components

 

sff_8087_cable(edit).jpg.e347bae8e117cbd64dbeb936044a97bb.jpg.c438283b9e36b939fc97f13a77f2a9cf.jpgSFF-8088_to_SFF-8087_adapter(edit).jpg.3e069b0b798ee020ca52413c43723366.jpg.af7edac94d037d966278356a1f367531.jpgsff-8087_to_sata_forward_breakout_cable(edit).jpg.966f4b7cc0819e9a8368e868c8314fda.jpg.b73d85daef6e6988e113c51f81ae4a59.jpg

 

  • SFF-8087 Cable
    • This will be needed for connecting the SAS Expander to your backplane if you're using one.
  • SFF-8088 to SFF-8087 adapter
    • In the event you have an HBA/RAID controller with internal ports this paired with SFF-8087 cables will allow you to use it in substitution of a controller with SFF-8088 ports.
  • SFF-8087 to SATA Forward Breakout cable
    • If you are connecting the SAS expander to drive caddies or directly to the drives these will be needed.

 

Assembly

Connecting everything together is quite strait forward.

  1. Install the HBA/RAID controller in your server.
  2. Connect SFF-8088 cable to the back (or though SFF-8087 to SFF-8088 adapter)
  3. Assemble the Disk Enclosure
    1. Install your drives
    2. Connect SFF-8087 cables to backplane or breakout cables directly to the drives/caddy)
    3. Install PSU
    4. Install unpopulated motherboard or powered PCI_e riser
    5. Install SAS Expander, connect SFF-8087 cables.
    6. Connect other end of SFF-8088 cable to Drive Enclosure
    7. Connect power

 

Testing

Once assembled a Disk Enclosure is very plug'n'play. Be sure to power up the Disk Enclosure before the server. Your HBA or RAID controller will see the disks connected though the SAS Exapnder and will appear within the OS for whatever you need them to do.

 

Conclusion

Building a Disk Enclosure yourself is a very cheap fully customizable option to expanding storage on your desktop or server. How far you want to go with it is entirely up to you.

Link to comment
Share on other sites

Link to post
Share on other sites

Thanks

 

Can I use a motherboard without a CPU in it or RAM in a spare PC case as my disk enclosure?

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, bigo93 said:

Thanks

 

Can I use a motherboard without a CPU in it or RAM in a spare PC case as my disk enclosure?

So long as the board powers on yes you can.

Link to comment
Share on other sites

Link to post
Share on other sites

12 minutes ago, Windows7ge said:

So long as the board powers on yes you can.

Nice! I accidentally somehow bent pins on an old MB CPU socket, nothing else wrong with it

Just ordered this one, looks similar to yours, HP 24 Bay SAS Expander Card 487738-001 468405-001

So I guess that P222 card was the right thing I ordered and so already have that piece.
So a project for me to do next weekend!
Thanks again, ill let you know how it turns out.

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, bigo93 said:

Nice! I accidentally somehow bent pins on an old MB CPU socket, nothing else wrong with it

Just ordered this one, looks similar to yours, HP 24 Bay SAS Expander Card 487738-001 468405-001

So I guess that P222 card was the right thing I ordered and so already have that piece.
So a project for me to do next weekend!
Thanks again, ill let you know how it turns out.

I'd have to read up on the data sheets to know what the difference is between the 001 & 002 models but both are 3Gbit. This is a solution for slower denser storage.

 

Looking up the P222 I see you're going the hardware RAID route. If that's what's compatible with your microServer. I don't know what RAID implementations the software offers.

Link to comment
Share on other sites

Link to post
Share on other sites

  • 1 month later...

@Windows7ge

Need to add the following, apparently most motherboards will not fully power the expander if they dont have a CPU installed

 

Easy way to tell if the SAS Expander will work in your motherboard is:
Turn it on.
If LED R6 is remains Solid Green permanently then your motherboards isnt powering it up fully
If LED R6 is Solid Green for a few seconds, then goes to a continuous blink, then it's powered up properly

 

If you get a constant Solid Green LED then you will need to use a PCI-e Riser instead.

 

LEDs R4 and R5 always seem to be off, idk why

But you need R6, the top one in this photo to be blinking, otherwise the expander will not work.

 

 

sasled.jpg

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, bigo93 said:

Need to add the following, apparently most motherboards will not fully power the expander if they dont have a CPU installed

 

Easy way to tell if the SAS Expander will work in your motherboard is:
Turn it on.
If LED R6 is remains Solid Green permanently then your motherboards isnt powering it up fully
If LED R6 is Solid Green for a few seconds, then goes to a continuous blink, then it's powered up properly

 

If you get a constant Solid Green LED then you will need to use a PCI-e Riser instead.

 

LEDs R4 and R5 always seem to be off, idk why

But you need R6, the top one in this photo to be blinking, otherwise the expander will not work.

 

When I find the time I will edit the guide to include this.

Link to comment
Share on other sites

Link to post
Share on other sites

  • 1 year later...

lol been waiting a year to see if HDD prices fell, they didnt.

Got mine all set up now using a pci riser

Question now is how do you power down the drives in the enclosure?

My xpenology server just shuts down the ones in the microserver.....

Do I need to change the sata controller from the internal one to the sas card?

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, bigo93 said:

lol been waiting a year to see if HDD prices fell, they didnt.

Got mine all set up now using a pci riser

Question now is how do you power down the drives in the enclosure?

My xpenology server just shuts down the ones in the microserver.....

Do I need to change the sata controller from the internal one to the sas card?

This is actually something I've never thought about. I use NAS & Server rated HDDs, power consumption is of no concern to me so I've never explored how to get the drives to spin down if they're not in use.

 

You could try a different controller but AFAIK it's an OS thing. Since the expander is transparent to the OS I wouldn't expect it to block/not forward spin-down signals but...maybe that is the case.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×