# É normal que /var/lib e /var/log ocupem cada um mais de 5GB de espaço?

**URL:** <https://meta.discourse.org/t/is-it-normal-for-var-lib-and-var-log-to-each-take-over-5g-space/55403>\
**Category:** Product Support\
**Created:** [Janeiro 9, 2017, 1:01pm UTC](https://meta.discourse.org/t/is-it-normal-for-var-lib-and-var-log-to-each-take-over-5g-space/55403 "2017-01-09T13:01:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![snakeninny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/snakeninny/32/115522_2.png) [@snakeninny](https://meta.discourse.org/u/snakeninny)\
**Post date:** [Janeiro 9, 2017, 1:01pm UTC](https://meta.discourse.org/t/is-it-normal-for-var-lib-and-var-log-to-each-take-over-5g-space/55403/1 "2017-01-09T13:01:20Z")

</div>

After running:

```plaintext
cd /var/discourse
git pull
./launcher rebuild app

```

`ncdu` returns:

```plaintext
ncdu 1.10 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                                        
--- /var -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    7.8GiB [##########] /lib                                                                                                                                                                                        
    5.5GiB [######] /log
    3.4GiB [####] /discourse
  449.0MiB [] /cache
    8.7MiB [] /backups
   28.0KiB [] /spool
   24.0KiB [] /www
    8.0KiB [] /mail
    4.0KiB [] /tmp
e 4.0KiB [] /opt
e 4.0KiB [] /local
@ 0.0 B [] lock
@ 0.0 B [] run

```

```plaintext
ncdu 1.10 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                                        
--- /var/lib/docker/aufs -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                        /..                                                                                                                                                                                         
    5.1GiB [##########] /diff
    1.8GiB [###] /mnt
   48.0KiB [] /layers

```

```plaintext
ncdu 1.10 ~ Use the arrow keys to navigate, press ? for help                                                                                                                                                        
--- /var/log/nginx -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                        /..
    4.5GiB [##########] access.log.1                                                                                                                                                                               
  870.1MiB [#] access.log.2.gz
   10.6MiB [] error.log.1
    6.8MiB [] error.log.4.gz
    5.7MiB [] error.log.5.gz
    5.2MiB [] error.log.8.gz
...

```

Seems to me that the diff and log are taking too much space. Is that normal?

---

_[View the full topic](https://meta.discourse.org/t/is-it-normal-for-var-lib-and-var-log-to-each-take-over-5g-space/55403)._
