disk problem

General support questions
Post Reply
cgokan
Posts: 34
Joined: 2016/12/07 13:11:56

disk problem

Post by cgokan » 2018/07/09 16:05:19

Hello

Disk 208GB seems full.(centos6.9 final) But it's not normal to be so big. What could be the problem?

Code: Select all

Filesystem           Type   Size  Used Avail Use% Mounted on
/dev/md2             ext4   1,8T  208G  1,5T  13% /
tmpfs                tmpfs   16G     0   16G   0% /dev/shm
/dev/md1             ext3   496M   59M  412M  13% /boot
> inode

Code: Select all

df -Thi
Filesystem           Type  Inodes IUsed IFree IUse% Mounted on
/dev/md2             ext4    116M  236K  116M    1% /
tmpfs                tmpfs   4,0M     1  4,0M    1% /dev/shm
/dev/md1             ext3    128K    45  128K    1% /boot

> root state:

Code: Select all

# du -hs /
du: cannot access `/proc/14207/task/14207/fd/4': No such file or directory
du: cannot access `/proc/14207/task/14207/fdinfo/4': No such file or directory
du: cannot access `/proc/14207/fd/4': No such file or directory
du: cannot access `/proc/14207/fdinfo/4': No such file or directory
136G	/

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: disk problem

Post by TrevorH » 2018/07/09 16:27:44

Run du -x -m -d 1 / to find the top level directory that contains all the space. Repeat the same command, replacing / with the directory from that list that used the most space and keep repeating that process until you find the bottom of the tree where all the space has gone.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

cgokan
Posts: 34
Joined: 2016/12/07 13:11:56

Re: disk problem

Post by cgokan » 2018/07/09 16:51:49

Hello

Code: Select all

 du -x -m -d 1 / 
du: invalid option -- 'd'
Try `du --help' for more information.
du version

Code: Select all

du (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjörn Granlund, David MacKenzie, Paul Eggert,
and Jim Meyering.


User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: disk problem

Post by TrevorH » 2018/07/09 18:04:53

Ah, OK, thought we were in the CentOS 7 forum, for C6 you need to replace -d 1 with --max-depth 1
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

cgokan
Posts: 34
Joined: 2016/12/07 13:11:56

Re: disk problem

Post by cgokan » 2018/07/09 19:17:32

Hello

Code: Select all

# du -hs /opt/zimbra/
46G	/opt/zimbra/

Code: Select all

du -m -x 1 --max-depth 1 /
du: cannot access `1': No such file or directory
1	/mnt
864	/usr
514	/var
0	/sys
1	/lost+found
20137	/root
1	/home
40	/etc
1	/tmp
1	/run
302	/lib
1	/media
46722	/opt
7	/bin
27	/lib64
1	/cgroup
1	/selinux
1	/boot
1	/.pki
0	/proc
0	/dev
14	/sbin
1	/srv
69648	/


User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: disk problem

Post by TrevorH » 2018/07/09 19:40:21

You have a stray '1' after -x in your command but
20137 /root
20G in /root?

46GB under /opt
69648 /
But only 69GB in total now - did you delete a bunch of stuff already?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

cgokan
Posts: 34
Joined: 2016/12/07 13:11:56

Re: disk problem

Post by cgokan » 2018/07/09 20:59:55

no , I did not delete anything.

Code: Select all

# df -Th
Filesystem           Type   Size  Used Avail Use% Mounted on
/dev/md2             ext4   1,8T  208G  1,5T  13% /
tmpfs                tmpfs   16G     0   16G   0% /dev/shm
/dev/md1             ext3   496M   59M  412M  13% /boot


User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: disk problem

Post by TrevorH » 2018/07/09 21:45:31

Well you only have 69GB of files there so _something_ has most likely deleted some files that are currently open by a running process. When a file is open and is deleted then its entries in the directory are removed and it effectively vanishes... except for the things that had it open already which are still using it. The space used by those files is not released until the process(es) that have it open end or close the file.

If this is the case then running lsof | grep -i del will show the open deleted files so that you can restart the processes that are using it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

cgokan
Posts: 34
Joined: 2016/12/07 13:11:56

Re: disk problem

Post by cgokan » 2018/07/10 06:39:56

hello

Code: Select all

java       3423  zimbra  DEL       REG                9,2               18478693 /opt/zimbra/data/tmp/jna/jna1846172354901753041.tmp
mysqld     3556  zimbra    4u      REG                9,2       10748   18099197 /opt/zimbra/data/tmp/ibIyqHdY (deleted)
mysqld     3556  zimbra    5u      REG                9,2           0   18099199 /opt/zimbra/data/tmp/ibCEzOPc (deleted)
mysqld     3556  zimbra    6u      REG                9,2           0   18099200 /opt/zimbra/data/tmp/ib47QVrr (deleted)
mysqld     3556  zimbra    7u      REG                9,2           0   18099202 /opt/zimbra/data/tmp/ibmmWAnV (deleted)
mysqld     3556  zimbra   20u      REG                9,2           0   18099212 /opt/zimbra/data/tmp/ibaT6y6u (deleted)
mysqld     3556  zimbra 1269uW     REG                9,2       98304   18352271 /opt/zimbra/db/data/zimbra/deleted_account.ibd
nginx      3969  zimbra  DEL       REG                0,4                  42279 /dev/zero
nginx      3969  zimbra  DEL       REG                0,4                  42280 /dev/zero
nginx      3969  zimbra  DEL       REG                0,4                  42286 /dev/zero
nginx      3972  zimbra  DEL       REG                0,4                  42279 /dev/zero
nginx      3972  zimbra  DEL       REG                0,4                  42280 /dev/zero
nginx      3972  zimbra  DEL       REG                0,4                  42286 /dev/zero
nginx      3973  zimbra  DEL       REG                0,4                  42279 /dev/zero
nginx      3973  zimbra  DEL       REG                0,4                  42280 /dev/zero
nginx      3973  zimbra  DEL       REG                0,4                  42286 /dev/zero
nginx      3974  zimbra  DEL       REG                0,4                  42279 /dev/zero
nginx      3974  zimbra  DEL       REG                0,4                  42280 /dev/zero
nginx      3974  zimbra  DEL       REG                0,4                  42286 /dev/zero
nginx      3975  zimbra  DEL       REG                0,4                  42279 /dev/zero
nginx      3975  zimbra  DEL       REG                0,4                  42280 /dev/zero
nginx      3975  zimbra  DEL       REG                0,4                  42286 /dev/zero
httpd      4959  zimbra  DEL       REG                0,4                  44251 /dev/zero
httpd      4988  zimbra  DEL       REG                0,4                  44251 /dev/zero
httpd      4989  zimbra  DEL       REG                0,4                  44251 /dev/zero
httpd      4991  zimbra  DEL       REG                0,4                  44251 /dev/zero
zmstat-my  5233  zimbra    3r      REG                9,2       12867   80740365 /tmp/mysql.out.5233 (deleted)
sshd      19572    root  DEL       REG                0,4               24979725 /dev/zero
sshd      19572    root  DEL       REG                0,4               24979700 /dev/zero

Post Reply