LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-19-2012, 11:10 PM   #1
raheel_com88
LQ Newbie
 
Registered: Nov 2012
Location: Islamabad, Pakistan
Posts: 19

Rep: Reputation: Disabled
Post Root Filesystem (/) appears almost Full


Dear Viewers,

I have a Linux WCCP Server. It's / appears 25G/30G even nothing large is stored on it. The Largest firetory stored on it is of 1.9G. I can't figured it out. I thoroughly checked it using this command:

du -sh *

I even restart the server so many time to referesh its inodes but every step is useless.

Can anyone help me? Quick response will be highly appreciated.

Regards,
Muhammad Raheel Arshad
Systems Engineer
 
Old 11-20-2012, 01:01 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,342

Rep: Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746
Well, this will measure by KB and sort numerically
Code:
du -s *|sort -k1 -n
then you need to go through the dirs, starting with the largest and figure out what's there.

You can use
Code:
df -h .
as you go to check that you're only looking at stuff on the '/' partition.
 
Old 11-20-2012, 02:12 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,099

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
I find it better to reverse sort, and pipe it to head. Then just start working your way down the list.
 
Old 11-20-2012, 10:09 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,767

Rep: Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209
OK, by restarting the server you've eliminated the possibility of a large unlinked file held open by some process. One thing that remains is data hidden under an active mount point, the result, for example, of copying /home to a separate file system and then mounting that on /home without first removing the original content. Try this:
Code:
mkdir /tmp/tmproot
mount --bind / /tmp/tmproot
du -c --max-depth=2 /tmp/tmproot
If unwanted data shows up, you can delete it from /tmp/tmproot and free up that space in your root file system. Afterward, you can "umount /tmp/tmproot" and "rmdir /tmp/tmproot" and be back to normal (or, just reboot).
 
  


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] Root filesystem is full so unable to mount the second device smilemukul Linux - Newbie 4 03-09-2012 04:53 AM
[SOLVED] scratch space appears full but I can't find the files gunther123 Solaris / OpenSolaris 4 09-23-2010 05:38 PM
RHEL4 root directory says full but sum of use is nowhere near full. Why? SteveInTallyFL Linux - Server 11 02-05-2009 05:45 AM
Disk appears to be full, but I don't think it is richardhufford Linux - Newbie 7 06-15-2008 12:44 AM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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