Informix Error -21537: Defragment: This command cannot be run while a defragmentation is in progress.
Cause and resolution
Defragment: This command cannot be run while a defragmentation is in progress.
ACTION Rerun the command after defragmentation is complete.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-21537 fires when a command is run against a partition/dbspace while a defragmentation task is already in progress on it — per the official guidance.
- A defragmentation task already in progress, per the official guidance — the direct, only cause; certain commands conflict with an active defragment.
Solutions / Resolution
- Rerun the command after defragmentation completes, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a conflicting command run mid- defragment.
Diagnostic Checks
- Check whether a defragmentation task is currently running, and wait for it to finish before rerunning the command.
Related Errors / Related Topics
- -21533 — "Defragment: A defragmentation task is already in progress on this dbspace." The direct concurrency restriction this error's blocked command runs into.
A command couldn't run because a defragmentation task was in progress — rerun it once defragmentation completes.