Gentoo Archives: gentoo-user

From: Platoali <platoali@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: df and du difference
Date: Sat, 16 Aug 2008 10:22:53
Message-Id: 200808161451.05680.platoali@gmail.com
In Reply to: Re: [gentoo-user] df and du difference by Ward Poelmans
1 Ward Poelmans wrote:
2 > You can find those files with lsof | grep "deleted". Try closing the
3 > process with deleted files and suddenly your du en df will give the
4 > same free diskspace.
5 > Ofcourse, a reboot does also the trick.
6
7
8
9 lsof | grep -i deleted
10 ...
11 /dev/console (deleted)
12 mysqld 5679 mysql 5u REG 8,1 0 1009860
13 /tmp/iby8kN8L (deleted)
14 mysqld 5679 mysql 6u REG 8,1 0 1009861
15 /tmp/ib3OyWjn (deleted)
16 mysqld 5679 mysql 7u REG 8,1 0 1009862
17 /tmp/ibCqa6uY (deleted)
18 mysqld 5679 mysql 8u REG 8,1 0 1009863
19 /tmp/ibnDCmHz (deleted)
20 mysqld 5679 mysql 12u REG 8,1 0 1009864
21 /tmp/ibaQcs5a (deleted)
22 ...
23
24
25 Nothing so big. just about 20 lines and the biggest ones are these.
26
27 This server hosts accounting software for an ISP: just a couple python
28 scripts, apache with PHP and a small Postgresql database.
29
30 Bests
31 Platoali
32 t

Replies

Subject Author
Re: [gentoo-user] Re: df and du difference kashani <kashani-list@××××××××.net>