Skip to content

Add automatic rebalancing after resource clone and snapshot restore #487

@kvaps

Description

@kvaps

After rd clone or snapshot restore, replicas inherit the source volume's placement. When many volumes are cloned from the same source (e.g., golden image cloning for VMs), all replicas concentrate on the source nodes, creating storage hotspots.

LINSTOR could automatically rebalance newly created resources by checking query-size-info for optimal placement and running migrate-disk for misplaced replicas.

Currently we work around this in the CSI driver (see piraeusdatastore/linstor-csi#419), but a native LINSTOR solution would be more general and could benefit all LINSTOR users, not just CSI.

Possible approach:

  • After rd clone / snapshot restore completes, compare actual placement with query-size-info result
  • For each misplaced replica, create a diskless on the target node and run migrate-disk
  • This could be an opt-in resource group property (e.g., AutoRebalanceAfterClone)

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