LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-03-2012, 12:41 PM   #16
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669

Quote:
Originally Posted by ivanvodisek View Post
Once I tried to delete "cache" directories in pursuit for a gig, but had to reinstall the whole system after.
Yep - two big dangers looking for space:
1) Not knowing what the file is - if you don't know what it is and can't find out do NOT delete it.
2) Not knowing whether the file is in use. You can run "lsof <filename>" to check if it is "open". If it is open do NOT delete it without first stopping the process(es) holding it open. (And again be sure you know what the processes are for before you stop them.)
 
Old 08-03-2012, 12:56 PM   #17
aemtisup
LQ Newbie
 
Registered: Aug 2012
Location: Canada
Distribution: RHEL
Posts: 10

Original Poster
Rep: Reputation: Disabled
@MensaWater:
# du -sxh /
4.9G /

# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_dpgmsvm64-lv_root
50G 47G 189M 100% /


I don't get it... It doesn't make sense...


@acid_kewpie:
# du -xh --max-depth=1
4.0K ./media
0 ./net
16K ./lost+found
119M ./lib
0 ./selinux
4.0K ./opt
0 ./dev
4.1G ./usr
12K ./.dbus
544M ./var
0 ./proc
0 ./misc
20K ./mea
32K ./tmp
32M ./etc
4.0K ./srv
46M ./root
7.1M ./bin
4.0K ./mnt
4.0K ./home
0 ./sys
13M ./sbin
2.0K ./boot
4.9G .
 
Old 08-03-2012, 01:14 PM   #18
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Hmm, yes we're all baffled! and this persisted over a reboot right? So it's not an open file... erm...
 
Old 08-03-2012, 01:17 PM   #19
aemtisup
LQ Newbie
 
Registered: Aug 2012
Location: Canada
Distribution: RHEL
Posts: 10

Original Poster
Rep: Reputation: Disabled
yes, persisted after a reboot... I've got 3 other identical machines (same hardware, same software) and they all show around 5G of usage with df. I don't understand what's going on with this one... I assume du and df would get their info from the same place. Any chance one of them uses a file to store some data and that file could be corrupted thus giving false info?
 
Old 08-03-2012, 01:20 PM   #20
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by acid_kewpie View Post
Hmm, yes we're all baffled!
I certainly know I am...
 
Old 08-03-2012, 01:20 PM   #21
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I would speculate about filesystem corruption. try fscking the root partition (from a rescue CD to be safest), maybe you'll end up with a large lump of not much in /lost+found to delete
 
1 members found this post helpful.
Old 08-03-2012, 01:44 PM   #22
ivanvodisek
LQ Newbie
 
Registered: Aug 2012
Location: croatia
Distribution: xubuntu
Posts: 22

Rep: Reputation: 0
Unhappy

not much help, but in ubuntu for few hundreds megs try:
Code:
sudo apt-get clean
 
Old 08-03-2012, 01:56 PM   #23
aemtisup
LQ Newbie
 
Registered: Aug 2012
Location: Canada
Distribution: RHEL
Posts: 10

Original Poster
Rep: Reputation: Disabled
@acid_kewpie: I'll try that Monday morning before the user gets in...
 
Old 08-03-2012, 01:58 PM   #24
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
My usual first suspects: accumulated log files, browser cache directories, archived e-mail, archived newsgroups.
 
Old 08-03-2012, 02:03 PM   #25
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Yep - at this point it looks like AcidKewpie is right. You'll need to do fsck on it. Make sure you have a good backup before proceeding.
 
Old 08-03-2012, 03:58 PM   #26
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by aemtisup View Post
@acid_kewpie: I'll try that Monday morning before the user gets in...
cool, let us know how it gets on, interesting case.

---------- Post added 03-08-12 at 09:58 PM ----------

Quote:
Originally Posted by NyteOwl View Post
My usual first suspects: accumulated log files, browser cache directories, archived e-mail, archived newsgroups.
yes, but we moved on from that long ago.

---------- Post added 03-08-12 at 09:59 PM ----------

Quote:
Originally Posted by ivanvodisek View Post
not much help, but in ubuntu for few hundreds megs try:
Code:
sudo apt-get clean
and the other unaccounted for 45gb?
 
Old 08-06-2012, 12:52 PM   #27
aemtisup
LQ Newbie
 
Registered: Aug 2012
Location: Canada
Distribution: RHEL
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hmm.. Had to run a boot-up file system check (which found no errors) since I realized this morning that I'm unsure how to go about a fsck on the / partition... I found this link: https://unixbhaskar.wordpress.com/20...including-lvm/ somewhat helpful but I don't want to do something if I'm not sure about it... To complicate things, the root partition is a logical volume so I'm not sure I can use the basic procedure for creating the device... Anyone know if this procedure is correct (for LVM), or any other resource that could help me?
 
Old 08-06-2012, 03:22 PM   #28
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
If you boot into single user mode it is typically safe to run fsck on your mounted / (whether its an LVM or not).
 
Old 08-06-2012, 03:48 PM   #29
ivanvodisek
LQ Newbie
 
Registered: Aug 2012
Location: croatia
Distribution: xubuntu
Posts: 22

Rep: Reputation: 0
Red face

khm...

(if i didn't miss something, most of free space is unavailable and not reported). Too weird fsck couldn't fix this, U might loose some data. make backup.

i wander what gparted (like partition magic in win) would show? how about resize partition to min free space, then back to max free space? or convert it to ext2 then back to ext3? weird things happen here, maybe this would fix them and maybe i'm proposing a road to hell ]:-)
 
Old 08-07-2012, 12:25 AM   #30
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Boot into single user mode
Unmount mounted partitions

Check with du

You may have data under the mount points /boot and/or /home due to a failed mount at some stage. 'du' will not see that; by unmounting, it becomes visible.

PS
please post any commands / results between [code] and [/code]
 
3 members found this post helpful.
  


Reply



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
[SOLVED] Root partition full... kern68 Linux - General 5 02-27-2012 07:04 PM
[SOLVED] my root partition becomes full matters Slackware 2 10-15-2011 05:23 AM
root partition full laan97ac Mandriva 6 07-23-2007 01:09 PM
root ('/') partition is FULL inon^ Linux - Hardware 2 08-08-2005 01:19 PM
Root partition is full, what now? Joe Soap Linux - Newbie 30 03-31-2005 11:38 AM

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

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