# In which unit should we specify storage space?

**URL:** <https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126>\
**Category:** FAQ\
**Created:** [July 14, 2020, 1:02pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126 "2020-07-14T13:02:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyfritzen](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jeremyfritzen/32/62_2.png) [@jeremyfritzen](https://forum.storj.io/u/jeremyfritzen)\
**Post date:** [July 14, 2020, 1:02pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/1 "2020-07-14T13:02:59Z")

</div>

I was just wondering in which unit should we specify the disk space in the `docker run` command: TiB? Or TB?

Also, in my particular case:

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/9/94319d7b224af926a2a6ccf9ad314b6927fe8716.png)  
We see that 4,3T is available on the disk I want to dedicate to my new storage node.

What should I specify in the `docker run` command to avoid issues in the future?

- `-e STORAGE="4.3TB"`?
- `-e STORAGE="4.3TiB"`?
- `-e STORAGE="4.28TB"`? (a little bit less to make sure I won’t lack space)

Thank you all!

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [July 14, 2020, 1:06pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/2 "2020-07-14T13:06:39Z")

</div>

Depends - did you run “df -h” or “df -H”? Even so you are supposed to leave 10% free so more like 3.9TB  
(It makes sense to use df -H as then it uses the same units as storagenode)

---

<div class="post-metadata">

**Author:** ![jeremyfritzen](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jeremyfritzen/32/62_2.png) [@jeremyfritzen](https://forum.storj.io/u/jeremyfritzen)\
**Post date:** [July 14, 2020, 1:08pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/3 "2020-07-14T13:08:36Z")

</div>

Thanks for your answer.  
I run `df -h`

---

<div class="post-metadata">

**Author:** ![hoarder](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/hoarder/32/1131_2.png) [@hoarder](https://forum.storj.io/u/hoarder)\
**Post date:** [July 14, 2020, 1:10pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/4 "2020-07-14T13:10:59Z")

</div>

Storj uses decimal units, so TB.

---

<div class="post-metadata">

**Author:** ![jeremyfritzen](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jeremyfritzen/32/62_2.png) [@jeremyfritzen](https://forum.storj.io/u/jeremyfritzen)\
**Post date:** [July 14, 2020, 1:16pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/5 "2020-07-14T13:16:31Z")

</div>

Thansk @hoarder

So I suppose I should take this available space into account:

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/4/45efcb6e9dc4986ee8cc54b04b7dc8353ddb63be.png)  
So, if I’m following @andrew2.hart recommendation and leave 10% free, I should use the following in my `docker run` command, right?

- `-e STORAGE="4.32TB"` (4.8 -10% = 4.32) ?

Am I right?

Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [July 14, 2020, 1:19pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/6 "2020-07-14T13:19:42Z")

</div>

It is from the install guide

> Be sure not to over-allocate space! **Allow at least 10% extra for overhead.** If you over-allocate space, **you may corrupt your database** when the system attempts to store pieces when no more physical space is actually available on your drive.

---

<div class="post-metadata">

**Author:** ![hoarder](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/hoarder/32/1131_2.png) [@hoarder](https://forum.storj.io/u/hoarder)\
**Post date:** [July 14, 2020, 1:25pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/7 "2020-07-14T13:25:15Z")

</div>

df -h gives you TiB. You have 4.8TiB free which is roughly 5.28TB.

---

<div class="post-metadata">

**Author:** ![jeremyfritzen](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jeremyfritzen/32/62_2.png) [@jeremyfritzen](https://forum.storj.io/u/jeremyfritzen)\
**Post date:** [July 14, 2020, 1:29pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/8 "2020-07-14T13:29:55Z")

</div>

Sorry, my previous posts were a little bit confusing.  
I do have 4.8 TB, not TiB (the second screenshoft is the result of “df - **H** ”).

So could you confirm me that I should set my docker container with 4.32TB space (4.8 - 10% = 4.32)?

Thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![hoarder](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/hoarder/32/1131_2.png) [@hoarder](https://forum.storj.io/u/hoarder)\
**Post date:** [July 14, 2020, 1:56pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/9 "2020-07-14T13:56:45Z")

</div>

Oh, right. Set it to 4.3TB, node will ignore additional precision.

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [July 14, 2020, 3:19pm UTC](https://forum.storj.io/t/in-which-unit-should-we-specify-storage-space/8126/10 "2020-07-14T15:19:03Z")

</div>

This doesn’t really matter, but Storj supports both units. You can set your storage using TB or TiB and it would use the appropriate unit.
