LinuxQuestions.org
Visit Jeremy's Blog.
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 05-06-2013, 08:54 AM   #1
manishrmusale
LQ Newbie
 
Registered: May 2011
Posts: 24

Rep: Reputation: 0
Disk is not release after deleting log files /home


Dear team,

We have deleted some logs in /home directory which is related to oracle, but space is not releasing in the home dir. Kindly provide with permanent solution.
 
Old 05-06-2013, 08:56 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,194
Blog Entries: 1

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Hi

Have you tried emptying the trash
 
Old 05-06-2013, 09:00 AM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,860

Rep: Reputation: 238Reputation: 238Reputation: 238
How did you delete them? Did you have ownership to delete them? DId you simple put them ito the trash instead of deleting them?
Log files aren't that large.
Quote:
Kindly provide with permanent solution.
Code:
rm -rf /path/to/filename.log
 
Old 05-06-2013, 09:07 AM   #4
manishrmusale
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: 0
I tried with rm -rf command but same issue facing, kindly suggest how can i find trash folder for deleted files.
 
Old 05-06-2013, 09:09 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,454

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
If the files were still open by the logging process, you'll need to restart the logging process or reboot before the space will be freed.
 
Old 05-06-2013, 09:11 AM   #6
manishrmusale
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: 0
Hi,

Any other solution except of rebooting the server.
 
Old 05-06-2013, 09:22 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
You don't have to reboot the server, you just have to restart the processes that are still using the removed files.
 
Old 05-06-2013, 09:34 AM   #8
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Try using lsof /<insert_File_location> then look for the processes that have files open. You can then determine what you need to either restart/kill/stop in order to free up the space.
 
Old 05-06-2013, 09:57 AM   #9
manishrmusale
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: 0
I found its oracle process.
 
Old 05-06-2013, 10:02 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by manishrmusale View Post
I tried with rm -rf command but same issue facing, kindly suggest how can i find trash folder for deleted files.
The trash folder is in the home directory of whatever user issued that command. However, doing an "rm" command doesn't put things in the trash, but deletes them.
Quote:
Originally Posted by manishrmusale
Any other solution except of rebooting the server.
Did you read/understand what was said to you?? Again, all you need to do is to restart the PROCESS that is creating those log files. If Oracle is creating them, restart Oracle. If the system logger is creating them, then restart the syslog daemon. Rebooting will OBVIOUSLY restart everything, which is why you were told specifically "you'll need to restart the logging process or reboot". So, either restart the process that's logging, or reboot.
Quote:
Originally Posted by manishrmusale
I found its oracle process.
Great...so as you were told at least twice before, restart Oracle or reboot. Pick one.
 
Old 05-06-2013, 07:50 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
If they are Oracle logs, you need to amend the cfg to stop it doing this in future. You shouldn't really be restarting Oracle (at least in a Prod env).
 
1 members found this post helpful.
  


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
Need terminal command for safely deleting log files and other useless garbage in / ahurd Linux - Newbie 8 02-24-2009 06:50 AM
Deleting a 28gb log file has no impact on disk usage, can someone explain why? Andrew.Johnstone Linux - General 3 10-21-2008 05:50 AM
Recover disk space after deleting files aiewolf Linux - Newbie 2 04-03-2007 02:44 PM
Low disk space, problem deleting files gtzpower Linux - Software 1 05-24-2005 09:57 PM


All times are GMT -5. The time now is 11:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration