Disk quota exceeded (difference btw. du and df, again!)

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Disk quota exceeded (difference btw. du and df, again!)
# 1  
Old 07-21-2012
Disk quota exceeded (difference btw. du and df, again!)

I haven't been able to do anything since yesterday evening because my account is full to the brim. Very annoying on a Friday evening when no admin will be in until Monday morning. Of course, I might consider cleaning up if I knew where the problem is, but I can't figure it out because du and df give me so widely differing numbers:

Code:
~$ df -h .
Filesystem            Size  Used Avail Use% Mounted on
nfs-server:/misc-home-1/myuser
                       11G   11G     0 100% /home/myuser
~$ du -sh
72M    .

I read an article or two explaining the reason for the difference, but I've logged out in the mean time & ps doesn't show any "interesting" running processes that might have files open:

Code:
~$ ps -ef | grep myuser
myuser    1688 31169  0 15:22 pts/1    00:00:00 ps -ef
myuser    1689 31169  0 15:22 pts/1    00:00:00 grep myuser
myuser    1691 31169  0 15:22 pts/1    00:00:00 sed s/myuser/myuser/g
root     31160  3415  0 14:27 ?        00:00:00 sshd: myuser [priv]
myuser   31164 31160  0 14:27 ?        00:00:00 sshd: myuser@pts/1
myuser   31169 31164  0 14:27 pts/1    00:00:00 -bash

I'm not sure what lsof really is supposed to tell me, but it's supposed to be related, so here is its output:

Code:
~$ lsof | grep myuser
lsof       1221      myuser  cwd       DIR   0,53       50       32 /home/myuser
lsof       1221      myuser  rtd       DIR    9,0     4096        2 /
lsof       1221      myuser  txt       REG    9,0   125736  1868018 /usr/bin/lsof
lsof       1221      myuser  mem       REG    9,0  3927680  1787836 /usr/lib/locale/locale-archive
lsof       1221      myuser  mem       REG    9,0  1437064  1311146 /lib/libc-2.11.3.so
lsof       1221      myuser  mem       REG    9,0   128744  1311142 /lib/ld-2.11.3.so
lsof       1221      myuser    0u      CHR  136,1      0t0        4 /dev/pts/1
lsof       1221      myuser    1w     FIFO    0,6      0t0 58613309 pipe
lsof       1221      myuser    2u      CHR  136,1      0t0        4 /dev/pts/1
lsof       1221      myuser    3r      DIR    0,3        0        1 /proc
lsof       1221      myuser    4r      DIR    0,3        0 58610834 /proc/1221/fd
lsof       1221      myuser    5w     FIFO    0,6      0t0 58610839 pipe
lsof       1221      myuser    6r     FIFO    0,6      0t0 58610840 pipe
grep       1222      myuser  cwd       DIR   0,53       50       32 /home/myuser
grep       1222      myuser  rtd       DIR    9,0     4096        2 /
grep       1222      myuser  txt       REG    9,0   119288    98315 /bin/grep
grep       1222      myuser  mem       REG    9,0  3927680  1787836 /usr/lib/locale/locale-archive
grep       1222      myuser  mem       REG    9,0  1437064  1311146 /lib/libc-2.11.3.so
grep       1222      myuser  mem       REG    9,0    14696  1311158 /lib/libdl-2.11.3.so
grep       1222      myuser  mem       REG    9,0   128744  1311142 /lib/ld-2.11.3.so
grep       1222      myuser  mem       REG    9,0    26048  1658522 /usr/lib/gconv/gconv-modules.cache
grep       1222      myuser    0r     FIFO    0,6      0t0 58613309 pipe
grep       1222      myuser    1w     FIFO    0,6      0t0 58613311 pipe
grep       1222      myuser    2u      CHR  136,1      0t0        4 /dev/pts/1
sed        1223      myuser  cwd       DIR   0,53       50       32 /home/myuser
sed        1223      myuser  rtd       DIR    9,0     4096        2 /
sed        1223      myuser  txt       REG    9,0    65472    98333 /bin/sed
sed        1223      myuser  mem       REG    9,0  3927680  1787836 /usr/lib/locale/locale-archive
sed        1223      myuser  mem       REG    9,0    14696  1311158 /lib/libdl-2.11.3.so
sed        1223      myuser  mem       REG    9,0  1437064  1311146 /lib/libc-2.11.3.so
sed        1223      myuser  mem       REG    9,0   117848  1310765 /lib/libselinux.so.1
sed        1223      myuser  mem       REG    9,0   128744  1311142 /lib/ld-2.11.3.so
sed        1223      myuser  mem       REG    9,0    26048  1658522 /usr/lib/gconv/gconv-modules.cache
sed        1223      myuser    0r     FIFO    0,6      0t0 58613311 pipe
sed        1223      myuser    1u      CHR  136,1      0t0        4 /dev/pts/1
sed        1223      myuser    2u      CHR  136,1      0t0        4 /dev/pts/1
lsof       1224      myuser  cwd       DIR   0,53       50       32 /home/myuser
lsof       1224      myuser  rtd       DIR    9,0     4096        2 /
lsof       1224      myuser  txt       REG    9,0   125736  1868018 /usr/bin/lsof
lsof       1224      myuser  mem       REG    9,0  3927680  1787836 /usr/lib/locale/locale-archive
lsof       1224      myuser  mem       REG    9,0  1437064  1311146 /lib/libc-2.11.3.so
lsof       1224      myuser  mem       REG    9,0   128744  1311142 /lib/ld-2.11.3.so
lsof       1224      myuser    4r     FIFO    0,6      0t0 58610839 pipe
lsof       1224      myuser    7w     FIFO    0,6      0t0 58610840 pipe
sshd      31164      myuser  cwd   unknown                          /proc/31164/cwd (readlink: Permission denied)
sshd      31164      myuser  rtd   unknown                          /proc/31164/root (readlink: Permission denied)
sshd      31164      myuser  txt   unknown                          /proc/31164/exe (readlink: Permission denied)
sshd      31164      myuser NOFD                                    /proc/31164/fd (opendir: Permission denied)
bash      31169      myuser  cwd       DIR   0,53       50       32 /home/myuser
bash      31169      myuser  rtd       DIR    9,0     4096        2 /
bash      31169      myuser  txt       REG    9,0   926536    98370 /bin/bash
bash      31169      myuser  mem       REG    9,0    10272  1658485 /usr/lib/gconv/ISO8859-1.so
bash      31169      myuser  mem       REG    9,0  3927680  1787836 /usr/lib/locale/locale-archive
bash      31169      myuser  mem       REG    9,0  1437064  1311146 /lib/libc-2.11.3.so
bash      31169      myuser  mem       REG    9,0    14696  1311158 /lib/libdl-2.11.3.so
bash      31169      myuser  mem       REG    9,0   286776  1310771 /lib/libncurses.so.5.7
bash      31169      myuser  mem       REG    9,0   128744  1311142 /lib/ld-2.11.3.so
bash      31169      myuser  mem       REG    9,0    26048  1658522 /usr/lib/gconv/gconv-modules.cache
bash      31169      myuser    0u      CHR  136,1      0t0        4 /dev/pts/1
bash      31169      myuser    1u      CHR  136,1      0t0        4 /dev/pts/1
bash      31169      myuser    2u      CHR  136,1      0t0        4 /dev/pts/1
bash      31169      myuser  255u      CHR  136,1      0t0        4 /dev/pts/1

Can anybody make suggestions? This is on a Debian squeeze server, logged in via ssh.
# 2  
Old 07-21-2012
Hi Mregine,

What does a simple ls -l show?

Regards

Dave
# 3  
Old 07-21-2012
Only a minimal number of top-level directories...

Code:
~$ ls -l 
total 14
drwxr-xr-x  2 myuser group  3 Jul 21 05:28 Desktop
drwxr-xr-x  4 myuser group  4 Jun 18 19:33 Work
drwxr-xr-x 12 myuser group 12 Jul 21 05:41 local
drwxr-xr-x  2 myuser group  2 Mar  6 15:01 windows

windows is empty, Desktop contains only one 20-line text file with config stuff, local has some stuff I compiled and my svn repository (du says it's 34M of the total 72), and Work accounts for the rest. ls -lah reveals no large hidden files (nothing larger than 175K, .ICEauthority).
# 4  
Old 07-21-2012
Hi Mregine,

Is the file systems an auto mounted file system, it could well be that the fs has been filled up on the sharing server.

The name "misc-home-1" suggests that you will not be the only user with access to this bit of disk, you may have to wait for the systems admin to have a look.

Regards

Dave
This User Gave Thanks to gull04 For This Post:
# 5  
Old 07-21-2012
Quote:
Originally Posted by gull04
Is the file systems an auto mounted file system, it could well be that the fs has been filled up on the sharing server.
What's an "auto mounted file system"? And how would I know?

(I'm still busy googling, but I haven't found anything helpful for me as a user without admin rights)
# 6  
Old 07-21-2012
Create an alias called "du."

Code:
alias du.='du -k | grep -v "/.*/" | sort -n'

Then using a combination of du.'s ... cd's ... & ls -la's you should be able to determine where and which file(s) are using the most disk space.

example: (cd /home/myuser)

Code:
ls -la (look for files that are large)
du. (this will show you the relative size of your sub-directories)
cd (to the largest sub-directory)

repeat until you find large file that you do not want and delete them.
# 7  
Old 07-21-2012
According to what you posted, there is no reason to believe you are in cause in this disk full situation. The NFS server hosting your home directory and likely many other ones is simply full. You have been misled by questions asking about df and du discrepancy. Here, this discrepancy is expected as du is run on a subdirectory (hour homedir), not the whole file system which what df is reporting. There is not that much you can do outside waiting for an admin to fix the issue as you are likely missing the rights required to identify which other user(s) is/are using too much space.
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Disk quota exceed

There is a special problem for my unix. Disk quota exceed. I use quota -v to check that I almost run out of my quota(I use 45M, limit for me is 50M). However, I try to use du -sh * to locate my file, it shows me that I only use 9M. I'm wandering if there is something wrong. (3 Replies)
Discussion started by: yayayouknow
3 Replies

2. Shell Programming and Scripting

Disk Quota Exception while deleting the files

This is the full file name I get when I do ls -lt from my current directory. EXPORT_v1x0_20120811_11_T_065800_070000.dat.gz File names also consist of date as well. In the above file date is 20120811. So I am trying to delete all the files which starts with EXPORT_v1x0 and whose... (7 Replies)
Discussion started by: raihan26
7 Replies

3. Red Hat

Implememting disk quota on Red Hat

Hi , what are all the files will be edited when we are\ implememting disk quota for a user. Thanks in advance (2 Replies)
Discussion started by: krish4linux
2 Replies

4. Shell Programming and Scripting

disk quota problem

Hi, I am executing following in the script file cat rampIdent.CARE*.txt | rsort.exe -T $BULK_TMP_DIR > rampIdent.ALL.tmp.txt The txt files are around 20 and each are of average size 60 MB. rsort.exe is a program that combines and sorts the input given to it and writes output onto... (2 Replies)
Discussion started by: vadi
2 Replies

5. UNIX for Dummies Questions & Answers

Disk Quota

Hi all, I am new to Unix admin. Can anyone tell me how to set disk quota for the users in /export/home directory? Pls specify the exact command. Thanks (1 Reply)
Discussion started by: solaris5.10
1 Replies

6. UNIX for Dummies Questions & Answers

Disk quota exceeded......

I keep on getting an error on my site saying I've got a 250GB dedicated server, and have used less than 200mb of that. The site has only been on the server for just over a month. What does this mean and how can I sort it? (8 Replies)
Discussion started by: thehaapyappy
8 Replies

7. UNIX for Dummies Questions & Answers

Increasing Disk Quota

I keep getting an error on my site that says: The server is a 250gb dedicated server so I would have thought I had more than enough space. What does this actually mean and can I increase the disk quota? Thanks (0 Replies)
Discussion started by: thehaapyappy
0 Replies

8. Solaris

difference btw lofi and _lofi

Hi all, can you pls tell me the difference btw, LOFI_FAILED and _LOFI_FAILED these 2 are just variables in the script its used...it just stores values... However i have this vague idea that _LOFI_FAILED is something different .. in the sense that it starts from a _... so could that... (0 Replies)
Discussion started by: wrapster
0 Replies

9. UNIX for Advanced & Expert Users

How can I increase the disk quota for a directory?

I know very basic Unix commands s I would really appreciate the assistance of a Unix guru. I am installing an application on a Sun server, when attempting to install I get an error that says I do not have enough space allocated for my install directory (/ACEMS). Error says it has 7235m but needs... (1 Reply)
Discussion started by: rhack
1 Replies

10. Linux

Disk Quota software for Linux

Hi all, Does anyone knows any good disk quota software for Linux? I am trying to assign different disk quota allocation for different users and directories. At moment I am using an FTP solution (Crush FTP, very good), I am able to specify quotas based on directories for each individual user, but... (3 Replies)
Discussion started by: KDE Man
3 Replies
Login or Register to Ask a Question