I am having trouble with running out of diskspace of one of my clients servers.
The output of the commands
ls -lah in
drwx------ 2 mysql mysql 16K Dec 30 2015 database_xyz
But when I check the filesize in the same catalogue with the command
du -sh *, the output shows:
Why does the output of thoose commands shows two completely different results?
I have only 2.2GB left on the drive.
root@jon-cust-lifeincity:/var/lib/mysql# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg-root 49G 44G 2.2G 96% / tmpfs 1007M 0 1007M 0% /lib/init/rw udev 1002M 108K 1002M 1% /dev tmpfs 1007M 0 1007M 0% /dev/shm /dev/sda1 228M 16M 200M 8% /boot
Turns out that
database_xyz is in fact a catalogue, not a file. So the confusion was made up by my brain.