mc table replicate catalog reset

The mc table replicate catalog reset command resets the replica catalog so the catalog scanner rebuilds it from scratch.

The command backs up the replica’s table catalog and then deletes it, so the catalog scanner rebuilds it from the underlying table data on the next scan cycle. Use this when the catalog is corrupted or out of sync and needs to be regenerated.

A timestamped backup of the old catalog is created automatically. Restoring from the backup requires manual intervention.

The command returns immediately. The backup, delete, and rebuild happen asynchronously during the next catalog scanner cycle.

This command deletes the replica catalog and rebuilds it from scratch. A backup is created, but restoring it requires manual intervention. The command prompts for confirmation before proceeding. Pass --yes to skip the prompt in automation.

Parameters

ALIAS

Required

The alias of the replica MinIO AIStor cluster.

--yes

Alias: -y

Optional

Skip the confirmation prompt. Use this flag to run the command without interactive confirmation, for example in automation.

Global flags

This command supports any of the global flags.

Examples

Reset the replica catalog

mc table replicate catalog reset myreplica

Reset without the confirmation prompt

mc table replicate catalog reset --yes myreplica