Transitions and states during actions on volumes
- Create a volume:
creatingācreated - Restore a volume from a snapshot:
creatingārestoringācreated - Fork a volume to another host/region:
creatingāenabling_remote_exportāhydratingācreated - Extend a volume:
creatingāextendingācreated - Destroy a volume:
creatingāscheduling_destroyāpending_destroy - Migrate a volume to a new host (performed by Fly.io): source volume
createdāpending_destroy; destination volume [Fork a volume transitions]
Volumes are soft deleted before being destroyed
We always soft delete volumes before destroying them permanently, so that we can recover them if needed. Soft-deleted volumes are in thepending_destroy state.
When you destroy a volume (whether by flyctl commands or the Machines API), the volume stays in the pending_destroy state for 24 hours before being permanently deleted.
When we destroy a volume during migration to a new host, the volume stays in the pending_destroy state for 1 week before being permanently deleted.