mc support top locks

SUBNET Registration Required

The mc support commands are designed for MinIO deployments registered with MinIO SUBNET to ensure optimal outcome of diagnostics and performance testing. Deployments not registered with SUBNET cannot use the mc support commands.


The mc support top locks command lists the ten oldest locks on a MinIO deployment.

The command outputs the age of the lock, type of lock, owner, and resource. The output resembles the following:

Since                 Type    Owner                 Resource
13 hours ago          WRITE     .minio.sys/leader.lock
13 hours ago          WRITE     .minio.sys/callhome/runCallhome.lock
13 hours ago          WRITE     .minio.sys/new-drive-healing/0/0

The following command displays the current in-progress S3 API calls on the alias myminio.

mc support top locks myminio/

The command has the following syntax:

mc [GLOBALFLAGS] support top locks  \
                 [--stale]          \
  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.



The full path to the alias or prefix where the command should run.


Return only stale locks.

Global Flags

This command supports any of the global flags.


Display the 10 Oldest Locks on the myminio Deployment

mc support top locks myminio/

Display Stale Locks on the myminio Deployment

The following command displays all in-progress s3.PutObject calls for the myminio deployment:

mc support top locks --stale myminio/