hossein

Active Member
Mar 23, 2014
34
0
56
cPanel Access Level
Root Administrator
hi my server disk is running out , so i try to find what is the problem in my server .
it's not normal for me to my disk Usage is 100% and i found :
Code:
[root@fra pakanpre_s1]# du -sh /usr/share/cagefs-skeleton/var/lib/mysql/
506G    /usr/share/cagefs-skeleton/var/lib/mysql/
[root@fra pakanpre_s1]#
i see this directory use much space in my server , how i can clean it and remove these files and make sure this directory not getting full again ?

Thanks - Hossein .
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
942
421
363
cPanel Access Level
DataCenter Provider
First off, cagefs-skeliton is part of Cage File System and that's CloudLinux, not cPanel. Secondly, /var/lib/mysql is where all the MysQL databases are stored, so there is prob. not too much you can clean up.

Hopefully that gets you going in the right direction.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
That would indicate the usage is all real and inside the MySQL directory. The only other thing you could do would be to check and ensure it's not the error log file taking up a large amount of space, as that could be cleared, but there isn't a way to shrink the MySQL data itself.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
942
421
363
cPanel Access Level
DataCenter Provider
I'll respectfully disagree with @cPRex. It really depends on the storage engine. If it's innodb, then I agree that it's difficult to clean up space. if it's MyISAM and you can clean up tables, then you can optimize tables and reclaim space. As an example, we've seen Drupal sites with huge watchdog tables (where Drupal logs errors). Depending on the storage engine those can be truncated (by the client) to free up space.
 
  • Like
Reactions: Spirogg and cPRex
Thread starter Similar threads Forum Replies Date
E Server Management 1
A Server Management 2