xichen01 opened a new pull request, #10058:
URL: https://github.com/apache/ozone/pull/10058
## What changes were proposed in this pull request?
`ozone admin datanode list` can dispaly "Total volume count" and "Healthy
volume count", Datanode JMX can display the NumFailedVolumes
### Add:
- The command display which disk was failure.
- SCM's Prometheus metrics for failed disk.
- Add `ozone admin datanode list --failed-volumes ` to disply failed disk
Datanode only
### Example
```
$ ozone admin datanode list
Datanode: d81a7da8-86d4-42ca-83e9-7015401ed11c (/default/1.2.3.01/host0/0
pipelines)
Operational State: IN_SERVICE
Health State: STALE
Total volume count: 4
Healthy volume count: 3
Failed volumes: <--- Newly added
/data/disk2
//...
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14990
## How was this patch tested?
new test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]