MY SERVER ALMOST FULL, CAN I SAVE IT?

TARD
Member
 
Posts: 45
Joined: Thu Sep 01, 2016 23:28
GitHub: kingtard
IRC: turd
In-game: TARD

MY SERVER ALMOST FULL, CAN I SAVE IT?

by TARD » Fri Sep 09, 2016 06:54

My server is 8 GB VPS. It's gone from 59% to 80% space use in 3 weeks. What can I do?
Thank.
 

User avatar
Naj
Member
 
Posts: 170
Joined: Sat Sep 19, 2015 21:14
GitHub: pyrollo
In-game: naj

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

by Naj » Fri Sep 09, 2016 11:36

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).
 

TARD
Member
 
Posts: 45
Joined: Thu Sep 01, 2016 23:28
GitHub: kingtard
IRC: turd
In-game: TARD

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

by TARD » Fri Sep 09, 2016 17:14

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.
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

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

by MineYoshi » Fri Sep 09, 2016 21:27

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.
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

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

by taikedz » Mon Sep 12, 2016 12:08

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....)
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 6 guests

cron