piraeus icon indicating copy to clipboard operation
piraeus copied to clipboard

Unable to find way to reduce placement count

Open fe-ax opened this issue 2 years ago • 2 comments

I've been trying to find a way to reduce the the placementCounts of a volume.

What I've done:

  • Create storageClass "lvm-thin" with setting autoPlace: 3
  • Replace storageClass "lvm-thin" with setting autoPlace: 2
  • Tried updating the resource-definition to autoplace 2 (linstor resource-definition ap pvc-xxx --place-count 2)
    • Gave error: The resource would have to be deleted from nodes to reach the placement count.
  • Tried changing one of the disks using: https://github.com/LINBIT/linbit-documentation/blob/master/UG9/en/linstor-administration.adoc#adding-and-removing-disks
    • Resulted in error: context deadline exceeded Couldn't connect to ETC, however all other commands seem to work fine

Can someone point me to the right documentation for reducing the placement count?

fe-ax avatar May 03 '22 11:05 fe-ax

The only way I currently know about is manually deleting resources, because LISNTOR is too scared to automatically do it. I think that this is something that will be looked at and changed in future LINSTOR versions, but to my knowledge there is currenty no other way.

Once all resources of a resource group have had their replicas reduced, you can update the resource group itself and it will work.

WanzenBug avatar May 03 '22 14:05 WanzenBug

Thanks WanzenBug, I really thought I was taking it on the wrong way by actually deleting resources. Your quick response is highly appreciated :)

I do think being careful about deletion is great, but having the ability to do this automatically for multiple resources should be possible using a clear force override.

Can I suggest rephrasing the error to read more actionable? Like: “Please reduce placement count of resources by deleting resources from nodes manually using command before reducing the autoPlace property.”

fe-ax avatar May 03 '22 21:05 fe-ax