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

Flags

Flag Description
--export Export command as JSON.
--import value Import command as JSON.
--path value The network path to the drive being requested.
--metrics Include 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.