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 FILEWith --import, the command reads a file saved with --export and does not need 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/drive1Get drive information with metrics.
mc admin drive info myminio --path http://10.10.10.2:9000/mnt/drive1 --metricsDisplay drive info from exported JSON file.
mc admin drive info --import drive-info.jsonBehavior
S3 compatibility
This command uses a MinIO AIStor administrative API and does not work against other S3-compatible services.