D
D
Dmitry2015-01-21 17:43:11
linux
Dmitry, 2015-01-21 17:43:11

Where can free space on the HDD go?

Good afternoon!
There is a remote server with raid 1 (ext3) on debian
If you look at the directories, then
du / -h --max-dept=1
763G /
And if df -h
/dev/disk/by-uuid/ 1.8T 1.6T 145G 92 % /
A discrepancy of about 800 gigabytes.
Please tell me that I did not take into account how to look more.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
S
Sergey Petrikov, 2015-01-21
@mialon

ncdu /look again.
The place goes nowhere when the disk crashes and some sectors are marked by the system as bad.

A
Armenian Radio, 2015-01-21
@gbg

uptime big? Have the files been deleted? The fact is that in linux, unlike windows, the file name and its inode are separate entities, and if you delete an open file, it seems to disappear from the FS, but the space will not be freed until the process closes it.

V
Vlad Zhivotnev, 2015-01-21
@inkvizitor68sl

lsof | grep deleted says anything?
Another option is that you have nginx cached something for 800 gigs (these files do not get into du). Well, or someone else, except for nginx.

Пума Тайланд, 2015-01-21
@opium

сделайте лучше
cd /
du -s * | sort -n

O
O Di, 2015-01-21
@insiki

В /var/log случайно вакханалия не творится?

G
giner, 2015-01-28
@giner

Попробуйте ключ запустить du с ключом --apparent-size и без него:

sudo du -xsh --apparent-size /
sudo du -xsh /

Ещё посмотрите какой процент блоков зарезервирован для root:
$ sudo dumpe2fs -h /dev/sda1 | grep -i "block count"
Block count:              7323904
Reserved block count:     366195
$ calc 366195/7323904
  ~0.04999997269215980985

"lsof | grep deleted" - тоже хороший совет уже упомянутый выше

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question