>11GB 可用空间,但显示磁盘使用率为 100%?

>11GB 可用空间,但显示磁盘使用率为 100%?
$ df -i /mnt/large_linux/
Filesystem       Inodes   IUsed    IFree IUse% Mounted on
/dev/sda1      29376512 1035086 28341426    4% /mnt/large_linux
$ df /mnt/large_linux/
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1      462509952 451315844         0 100% /mnt/large_linux
$ sudo dumpe2fs /dev/sda1 | grep -i reserved
dumpe2fs 1.42.12 (29-Aug-2014)
Reserved block count:     5875200
Reserved GDT blocks:      995
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
  Reserved GDT blocks at 30-1024
  Reserved GDT blocks at 32798-33792
  Reserved GDT blocks at 98334-99328
  Reserved GDT blocks at 163870-164864
  Reserved GDT blocks at 229406-230400
  Reserved GDT blocks at 294942-295936
  Reserved GDT blocks at 819230-820224
  Reserved GDT blocks at 884766-885760
  Reserved GDT blocks at 1605662-1606656
  Reserved GDT blocks at 2654238-2655232
  Reserved GDT blocks at 4096030-4097024
  Reserved GDT blocks at 7962654-7963648
  Reserved GDT blocks at 11239454-11240448
  Reserved GDT blocks at 20480030-20481024
  Reserved GDT blocks at 23887902-23888896
  Reserved GDT blocks at 71663646-71664640
  Reserved GDT blocks at 78675998-78676992
  Reserved GDT blocks at 102400030-102401024

但是我有足够的可用空间:

$ pydf -k
Filesystem      Size      Used    Avail Use%         Mounted on                
[omitted]
/dev/sda1  462509952 451315844 11177724 97.6 [#####] /mnt/large_linux 

分区

我也尝试过跑步sudo tune2fs -m 0 /dev/sda1,但没有效果。

答案1

我没有从你提供的信息中看出你认为还剩下 11G 的任何理由(除了Size和之间的 G 差异之外Used + Available,但假设这种差异意味着 是不​​正确的Available,尤其是当Available显然表示为 0)。在所有 extX 文件系统上,Used + Available < Size由于保留块或其他原因。

如果考虑到 1G = 1024 * 1024 K,则相应列上的df和报告之间没有差异(正如您的问题所暗示的那样):pydf

  • int(462509952/1024/1024)= 441
  • int(451315844/1024/1024) = 430

将两者相加df,并pydf在可用列上指示 0。

相关内容