mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.97k stars 1.18k forks source link

Increase disc space requirements and add a check in update.sh #2236

Open ClundXIII opened 5 years ago

ClundXIII commented 5 years ago

Is your feature request related to a problem? Please describe. I recently ran out of space with 10 GB HDD during an upgrade (the mail directory is on another virtual disc).

Describe the solution you'd like Increase the minimal requried space in Documentation to at least 10 GB. Also add a small warning in update.sh that lets the user abort the update if there is not enough space left. I ran out of space during an upgrade and nearly got an hearth attack since I thought my mail server was messed up. (I do have backups though ;-) )

Additional context I deleted the old volumes every time, so that should not be the issue.

andryyy commented 5 years ago

Did you try docker system prune? Only run this commend while mailcow is up and running, otherwise it will purge your volumes. :(

ClundXIII commented 5 years ago

Yes I did. Now I am around 7.something GB. But the problem is that the memory usage spikes during upgrade which is not negligible.

ClundXIII commented 5 years ago

I should add that that I also run roundcube as a webmailer.

Adorfer commented 5 years ago

I would recommend the update-script before performaning update to check for potential low discspace and in case of doubt to ask the operator if it shoud prune unused images. (Not only AFTER the update, but as well in beforehand, before even stopping the running containers)

andryyy commented 5 years ago

Yes, a low disk space check is a good idea.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ClundXIII commented 5 years ago

Is this planned or already implemented?

andryyy commented 5 years ago

Planned.