centos, web server, what's really disk space of my server /home?

songdapeng

New Member
Joined
Mar 1, 2021
Messages
4
Reaction score
0
Credits
35
My question
What's my /home disk really using.

As I used CentOS for my web server and now disk space is nearly full 99%.
[root@host /]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 909M 0 909M 0% /dev
tmpfs 919M 0 919M 0% /dev/shm
tmpfs 919M 98M 822M 11% /run
tmpfs 919M 0 919M 0% /sys/fs/cgroup
/dev/vda2 50G 47G 839M 99% /
/dev/loop0 2.0G 4.9M 1.9G 1% /tmp
tmpfs 184M 0 184M 0% /run/user/0
my website is keep at /home path.
at / path, I summary /home disk used. it's 41GB
[root@host /]# du -sh /home
41G /home
[root@host /]# du -sh *
0 1
0 2
8.0K backup
0 bin
348M boot
0 dev
364K error_log
64M etc
25G home
0 lib
0 lib64
16K lost+found
4.0K media
4.0K mnt
du: cannot access ‘proc/4714/task/4714/fd/4’: No such file or directory
du: cannot access ‘proc/4714/task/4714/fdinfo/4’: No such file or directory
du: cannot access ‘proc/4714/fd/4’: No such file or directory
du: cannot access ‘proc/4714/fdinfo/4’: No such file or directory
0 proc
12K quota.user
4.0K razor-agent.log
303M root
98M run
0 sbin
0 scripts
4.0K srv
0 sys
when I go inside the /home and summary one by one, it's 25GB.
 


[root@host /]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
devtmpfs 232629 357 232272 1% /dev
tmpfs 235246 1 235245 1% /dev/shm
tmpfs 235246 766 234480 1% /run
tmpfs 235246 16 235230 1% /sys/fs/cgroup
/dev/vda2 3276800 707723 2569077 22% /
/dev/loop0 135184 415 134769 1% /tmp
tmpfs 235246 1 235245 1% /run/user/0
 
My question
What's my /home disk really using.
Code:
[root@host /]# du -sh /home
41G /home
Your /home is using 41G, a minimal installation is probably around 10G maybe more or less. Looking at your df output it looks like that would be about 9G so that would add up to a total of about 50G.
 
Last edited:

Members online


Latest posts

Top