Closed kvaps closed 1 year ago
We have talked about this internally and I'm afraid we have to reject this PR simply because this seems to be completely out of LINSTOR's scope. It is fine that LINSTOR waits some time to give other software like UDEV / LVM time to create symlinks and the like, but we certainly do not want to interfere with those very same systems by also starting to create symlinks in their /dev/<wherever>
"namespace" possibly causing races with those systems. This is especially true since this issue apparently only occurs during resizing and not at ordinary volume creations.
Feel free to build yourself a LINSTOR version that includes this hack if it helps you. Another approach for a hack would be to write a wrapper script around lvresize
that rechecks the correct symlinks after the delegated call to the actual lvresize
but before it returns to LINSTOR.
Overview
Changes Made
Related Issue
fixes: https://github.com/LINBIT/linstor-server/issues/326