Skip to content

Support snapshot auto-rebuilding #1895

@everythings-gonna-be-alright

Description

Is your feature request related to a problem? Please describe.
When some of the pools suddenly change status to offline, Mayastor loses the ability to create new disks from existing snapshots if part of those snapshots are stored on an offline pool. Even if a snapshot has a replication factor of 2, and an online replica of that snapshot is available on another online pool.

Describe the solution you'd like

  • Add logic to automatically rebuild a snapshot on another available pool if the original pool changes its status to offline, and if we have other available online pools with enough free disk space
  • Allow to create disks from only one available snapshot replica

Additional context
The original disk was deleted. In this case, we have only a snapshot.

~ λ kubectl mayastor get volume-snapshots|grep -e 'ID' -e 'c14c8b3a-a966-4924-aa07-ed9835ff8307'
 ID                                    TIMESTAMP             SOURCE-SIZE  ALLOCATED-SIZE  TOTAL-ALLOCATED-SIZE  SOURCE-VOL                            RESTORES  SNAPSHOT_REPLICAS
 c14c8b3a-a966-4924-aa07-ed9835ff8307  2025-08-08T21:35:37Z  50 GiB       50 GiB          50 GiB                dea0d146-cddf-4569-a9fa-6adbe2f7e40b  5         2

~ λ kubectl mayastor get volumes|grep 'dea0d146-cddf-4569-a9fa-6adbe2f7e40b'
~ λ

This will be useful in cases where a user has a golden image (snapshot) and wants to create new disks from that existing golden image (snapshot).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions