piraeus
piraeus copied to clipboard
Unable to find way to reduce placement count
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?
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.
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.”