Troubleshooting AIStore
This document describes common AIStore (AIS) failure modes and actionable recovery steps. It is intended for operators and developers troubleshooting clusters that fail to start, fail to join, or exhibit integrity errors.
In most cases, the AIS CLI is the first and best tool to use.
Table of Contents
- First Checks: Cluster State via CLI
- Error Categories
- Cluster Integrity Errors (CIE)
- Storage Integrity Errors (SIE)
- SIE Error Reference
- Target Fails to Start: Lost or Mismatched Mountpath (SIE#50)
- Recovery: Offline VMD Edit (Recommended)
- References
Note: Some example paths in this document may reflect local dev deployments. In production, cluster-wide metadata is stored in the node’s config directory, while BMD and VMD - bucket and volume metadata, respectively - live at the root of each mountpath. See xmeta (tool) README for more details and examples.
First Checks: Cluster State via CLI
AIS provides extensive CLI tab-completion and discovery.
Start with:
or explore available subcommands interactively:
Example output:
At any time there is exactly one primary proxy. If needed, you can change it administratively:
Error Categories
AIS integrity errors fall into two distinct categories:
-
Cluster Integrity Errors (
cie#) Inconsistent or conflicting cluster-wide metadata (Smap, BMD, etc.) -
Storage Integrity Errors (
sie#) Inconsistent, missing, or invalid mountpath metadata on a target
Understanding which category you are dealing with is critical: CIE errors are cluster-scoped; SIE errors are target-scoped.
Cluster Integrity Errors (CIE)
Cluster Integrity Errors are raised when a node attempts to join or operate in a cluster with incompatible cluster-wide metadata.
Example:
These errors usually indicate that a node:
- belonged to a different AIS cluster in the past, or
- has stale local metadata that conflicts with the cluster majority.
Common Causes
- Reusing disks or nodes from a previous cluster
- Mixing nodes from different deployments
- Partial cleanup after redeployments
CIE Error Reference
Recovery (CIE)
Recovery often involves carefully cleaning obsolete metadata:
- local Smap copies
- local BMD copies
This must be done with extreme caution. Removing the wrong metadata can permanently orphan data.
CIE recovery is intentionally conservative and usually requires manual inspection and understanding of cluster history.
Storage Integrity Errors (SIE)
Storage Integrity Errors relate to mountpaths attached to a storage target. Each target maintains Volume Metadata (VMD) describing its mountpaths, their filesystems, and the target’s persistent Node ID.
Example:
Key Concepts
-
VMD is persisted and replicated across all mountpaths of a target
-
Each mountpath records:
- filesystem identity
- filesystem type
- target Node ID
-
VMD validation happens at target startup, before runtime checks (FSHC)
SIE Error Reference
Target Fails to Start: Lost or Mismatched Mountpath (SIE#50)
Symptoms
Target fails during startup with an error similar to:
This commonly occurs after:
- disk failure or replacement
- filesystem remounted on the wrong device
- OS block-device re-enumeration
- upgrade or restart while a disk is unavailable
In this state:
- the target cannot reach runtime
- filesystem health checks (FSHC) cannot run
- the target exits fatally to prevent data corruption
Recovery: Offline VMD Edit (Recommended)
This recovery method is safe, explicit, and reversible.
Workflow
- If applicable: put the AIS target in maintenance mode (or shutdown entire cluster)
- Identify a failed mountpath (e.g.,
/ais/nvme7n1) - Possibly, SSH into the target; use
xmetatool to disable the failed mountpath in a given selected VMD replica:
- Copy the updated VMD to all remaining mountpaths, e.g.:
-
Restart the target (/ cluster)
-
Verify:
or:
The target will now restart in a degraded but safe state, with /ais/nvme7n1 disabled.
Notes
- Backup First
Before troubleshooting that involves inspecting or modifying any on-disk metadata:
- Archive all AIS metadata periodically (and especially before any manual edits).
- AIS keeps multiple copies of critical metadata, but redundancy is not a substitute for backups.
- When in doubt: copy first, edit later.
Speaking of VMD, at minimum back up each mountpath’s metadata and keep the archive somewhere outside /this/ node.
Additionally:
- Keeping all VMD copies in sync is strongly recommended.
- Disabled mountpaths are not probed or used.
- The mountpath can be re-enabled later after disk replacement.
- Prefer explicit, minimal changes over broad metadata deletion.
- Avoid
ignore-missing-mountpathunless you fully understand the implications. xmetais a power tool: indispensable for recovery, dangerous if misused.
If unsure, stop to inspect existing metadata before proceeding, and maybe back it up as well.
References
- AIStore: Terminology
- On-disk layout
- xmeta - utility to inspect, extract, format, and (in limited cases) edit internal AIS metadata structures
- AIS buckets: on-disk layout