up vote 0 down vote favorite
share [g+] share [fb]

I am wondering how this is possible. At my host, I have a Mysql folder that is 17 Gig big (du told me) , however I have only 20Gig, but df and the admin panel say's I still have 16Gig Free. How is this possible? Does anyone know?

Thank you

link|improve this question
1  
I know that linux can sometimes overallocate memory (Put simply, it pretends to allocate it until you use it.) I wonder if it perhaps does the same with disk space. – izb Oct 23 '09 at 8:59
feedback

2 Answers

My guess would be that your files are actually sparse files.

It means that you actually have only ~4GBs of data in your folder, but MySQL allocated 17GB without filling it.

link|improve this answer
feedback

As well as the sparse files possibility, it is not uncommon for shared hosts to separate database space from other disk quota either intentionally (some charge extra for database space) or accidentally (by virtue of the way their filesystems are laid out and their quota checking scripts/configuration are set up).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown