hey - we have longhorn 1.7.2 and have some over co...
# longhorn-storage
b
hey - we have longhorn 1.7.2 and have some over committed disks on our hosts. Replica auto balance is set to best-effort both globally and specifically on a certain PVC, and replica auto balance disk pressure threshold is set 90%. We would expect the replica to be rebuilt on another disk on the node with sufficient space, of which there are plenty, but nothing is happening. Can't see anything in the longhorn-manager logs for the PVC and the events list for the PVC in the longhorn UI is empty. Are we missing something that we need to get longhorn to rebuild the replica on a disk in the same node with sufficient storage?
digging further into https://github.com/longhorn/longhorn-manager/blob/481a52bbc6dbe73763dd72b1e9834fc5b38de4af/scheduler/replica_scheduler.go#L850 The function calculates pressure as
storageUnused := info.StorageAvailable - info.StorageReserved
So whilst the disk is over committed, as the volumes are thin provisioned and all storage is not being used the disk is not under pressure. Working as intended!