mc admin heal
The mc admin heal command scans for objects that are damaged or corrupted and heals those objects.
mc admin heal is resource intensive and typically not required as a manual process, even after drive failures or corruption events.
As a part of normal operations, AIStor:
- automatically heals objects damaged by silent bit rot corruption, drive failure, or other issues on each
POSTorGEToperation. - performs periodic background object healing using the scanner.
- aggressively heals objects after drive replacement.
Refer to Object Healing for more details on how AIStor heals objects.
Syntax
Parameters
TARGET
Required
The full path to the bucket or bucket prefix on which the command should perform object healing.
Specify the alias of a configured AIStor deployment as the prefix for the path.
For example:
mc admin heal myaistor/mybucket/myprefix
If the TARGET bucket or bucket prefix has an active healing scan, the command returns the status of that scan.
--all-drives
Alias: -a
Optional
Select all drives and show verbose information.
--force
Optional
Disables warning prompts.
--verbose
Alias: -v
Optional
Show detailed information including:
- Per-server and per-drive status with tolerance information.
- Drive offline trackers showing offline event history with timestamps, duration, reason, and decision for each event.
- Server failure tolerance summary per pool.
Behavior
Healing of multiple drives in an erasure set occurs only one drive at a time
If multiple drives within the same erasure set require healing, AIStor prioritizes the first drive that begins healing within the erasure set. Other drives in the erasure set wait until healing finishes on the first drive before the next drive starts healing.
This allows drives that begin healing to complete the process as quickly as possible.
Output
The default output displays two sections:
Healing Status
Shows drives that are actively healing or queued for healing, organized by pool. For each drive, the output shows:
- Hostname and drive path.
- State (
HEALINGorQUEUED). - Healing reason (for example,
FreshDisk). - Progress percentage (for actively healing drives).
- Set number.
- Time since healing started.
The default output shows up to 5 drives.
Use --verbose for the full list.
Summary
Shows aggregate healing statistics:
- Objects healed (count and size)
- Objects failed
- Heal rate (objects per second and throughput)
- Offline disk count (if any)
- Sets exceeding parity tolerance (if any)