LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-21-2012, 10:16 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
update the server size


I use Redhat server , I found that sometimes removed some files from the server , the file size do not have reduced , eg . I removed 1G size file , the available disk space should be increased 1G ( I use df command ) , but it seems the size is remain the same . can advise what is wrong ?

thx
 
Old 03-22-2012, 12:36 AM   #2
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
In *nix, if a prog has a file open, 'removing' it simply causes it to vanish from eg the ls cmd etc, but the file is still taking up disk space until the prog releases (closes) it.
Compare df http://linux.die.net/man/1/df output to du http://linux.die.net/man/1/du.
You may also get info from lsof http://linux.die.net/man/8/lsof & fuser http://linux.die.net/man/1/fuser.

Ideally, you need to know which prog(s) is/are using the file you 'removed' & how it/they work.


Of course a reboot will clear it, but that's generally recommended in *nix.
 
  


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
[SOLVED] Minimum Partition Size Required in Redhat Linux Server for DNS Server Configuration vamshi_krishv Linux - Server 3 05-06-2011 01:08 AM
LXer: Courgette algorithm reduces Chrome update size LXer Syndicated Linux News 1 07-18-2009 09:23 AM
Update server like to update clients from a central database? linuxlover.chaitanya Ubuntu 2 06-20-2009 12:39 AM
Yum update stopped responding during kernel update install, now server load is high pulsorock Linux - Kernel 1 12-31-2008 01:55 AM


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