LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-31-2014, 02:38 PM   #1
Rohant
Member
 
Registered: Oct 2011
Location: India, Mumbai
Distribution: RHEL, Fedora,Ubuntu, Centos, Windows XP & Windows 7
Posts: 44

Rep: Reputation: Disabled
Not Freeing up disk space after deleting files centos 5.6 bit 64


Hi All,

We have 64 bit centos 5.6 mysql server. which disk was completely utilized to 100%. we stoped the mysql server & deleted bin logs, other unwanted logs file & data which were is GBs.

After deleting data we use sync command but still disk is showing 100% utilized. so we rebooted the server twice but still its not showing free space.

below are some links i tried but didn't solve the issue.

==========
http://unix.stackexchange.com/questi...eted-files-now

http://setaoffice.com/2011/10/31/del...in-filesystem/
==========

Please suggest if any one have solution on it or some one faced this issue before.
 
Old 03-31-2014, 02:48 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,535

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
The ext2/3/4 filesystems reserve, by default, 5% of the total space for the root user. When df shows "100%" usage, that really means "100% (or more) of the 95% generally available", so if the disk were really 100% full, you would have to free up at least 6% of the total space in order to see that number drop below 100%.

To get the real picture, you need to run df without the "-h" or "-H" options and look at the numbers in the "1k blocks" and "Used" columns.

You should also make sure that the files you are deleting do not have more than one hard link. That link count needs to go to zero in order to release the space.
 
Old 04-01-2014, 08:33 AM   #3
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
You will need to look for processes that still have the deleted files open. A tool like lsof will help as part of that investigation.
 
Old 04-01-2014, 10:28 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,535

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
@grim76: You might want to note the words, "so we rebooted the server..." in the original post.
 
Old 04-01-2014, 10:34 AM   #5
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Maybe you should check if the inode usage is not 100%, try maybe 'df -i'
 
Old 04-01-2014, 12:56 PM   #6
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Quote:
Originally Posted by rknichols View Post
@grim76: You might want to note the words, "so we rebooted the server..." in the original post.
Missed that in the original post. Apologize for my lack of retaining that tidbit of knowledge.
 
  


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
Redhat 5 not freeing space after deleting files. akharejhansi Linux - Hardware 5 10-25-2010 03:14 AM
Freeing space; deleting subdirs after installs intermod Linux - General 2 01-01-2008 03:58 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:03 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