LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2004, 03:59 AM   #1
dawsonbdky
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
Exclamation /var partition.


Hi,

I have just noticed that the /var partition is full. The culprit was a large log file and I deleted it. However, there still isn't any free space. The command 'du' reports that 20% of the disk is free, but the command 'df' shows that the disk is full.

Can anyone tell me what I have done wrong or overlooked.

Thanks,

Ben.
 
Old 08-16-2004, 04:05 AM   #2
dawsonbdky
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Exclamation /proc filesystem

..

Last edited by dawsonbdky; 08-16-2004 at 04:08 AM.
 
Old 08-16-2004, 05:12 AM   #3
mhollstein
LQ Newbie
 
Registered: Jul 2004
Location: Stuttgart, Germany
Distribution: suse
Posts: 23

Rep: Reputation: 15
how did you delete the files? by rm command or with kde?
"deleting" in kde normally moves the files to a different folder...
 
Old 08-16-2004, 06:15 AM   #4
dawsonbdky
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Using the 'rm' command.
 
Old 08-16-2004, 06:42 AM   #5
Imek
Member
 
Registered: Dec 2003
Location: England
Distribution: Ubuntu
Posts: 71

Rep: Reputation: 15
You could try using the 'du' command to identify larger files you can delete. There'd be a lot of output, so I'd use grep to find the ones in Megabytes:

du -h /var |grep M

Or you could try remounting the partition if the free space is being shown wrong (never seen that before..)

Last edited by Imek; 08-16-2004 at 06:43 AM.
 
Old 08-16-2004, 07:12 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
Most likely you deleted a log file that is currently still being written to so the space will be be freed up until the process is killed.. what was the log file name and try finding the corresponding process that was writing to that file and kill it.

If you don't know what process it is, try doing an lsof to search for the open file.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
enlarging /var partition freebies Linux - General 1 05-05-2005 10:36 AM
var partition UmneyDurak Fedora 1 02-03-2005 09:25 PM
Moving /var to new partition burnpile Slackware 2 12-10-2003 12:33 PM
Cleaning up /var partition - what to delete? mattkat Red Hat 1 09-24-2003 02:56 PM
Disk Usage /var partition Hamma Linux - General 7 07-13-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:00 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
Open Source Consulting | Domain Registration