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] TARGET

Flags

FlagDescription
--errorOnly show items that are in an error state.
--import valueImport command as JSON.
--exportExport command as JSON.
--filter valueFilter commands based on available filters.
--start valueStarting index for listing (default: 0).
--count valueLimit the number of returned results (default: 0).
--sort valueAllows for sorting on field names. Only fields of type (int, string and float) can be sorted.
--sort-reversedReverses the sort order.
--metricsInclude 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 myaistor

Get 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 healing

Export drives data to JSON file.

mc admin drive top myaistor --export

Behavior

S3 compatibility

This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.

On this page