Project

General

Profile

Actions

Feature #19109

closed

Use data pool's 'df' for statfs instead of global stats, if there is only one data pool

Added by John Spray about 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Immediate
Category:
Administration/Usability
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
luminous
Reviewed:
Affected Versions:
Component(FS):
Client
Labels (FS):
Pull request ID:

Description

The client sends a MStatfs to the mon to get the info for a statfs system call. Currently the mon gives it the global usage information of the cluster.

If a filesystem has exactly one data pool, it should be straightforward to modify this to pass a pool ID and respond to statfs with pool-specific stats instead.

In the case of filesystems with multiple data pools, we need to fall back to the global stats. Doing a sum of the per-pool stats would probably not make sense because the pools could use overlapping sets of OSDs and we wouldn't want to double-report space.

This would require updates to the mon, fuse client, and kernel client.

Opened from: https://bugzilla.redhat.com/show_bug.cgi?id=1427512


Related issues 3 (0 open3 closed)

Related to Linux kernel client - Subtask #20669: add support for filtered statfs in kernel clientResolvedDouglas Fuller07/18/2017

Actions
Has duplicate CephFS - Bug #21734: mount client shows total capacity of cluster but not of a pool DuplicateJos Collin10/09/2017

Actions
Has duplicate CephFS - Bug #22091: statfs get wrong fs sizeDuplicate11/09/2017

Actions
Actions

Also available in: Atom PDF