# Rancher Server eat all disk Space

**URL:** <https://forums.suse.com/t/rancher-server-eat-all-disk-space/913>\
**Category:** Rancher 1.x\
**Created:** [November 9, 2015, 9:37am UTC](https://forums.suse.com/t/rancher-server-eat-all-disk-space/913 "2015-11-09T09:37:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)\
**Post date:** [November 9, 2015, 9:37am UTC](https://forums.suse.com/t/rancher-server-eat-all-disk-space/913/1 "2015-11-09T09:37:50Z")

</div>

Hi guys,

I’m working with rancher-server on a VM with only 50Go of space (perhaps not enough for rancher-server ??)

every monday morning when come back from a good Weekend 🙂 I found that my rancher-server is down and the reason is that my fs is full at 100%…

Mysql log is taking 23Go of space

```
23G /var/log/mysql

```

It seams that I have 5 days of logs but each file is about 100M

```
 ...
-rw-rw---- 1 mysql mysql 101M Nov 9 00:04 mysql-bin.000224
-rw-rw---- 1 mysql mysql 101M Nov 9 00:27 mysql-bin.000225
-rw-rw---- 1 mysql mysql 101M Nov 9 00:51 mysql-bin.000226
-rw-rw---- 1 mysql mysql 101M Nov 9 01:15 mysql-bin.000227
-rw-rw---- 1 mysql mysql 101M Nov 9 01:38 mysql-bin.000228
-rw-rw---- 1 mysql mysql 
85M Nov 9 08:41 mysql-bin.000229
-rw-rw---- 1 mysql mysql 7.2K Nov 9 01:38 mysql-bin.index

```

I’ve got also 13G for the ibdata1

```
root@c09945a57444:/var/lib/mysql# du -hs * 
1.5M cattle
0 debian-5.5.flag
5.0M ib_logfile0
5.0M ib_logfile1
**13G ibdata1**
1.1M mysql
212K performance_schema

```

Do you recommend a minimum of disk size in order to run rancher-os ? or is there a way for tuning space occupation of rancher ?

i’m using  
Rancher  
v0.43.1

thanks

sébastien

---

<div class="post-metadata">

**Author:** ![cloudnautique](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cloudnautique/32/26_2.png) [@cloudnautique](https://forums.suse.com/u/cloudnautique)\
**Post date:** [December 2, 2015, 5:27pm UTC](https://forums.suse.com/t/rancher-server-eat-all-disk-space/913/2 "2015-12-02T17:27:43Z")

</div>

@Sebastien_Allamand, was this an upgraded environment? We had been using a single innodb file for the database and switched over in ~v0.41.x to using 1 file per table. If you were already using it though, I believe it will continue to do so, and new tables should get new files.

In that same release we shortened the retention period from 10 days to 2 days. You can manually clean them up by running:

`PURGE BINARY LOGS BEFORE 'YYYY-MM-DD hh:mm:ss'`

where the date is today at midnight. You can also confirm in the /etc/mysql/my.cnf file that expire\_logs\_days is set to 2 days.

---

<div class="post-metadata">

**Author:** ![Sebastien\_Allamand](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sebastien_allamand/32/691_2.png) [@Sebastien\_Allamand](https://forums.suse.com/u/Sebastien_Allamand)\
**Post date:** [December 7, 2015, 4:30pm UTC](https://forums.suse.com/t/rancher-server-eat-all-disk-space/913/3 "2015-12-07T16:30:47Z")

</div>

yes it was an upgrade

I confirm expire log is set to 2 and I didn’t get again the problem thanks!

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [December 9, 2015, 5:42pm UTC](https://forums.suse.com/t/rancher-server-eat-all-disk-space/913/4 "2015-12-09T17:42:23Z")

</div>


