mc admin drive top
The mc admin drive top command lists the drives of a deployment.
Syntax
The command has the following syntax:
mc admin drive top [FLAGS] TARGETFlags
| Flag | Description |
|---|---|
--error | Only show items that are in an error state. |
--import value | Import command as JSON. |
--export | Export command as JSON. |
--filter value | Filter commands based on available filters. |
--start value | Starting index for listing (default: 0). |
--count value | Limit the number of returned results (default: 0). |
--sort value | Allows for sorting on field names. Only fields of type (int, string and float) can be sorted. |
--sort-reversed | Reverses the sort order. |
--metrics | Include drive metrics (errors, IOPS, throughput) in the output. |
Global flags
This command supports any of the global flags.
Examples
Get a list of all drives.
mc admin drive top myaistorGet a list of drives in one pool.
mc admin drive top myaistor --filter "PoolIndex = 1"Get a list of drives in one pool, sorted by healing state.
mc admin drive top myaistor --filter "PoolIndex = 1" --sort healingExport drives data to JSON file.
mc admin drive top myaistor --exportBehavior
S3 compatibility
This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.