emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50432: closed (DF shows incorrect disk usage which include disk usag


From: GNU bug Tracking System
Subject: bug#50432: closed (DF shows incorrect disk usage which include disk usage of a mounted path)
Date: Wed, 08 Sep 2021 07:28:02 +0000

Your message dated Wed, 8 Sep 2021 00:26:44 -0700
with message-id <11d60c0e-d90b-222a-0db2-4493cb0d88e4@cs.ucla.edu>
and subject line Re: bug#50432: DF shows incorrect disk usage which include 
disk usage of a mounted path
has caused the debbugs.gnu.org bug report #50432,
regarding DF shows incorrect disk usage which include disk usage of a mounted 
path
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
50432: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=50432
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: DF shows incorrect disk usage which include disk usage of a mounted path Date: Mon, 6 Sep 2021 10:33:17 +0000

Hi,

 

I am not quite familiar with the bug report process of `DF` or os.

 

The Problem

-      DF shows incorrect disk usage which include disk usage of a mounted path

 

The Scenario

We run a registry with docker and the data dir is mounted from NFS or local disk. The docker is using device-mapper.

 

DF result & du result

When registry is busy pulling images, there is no big files in registry container, but the `df -h` shows 7.8 G as below(Sometime 9G the below screenshot 8.5G)

```

[root@10-23-15-8 ~]# df -h | grep  /var/lib/docker/devicemapper/mnt/a0ba326c248009e14e9650c84818fdb45af904338bdc90e7d786a584f63ed47e

/dev/dm-10                10G  7.8G  2.3G   78% /var/lib/docker/devicemapper/mnt/a0ba326c248009e14e9650c84818fdb45af904338bdc90e7d786a584f63ed47e

```

The /var/lib/registry/docker is mounted

```

            {

                "Type": "bind",

                "Source": "/var/local/dce/registry",

                "Destination": "/var/lib/registry",

                "Mode": "rw",

                "RW": true,

                "Propagation": "rprivate"

            }

```

文本

描述已自动生成

 

And at the time, I run `du`.

```

[root@10-23-15-8 ~]# du -h /var/lib/docker/devicemapper/mnt/a0ba326c248009e14e9650c84818fdb45af904338bdc90e7d786a584f63ed47e | tail -n 1

478M       /var/lib/docker/devicemapper/mnt/a0ba326c248009e14e9650c84818fdb45af904338bdc90e7d786a584f63ed47e

```

The du details shows that `df -h` is not correct.

 

The expected behavior

When it became normal, the disk usage is about 400~500M.

```

[root@10-23-15-8 ~]# df -h | grep  /var/lib/docker/devicemapper/mnt/a0ba326c248009e14e9650c84818fdb45af904338bdc90e7d786a584f63ed47e

/dev/dm-10                10G  478M  9.5G    6% /var/lib/docker/devicemapper/mnt/a0ba326c248009e14e9650c84818fdb45af904338bdc90e7d786a584f63ed47e

```

No matter what happened, the `df -h` should not take `mounted path ./var/lib/registry/docker` into account.

 

Further Information

I searched in stackoverflow and other place and only find some issues about `df and du show different` problem. I am not sure which is my case. Thanks.

 

Best regards,

Paco


本邮件及附件含 DaoCloud 保密信息,仅限发送给上面地址中列出的个人或群组,禁止任何其他人以任何形式使用本邮件中的信息。若误收本邮件,请务必通知发送人并直接删去,不得使用、传播或复制本邮件。

--- End Message ---
--- Begin Message --- Subject: Re: bug#50432: DF shows incorrect disk usage which include disk usage of a mounted path Date: Wed, 8 Sep 2021 00:26:44 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 9/8/21 12:02 AM, Paco Xu wrote:
I use this workaround to add `--local` and `-x` flag for `df` to avoid the 
wrong calculation. I got the workaround 
fromhttps://github.com/moby/moby/issues/42823#issuecomment-913584814.

Thanks for following up; closing the bug report.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]