/var folder is going to be full

fabioweb90

Verified User
Joined
Feb 20, 2022
Messages
41
Hello, since folder is going to be full i print top biggest folder and the result is in the attachment
Is it safe to delete all cache folder files?
Regards
 

Attachments

  • Immagine 2022-04-06 181632.jpg
    Immagine 2022-04-06 181632.jpg
    19.9 KB · Views: 17
They appear to be cache folders for yum. I believe yum has arguments/options/tools to clean up caches. I don't know if it's a good idea to simple delete the directories, but it's probably safe.

PS: Pasting text as text is preferred over a screenshot.
 
`yum clean all` should do the trick here. It's perfectly safe to run this.

With that said, I think the bigger problem is that your partitions are likely too small. Just a bit more data in /var/lib/mysql and there's not going to be much you can do other than cleaning up your databases.

Have you checked to see what's using so much data in /var/lib/mysql? Maybe there's some cleaning that can safely be done (i.e. log files, backups that were placed here and forgotten about, etc). It might not necessarily be database themselves.
 
Thanks i cleared cache and i have 300MB more free disk space now. I checked also inside /var/lib/mysql and there is a file 6GB called
ibdata1.
Maybe i can try to download on desktop and then delete it?
 

Attachments

  • Immagine 2022-04-08 003130.jpg
    Immagine 2022-04-08 003130.jpg
    48.3 KB · Views: 7
That is a very important file, it contains all your tables and indexes for your databases. There are tons of write ups about that particular file.

 
increase your storage, don't try to delete.

In the future you will face with simple loop
Delete -> update -> upgrade -> Delete
 
Ok thanks in /var/lib/mysql however i can delete folders of old website or can make conflict?
Example folder attached is related to a website i don't need. Is it possible to delete or can generate error?
 

Attachments

  • Immagine 2022-04-08 155627.jpg
    Immagine 2022-04-08 155627.jpg
    53.8 KB · Views: 5
If you don't need the database, you can delete it/drop it the MySQL way, or via the DirectAdmin panel. Deleting any files manually anywhere inside /var/lib/mysql is most likely going to cause you a lot of pain, so don't do it.
 
Back
Top