You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pool: add workaround space mismanagementd by XFS (and others?)
Motivation:
Some filesystems miscalculate/report free space in respect tu used
space:
```
$ df /dcache/pool-a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 558602657792 558397210232 205447560 100% /dcache/pool-a
$ du -s /dcache/pool-a
554502450484 /dcache/pool-a
$ bc
558602657792 - 554502450484
4100207308
```
File system reports 200GB of the free space, however, total - real used
gives ~4TB.
Thus dCache assumes 4TB and write the file system full... ==> IO error
Modification:
use an `effective` free space, which is the minimum between disk
reported and internal accounting free spaces.
Result:
Pool uses the effective free space instead of mathematically correct
value.
Acked-by: Dmitry Litvintsev
Target: master, 10.2
Require-book: no
Require-notes: yes
(cherry picked from commit 208bfbe)
Signed-off-by: Tigran Mkrtchyan <[email protected]>
0 commit comments