LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2017, 10:19 AM   #1
OreCollector
LQ Newbie
 
Registered: Jan 2017
Posts: 10

Rep: Reputation: Disabled
Locate Large File on LVM


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
 
Old 01-03-2017, 10:31 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,912

Rep: Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014
Quote:
Originally Posted by OreCollector View Post
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.
 
1 members found this post helpful.
Old 01-03-2017, 01:07 PM   #3
OreCollector
LQ Newbie
 
Registered: Jan 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you! That solved our problems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Session Crashing when cat'ing a large file, tar'ing a large file, etc. newmanium2001 Linux - General 3 12-22-2012 10:32 PM
[SOLVED] Split large .lvm file when column number changes CLD422 Programming 3 03-05-2012 04:51 PM
How to locate non-ascii characters in large files (and then remove them) PeteD Linux - General 1 10-11-2009 07:46 PM
[quick] trying to split a large file but linux says it's to large steve51184 Linux - General 16 05-06-2008 07:40 AM
Which file system for a large lvm Carpo Slackware 15 04-03-2008 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration