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)
After
rd cloneor 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-infofor optimal placement and runningmigrate-diskfor 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:
rd clone/ snapshot restore completes, compare actual placement withquery-size-inforesultmigrate-diskAutoRebalanceAfterClone)