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.
|
 |
09-26-2010, 03:02 AM
|
#1
|
Member
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179
Rep:
|
how to check disk space
Hi All,
Code:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 50G 47G 602M 99% /
How to find why Avail space shows only 602M?
|
|
|
09-26-2010, 03:12 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
Most often this shows that the logfiles are growing (too big). First cd into /var/log and check the sizes of the log files.
If that doesn't solve it: You can see which directories are the biggest and zoom in with the following command:
du -sh *
Start at the root dir (/), locate the directory that shows the largest size and cd to it. Issue the du command again etc.
Hope this helps.
|
|
|
09-26-2010, 03:37 AM
|
#3
|
Member
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179
Original Poster
Rep:
|
Well, I used du command to check the usage but was unable to find the cause.
Below is the output
Code:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 50G 47G 595M 99% /
/dev/sda5 17G 12G 4.4G 73% /bkup
/dev/sda1 97M 13M 80M 14% /boot
none 3.5G 0 3.5G 0% /dev/shm
/dev/sda2 60G 7.8G 49G 14% /usr
nfs-server:/data/nfs/RT
346G 245G 83G 75% /usr/isa/aares/reports-06
Code:
39G backups
6.5M bin
12G bkup
7.3M boot
168K dev
52M etc
780M home
8.0K initrd
90M lib
20M lib64
16K lost+found
24K media
8.0K misc
8.0K mnt
8.0K opt
du: cannot access `proc/7732/task/14095/fd/194': No such file or directory
du: cannot access `proc/7732/task/22403/fd/206': No such file or directory
du: cannot access `proc/7732/task/22403/fd/207': No such file or directory
du: `proc/6532': No such file or directory
du: `proc/6533': No such file or directory
du: `proc/6536': No such file or directory
du: `proc/6539': No such file or directory
du: `proc/6542': No such file or directory
du: `proc/6543': No such file or directory
du: `proc/6549': No such file or directory
du: `proc/6550': No such file or directory
du: `proc/6551': No such file or directory
du: `proc/6571': No such file or directory
du: `proc/6572': No such file or directory
du: `proc/6573': No such file or directory
7.9G proc
52M root
20M sbin
0 selinux
8.0K srv
0 sys
96M tmp
8.7G usr
1.7G var
70G total
|
|
|
09-26-2010, 03:45 AM
|
#4
|
Member
Registered: Mar 2004
Location: 78 france
Posts: 31
Rep:
|
all is on the screen your backup folders take a lot of room
49G +12G
and /usr
|
|
|
09-26-2010, 03:47 AM
|
#5
|
Member
Registered: Mar 2004
Location: 78 france
Posts: 31
Rep:
|
39G sorry
|
|
|
09-26-2010, 04:02 AM
|
#6
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
/bkup is on a different mounted partition, you don't have to take this one into account.
/backups seems to be the culprit and to a lesser extend /usr (both part of /).
Have a look at /backups and (re)move what isn't needed.
Hope this helps.
|
|
|
09-26-2010, 05:46 AM
|
#7
|
Member
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179
Original Poster
Rep:
|
Yes /backups is 39G
50 - 39 = 11G for all other then /backups, /bkup and /usr
50 - 47 = 3G
My question is about 3GB which is free and not shown in df ouput
|
|
|
09-26-2010, 06:14 AM
|
#8
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Don't forget the 5% spare space for the root account.
|
|
1 members found this post helpful.
|
09-26-2010, 06:16 AM
|
#9
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi,
If a file system is created using default options, 5% is reserved for root use only and not available for normal users.
50G -> 5% = 2.5G for root use only.
2.5G + 600M -> 3G
Hope this clears things up.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 01:22 PM.
|
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
|
|