LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-13-2010, 04:42 AM   #1
darkmanta
LQ Newbie
 
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16

Rep: Reputation: 0
lost disk space


Hi,
I can't understand why a "df" gives 100% disk usage on / even if I delete many files, GB of files.

I have a Fedora 7 server with / in RAID1 that looks clean.

Any suggestion?

Thank you
 
Old 08-13-2010, 05:59 AM   #2
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
Hi,

Can you tel us, how many partions are created in your Fedora Syatem and which directory data you have deleted in Fedora7 system ???

Thanks,

Mahi
 
Old 08-13-2010, 06:05 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
My first guess is you have deleted files that are still open.
 
Old 08-13-2010, 06:10 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
If remove files from graphics clean you Trash
 
Old 08-13-2010, 06:22 AM   #5
darkmanta
LQ Newbie
 
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16

Original Poster
Rep: Reputation: 0
I removed some installed packages like scribus, cleaned /tmp dir, cut/pasted 2GB of back-up files from / to an external disk and then this is my df result:

> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.9G 132G 3% /var

I have no direct access to the machine, I'm working through webmin

Thank you people

Last edited by darkmanta; 08-13-2010 at 06:24 AM.
 
Old 08-13-2010, 07:12 AM   #6
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
Hi,

Is it possible to check via command line and as Sem007 said try to remove files from Trash and let us know.

and also Run du -hs command on / and paste your result here.

Thanks,

Mahi

Last edited by mahi_nix; 08-13-2010 at 07:14 AM.
 
Old 08-13-2010, 08:07 AM   #7
darkmanta
LQ Newbie
 
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16

Original Poster
Rep: Reputation: 0
there is really something wrong:

> du -hs /
du: cannot access `/proc/26677/task/26677/fd/4': No such file or directory
du: cannot access `/proc/26677/fd/4': No such file or directory
129G /

129G ?????????

> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.9G 132G 3% /var

is my filesystem corrupted?
 
Old 08-13-2010, 08:25 AM   #8
mahi_nix
Member
 
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154

Rep: Reputation: 16
Just Run this command on / directory

Last edited by mahi_nix; 08-13-2010 at 08:26 AM.
 
Old 08-13-2010, 08:33 AM   #9
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by darkmanta View Post
there is really something wrong:

> du -hs /
du: cannot access `/proc/26677/task/26677/fd/4': No such file or directory
du: cannot access `/proc/26677/fd/4': No such file or directory
129G /

129G ?????????

> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.9G 132G 3% /var

is my filesystem corrupted?
nop it is sum of used space of "/" "/home" "/var"

Quote:
cut/pasted 2GB of back-up files from / to an external disk and then this is my df result:
Can you give exact location where you cut data?

Last edited by sem007; 08-13-2010 at 08:35 AM.
 
Old 08-13-2010, 09:16 AM   #10
darkmanta
LQ Newbie
 
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16

Original Poster
Rep: Reputation: 0
I cut/pasted many files from /backup to /mnt/backup where I mounted an external samba directory.
The files have been correctly moved but :
> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.9G 132G 3% /var
 
Old 08-13-2010, 09:34 AM   #11
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Try to use the 'watch' command to monitor the root filesystem space and determine which folder fill up your hard disk:
Code:
su -
cd /
watch -n 1 "du -s * | sort -rn"

Last edited by quanta; 08-13-2010 at 12:17 PM.
 
Old 08-13-2010, 11:59 AM   #12
darkmanta
LQ Newbie
 
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16

Original Poster
Rep: Reputation: 0
58535852 mnt
35956568 backup
32547460 home
4250484 usr
2751996 var
242736 etc
224872 lib
26428 boot
20148 sbin
6832 root
6408 bin
420 tmp
100 dev
16 lost+found
12 media
8 webmin-setup.out
8 srv
8 selinux
8 opt
0 sys
0 proc
0 net
0 misc

after a new cut/paste:

59759508 mnt
34732888 backup

so something has changed in /backup
but

Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.9G 132G 3% /var

I can't understand... any idea?
 
Old 08-14-2010, 12:51 AM   #13
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
I cut/pasted many files from /backup to /mnt/backup where I mounted an external samba directory.
The files have been correctly moved but :
As you said you move data to external samba dir.

but df -h command not display any mounted dir.

Quote:
> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.9G 132G 3% /var
Can you please post mount command output.

I assume you move data /backup to /mnt/backup (same file system) not mounted dir.

HTH
 
Old 08-14-2010, 12:33 PM   #14
darkmanta
LQ Newbie
 
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sem007 View Post
As you said you move data to external samba dir.

I assume you move data /backup to /mnt/backup (same file system) not mounted dir.

HTH
/mnt/backup points to a different machine. in fstab I have this entry:
Quote:
\\10.10.10.16\backup /mnt/backup cifs defaults 0 0
and I don't get free space even if I simply delete big files, like uninstalling big packets or removing old backup files.

Now I think it's a ext3 fs failure.
 
Old 08-14-2010, 10:51 PM   #15
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Simple answer, the system will not report virtual open files, but df will. The following command will show the open files. Trace them back to the service that has them open and then stop and start the service. Do not restart the service, but actually stop and then start them.

lsof |grep deleted

Last edited by joec@home; 09-11-2010 at 04:31 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering disk space lost due to dd error corbis_demon Linux - General 4 09-22-2009 08:43 PM
disk space lost in mke2fs amitabhm Linux - Software 2 05-10-2007 12:39 AM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
regain disk space lost cirosoto Linux - Distributions 1 07-21-2004 08:50 PM
lost disk space HELP kjell1979 Linux - Software 3 08-08-2001 04:34 PM

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

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