mc admin ilm-scanner stop

Command to stop or abort the lifecycle scanner for a specific bucket or for all running scans.

Syntax

mc admin ilm-scanner stop TARGET [BUCKET]
NOTE
If no scan is running for the target bucket, the command returns an error. Aborted scans log the partial deletion stats (objects deleted, size reclaimed) before stopping.

Parameters

Parameter Description
TARGET The alias of a configured HPE Data Fabric Object Store . This parameter is mandatory.
BUCKET The bucket to be scanned. This is an optional parameter. When no bucket is specified, the command stops all running scans.

Examples

  1. Stop the ilm scanner for the bucket mybucket located in the object store having the alias myminio.
    CLI
    $ mc admin ilm-scanner stop myminio/mybucket
    lifecycle scanner stop for mybucket is requested
  2. Stop all running scans for the object store having the alias myminio.
    CLI

    Text output

    $ mc admin ilm-scanner stop myminio
    lifecycle scanner stop for all buckets is requested

    JSON output

    $ mc admin ilm-scanner stop --json myminio/mybucket
    {
      "status": "success",
      "bucket": "mybucket"
    }
  3. Error output when no scan is running.
    CLI
    $ mc admin ilm-scanner stop myminio/mybucket
    mc: Unable to stop lifecycle scanner: no lifecycle instance running.