Jump to content
Robbie Ferguson

unRAID Capacity Calculator

36 posts in this topic Last Reply

Recommended Posts

I've created the first beta of a web-based array capacity calculator.  I have no idea if such a thing already exists, but as a coder, I don't mind just making one myself.

 

unraid.category5.tv <-- Click that link to launch the calculator.

 

The system allows you to enter up to 21 drive capacities (based on the "fake" capacity shown by your drive manufacturer on the label - eg. 500 GB) and will tell you how much data storage space you'll have on your unRAID array.

 

Currently, Parity is forced.  However, as Parity is in fact optional for unRAID, I will inevitably add an ability to remove Parity.

 

The calculator supports addition of a cache drive, and does all the math to give you real numbers with regards to your potential capacity (not the fake manufacturer numbers).

 

While seasoned unRAID users understand the capacity, I thought this would be a great tool for people who are curious about unRAID, as it shows how much capacity you'll get (in reality) if you build an array with whatever hard drive specifications you provide.

 

Hope you all enjoy.  If you have feature requests, just let me know.  I'm also perfectly happy to share the code if someone wants to play with it, although I'll keep hosting the "official" program at the url listed above, indefinitely.

 

Regards,

Robbie

 

Share this post


Link to post

Oh yes; I forgot to mention, it also calculates the approximate power consumption of your array; so it can also be used as a tool to help you select what power supply you buy for your array.  Just remember, your other components use power too... so take it all into account.

 

Robbie

 

Share this post


Link to post

I checked it out, it was neat.

I think if anything it would be useful for power review.

 

Perhaps a few benchmarks using the most popular large drives.

 

For example, my drives say

 

WD10EACS .70a 12v, .55a 5v

Barracuda 7200.11 1TB, .85a 12v, .6a 5v.

I would pull it off my 1.5tb's but they are busy and I do not want to shutdown the torrent client.

 

Share this post


Link to post

Has this tool been useful to anyone?  I wasn't sure if I'd get any replies, but I kinda hoped to  :)

 

I meant to, sorry.

 

Yes, very interesting.  It was distressing to learn how much storage you *actually* had...  :-)

 

What was your basis for calculating the cache size?

 

--Bill

Share this post


Link to post

Has this tool been useful to anyone?  I wasn't sure if I'd get any replies, but I kinda hoped to  :)

 

I meant to, sorry.

 

Yes, very interesting.  It was distressing to learn how much storage you *actually* had...  :-)

 

What was your basis for calculating the cache size?

 

--Bill

 

I am assuming he used the smallest drive that was put into the calculations.

Share this post


Link to post

Yes, that's right.  The Parity drive is the largest (obvious) and the cache is the smallest.

 

I figured, nobody's going to have an itty-bitty drive in their array, so that'll usually be acceptable.  But if people want it, I could make it so they can actually SELECT which drive to use for cache.  Might be a good way to do it...

 

Thanks  :)

 

Robbie

Share this post


Link to post

Yes, that's right.  The Parity drive is the largest (obvious) and the cache is the smallest.

 

I figured, nobody's going to have an itty-bitty drive in their array, so that'll usually be acceptable.  But if people want it, I could make it so they can actually SELECT which drive to use for cache.  Might be a good way to do it...

 

Thanks  :)

 

Robbie

That would be best.  Some will elect to have the cache drive as big as their parity drive, as it then becomes a "warm spare" ready to be put into service should a different drive in the array fail. (un-assign it as cache, re-assign it as replacement for whatever drive failed.)  Don't even need t power down the server until the new replacement for the cache drive arrives.  You can even shop for a sale price, since you could live without the cache drive for a week or two.

 

What might be nice is a checkbox next to each drive to indicate if it is a"green" drive or not... or, a field to input the total number of "green" drives, since their power requirements are lower than the non-green drives.

 

Joe L.

Share this post


Link to post

I think a little checkbox next to a drive marking it as the cache drive would be effective.

 

My thought is, keep the checkbox where it is, and have it default to the smallest drive, but instead of showing "Cache Drive: 100 GB" the 100 GB would be a drop down which lists all drives available to use as cache.  Changing it will re-allocate your array accordingly.

 

Sound good?  I'll implement this fairly soon!!

 

Thanks,

Robbie

Share this post


Link to post
That would be best.  Some will elect to have the cache drive as big as their parity drive, as it then becomes a "warm spare" ready to be put into service should a different drive in the array fail. (un-assign it as cache, re-assign it as replacement for whatever drive failed.)  Don't even need t power down the server until the new replacement for the cache drive arrives.  You can even shop for a sale price, since you could live without the cache drive for a week or two.

 

That's a good idea. I usually just have a drive sitting on the shelf waiting.

After I rebuild my server with 20 drives, then I'll do this. just got an X7SBE mobo.

Share this post


Link to post

Done; I added a cache drive drop-down now.  If you have not selected a cache drive yourself, the system will automatically set your cache drive to the smallest drive in your array (to reduce the impact to the overall capacity).  If, however, you change the drive using the drop-down and re-calculate the numbers, the system will report how this will impact your capacity appropriately.

 

Upon changing your Cache Drive to a data drive, simply uncheck "Use cache drive" to calculate how this will affect your array.  If you've failed a drive, make sure you remove it's value from the list of drive capacities.

 

Robbie

Share this post


Link to post

Something's not working correctly. It worked fine in both Firefox and Safari previously, and now clicking the calculate button doesn't do anything in either...

Share this post


Link to post

Something's not working correctly. It worked fine in both Firefox and Safari previously, and now clicking the calculate button doesn't do anything in either...

 

I'm using Firefox and it works fine for me.  :-\  Can you try something absurd; just add a 2000 GB drive to the list and calculate, and tell me if your total changes?

 

Thanks!

Robbie

Share this post


Link to post

Something's not working correctly. It worked fine in both Firefox and Safari previously, and now clicking the calculate button doesn't do anything in either...

 

I'm using Firefox and it works fine for me.   :-\  Can you try something absurd; just add a 2000 GB drive to the list and calculate, and tell me if your total changes?

 

Thanks!

Robbie

I tried it using Firefox, and it did nothing for me when I clicked either "Calculate" button.

Share this post


Link to post

Same here, it use to work previously in Firefox but it will not work at all now.  Pushing the calculate button does noting on my end.

Share this post


Link to post

Fixed; thanks.

 

Sorry about that!  It seems my cookie was preventing me from seeing the bug (as my browser was remembering my previously entered settings.

 

Try now, and enjoy the new Cache drive feature  :)

 

Robbie

Share this post


Link to post
If you have any concerns about the direct link to your site, please let me know and I'll make whatever changes you like.  You are welcome to edit the wiki yourself, of course.

 

No no; dude--thanks!  I appreciate the link for sure, and I hope people will really find use out of it.  I know it's one of the questions I had when I first started using unRAID a month or so ago, and I had to learn by building my array--so hopefully this tool will become a benefit to the community.

 

And, I welcome people to make suggestions for added features  :)

 

I'll be beautifying the script as well, making it look nicer -- once it's considered "complete" so to speak.

 

Thanks,

Robbie

Share this post


Link to post

Hey Robbie Ferguson,

 

Just wanted to let you know that I love you calculator and actually used it for prior to creating my new setup. I was however wondering if you would be so kind as to update it to include RC8 which supports up to 22 Drives + Cache and Parity.

 

Thank You

Share this post


Link to post

Sorry to revive such an old thread, but I came across this calculator, and the only addition that would be nice would be if you choose to run dual parity.

Share this post


Link to post
11 hours ago, Spyrule said:

Sorry to revive such an old thread, but I came across this calculator, and the only addition that would be nice would be if you choose to run dual parity.

The second parity drive does not alter the capacity at all, so just don't add one of your largest drives to the calculator.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.