Page 1 of 1

MY SERVER ALMOST FULL, CAN I SAVE IT?

PostPosted: Fri Sep 09, 2016 06:54
by TARD
My server is 8 GB VPS. It's gone from 59% to 80% space use in 3 weeks. What can I do?
Thank.

Re: MY SERVER ALMOST FULL, CAN I SAVE IT?

PostPosted: Fri Sep 09, 2016 11:36
by Naj
Never tried but heard about unexplore scripts : scripts that remove from the database, map blocs that have been generated by mapgen but not modified by players.

First of all, try to figure out what takes disk space (sometimes, you get disk filled up of debug logs).

Re: MY SERVER ALMOST FULL, CAN I SAVE IT?

PostPosted: Fri Sep 09, 2016 17:14
by TARD
Naj wrote:First of all, try to figure out what takes disk space (sometimes, you get disk filled up of debug logs).


I did this with "ls -lhS" and deleted debug.txt which used over 700 MB.
That cleaned almost 10% space. Thank

Here's what I have and understand, about 4 GB
2.7G Sep map.sqlite
1.3G Sep minetest.tar.gz (backup)

The server is ubuntu and I guess it takes about 1 GB (maybe it takes more?)
So there's still 2-3 GB I have no idea where or what it is.

Re: MY SERVER ALMOST FULL, CAN I SAVE IT?

PostPosted: Fri Sep 09, 2016 21:27
by MineYoshi
TARD wrote:The server is ubuntu and I guess it takes about 1 GB (maybe it takes more?)
So there's still 2-3 GB I have no idea where or what it is.

Maybe Data Player, info from mods (some mods create files with information), also if you use textures in your server try to make they don't be big, sometimes x128, x256 and x512 always take too much space, some mods use them too...

Try to use some script that delete user files that don't connected since many time, that can save you a lot of space. I've heard about many servers that use this function and save space.

Re: MY SERVER ALMOST FULL, CAN I SAVE IT?

PostPosted: Mon Sep 12, 2016 12:08
by taikedz
TARD wrote:Here's what I have and understand, about 4 GB
2.7G Sep map.sqlite
1.3G Sep minetest.tar.gz (backup)

The server is ubuntu and I guess it takes about 1 GB (maybe it takes more?)
So there's still 2-3 GB I have no idea where or what it is.


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cd /
du --summarize -h # this will give you a summary of what folders in / are taking up the most space

`cd` into the largest folders and run the same command again to find the largest directories in that directory

Iterate until you find your data hogs. BE CAREFUL. Only operate on directories you know are minetest-related, or which you KNOW are OK to remove.

Also you should keep your logs. run the `gzip` command on any non-compressed log files. That should take them down from 100's of MB to about 2-5 MB (since logs are highly redundant....)