Quote:
Originally Posted by OreCollector
We have a VM running help desk software which doesn't rotate all of its log files. We added the log files to the rotation and deleted a file 87G (catalina) file. However, the disk space is not being reclaimed.
How can we find out which file under the LVM to remove?
~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 98G 87G 11G 90% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 193M 1.7G 11% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/sda1 497M 125M 373M 26% /boot
tmpfs 378M 0 378M 0% /run/user/0
|
You don't have to. The space won't be released until you restart the tomcat service; the file is 'allocated' until you do so. Restart tomcat, and the catalina log space should reflect as free.