mc admin drive info

The mc admin drive info command returns information about one drive, identified by its network path.

Syntax

The command has the following syntax:

mc admin drive info [FLAGS] TARGET
mc admin drive info --import FILE

With --import, the command reads a file saved with --export and does not need TARGET.

Flags

FlagDescription
--exportExport command as JSON.
--import valueImport command as JSON.
--path valueThe network path to the drive being requested.
--metricsInclude drive metrics in the output.

Global flags

This command supports any of the global flags.

Examples

Get basic information about a drive.

mc admin drive info myminio --path http://10.10.10.2:9000/mnt/drive1

Get drive information with metrics.

mc admin drive info myminio --path http://10.10.10.2:9000/mnt/drive1 --metrics

Display drive info from exported JSON file.

mc admin drive info --import drive-info.json

Behavior

S3 compatibility

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

On this page