2014-07-18 17:13:09 |
David Moreau Simard |
description |
It is currently possible to have swift-recon report on disk usage by two means:
swift-recon -d OR
swift-recon --all (which includes -d)
Disk usage provides two options:
--human-readable to provide usage in GB rather than bytes
--top <integer> to list devices with the most usage
These options are currently usable when using -d but not --all.
This is because the options are not passed to disk_usage when using all:
https://github.com/openstack/swift/blob/d317888a7eae276ae9dddf26a9030d01f6ba00fe/swift/cli/recon.py#L930
Versus when using -d:
https://github.com/openstack/swift/blob/d317888a7eae276ae9dddf26a9030d01f6ba00fe/swift/cli/recon.py#L965 |
It is currently possible to have swift-recon report on disk usage by two means:
swift-recon -d OR
swift-recon --all (which includes -d)
Disk usage provides two options:
--human-readable to provide usage in MB/GB/TB++ rather than bytes
--top <integer> to list devices with the most usage
These options are currently usable when using -d but not --all.
This is because the options are not passed to disk_usage when using all:
https://github.com/openstack/swift/blob/d317888a7eae276ae9dddf26a9030d01f6ba00fe/swift/cli/recon.py#L930
Versus when using -d:
https://github.com/openstack/swift/blob/d317888a7eae276ae9dddf26a9030d01f6ba00fe/swift/cli/recon.py#L965 |
|