Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-13-2010, 04:42 AM
|
#1
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Rep:
|
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
|
|
|
08-13-2010, 05:59 AM
|
#2
|
Member
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154
Rep:
|
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
|
|
|
08-13-2010, 06:05 AM
|
#3
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
My first guess is you have deleted files that are still open.
|
|
|
08-13-2010, 06:10 AM
|
#4
|
Member
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638
Rep: 
|
If remove files from graphics clean you Trash
|
|
|
08-13-2010, 06:22 AM
|
#5
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
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.
|
|
|
08-13-2010, 07:12 AM
|
#6
|
Member
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154
Rep:
|
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.
|
|
|
08-13-2010, 08:07 AM
|
#7
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
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?
|
|
|
08-13-2010, 08:25 AM
|
#8
|
Member
Registered: Aug 2010
Distribution: CentOS, RHEL, Ubuntu,
Posts: 154
Rep:
|
Just Run this command on / directory
Last edited by mahi_nix; 08-13-2010 at 08:26 AM.
|
|
|
08-13-2010, 08:33 AM
|
#9
|
Member
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638
Rep: 
|
Quote:
Originally Posted by darkmanta
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.
|
|
|
08-13-2010, 09:16 AM
|
#10
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
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
|
|
|
08-13-2010, 09:34 AM
|
#11
|
Member
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724
Rep: 
|
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.
|
|
|
08-13-2010, 11:59 AM
|
#12
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
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?
|
|
|
08-14-2010, 12:51 AM
|
#13
|
Member
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638
Rep: 
|
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
|
|
|
08-14-2010, 12:33 PM
|
#14
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
Quote:
Originally Posted by sem007
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.
|
|
|
08-14-2010, 10:51 PM
|
#15
|
Member
Registered: Sep 2009
Location: Galveston Tx
Posts: 291
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|