如何读取 StorageGRID EC 重新平衡输出
适用场景
- StorageGRID 11.5 及更高版本
- 正在执行 EC 重新平衡作业的 StorageGRID 系统
- 如果尚未启动 EC 重新平衡作业,请参见文档— 重新平衡经过纠删编码的数据的注意事项
问题描述
在进行 EC 站点重新平衡时,我们可以使用检查状态 rebalance-data status --job-id <jobID>
root@DC1-ADM1:~ # rebalance-data status --job-id 6620268690317065374
==============================================================================
Job ID : 6620268690317065374
Site : Data Center 1
State : Failure
Total Moves : 32
Completed Moves : 0
Deferred Moves : 32
Failures (retryable) : 0
Failures (non-retryable) : 0
Start Time : 2021-08-30 21:25:41 UTC
Retry Rebalance : Yes
==============================================================================
我们可以使用 help 命令获取状态的基本问题描述: root@DC1-ADM1:~ # rebalance-data --help
Output for 'status' command:
Job ID : Identifier of the EC site rebalance job
Description : The parameters of the EC site rebalance job
State : The current state of the EC site rebalance job [Success|Failed|In Progress|Aborting]
Total Moves : Total number of internal moves required for this EC site rebalance job
Completed Moves : Number of moves completed
Aborted Moves : Number of moves aborted (if the abort operation was started)
Deferred Moves : Number of moves deferred for later
Failures (retryable) : Number of moves failed with retryable errors
Failures (non-retryable) : Number of moves failed with non-retryable errors
Start Time : The UTC time of EC site rebalance job start
End Time : The UTC time of EC site rebalance job completion
Retry Rebalance : Whether the EC site rebalance job needs to be retried