@alazare619 Hello again.
The device names are generated by CenOS 7’s udev rules and Rockstor then matches the temp lsblk names to the boot safe by-id names in /dev/disk/by-id by working backwards from the sda type names on each scan; but tracks each device by serial in the db. You would also have to enhance your udev work around (which I think is the wrong way to go, but I get what you are saying, it’s just a risky route) to also correctly generate unique by-id names. In other words your are going to have to also edit the existing default udev rules for block devices to work as they should given your serial attribution hack backed up by temp names (although yes you say they are stabel). This will be completely dependant on those sda type names you are generating the serials from being static. If they move it will mess everything up. Also you will have to follow the expected format for these names, hence modifying the existing ones. It really would be better to sort this at the proper level that has failed and as such I can’t really help more in this direction.
As for Rockstor’s Device management please see:
My final though it that you are doing it wrong and will end up shooting yourself in the foot and taking far too much time to get what is essentially a poor mock up that won’t tell you how Rockstor works as you are undermining the assumption of hardware that udev makes, let along Rockstor. Yet a single config for each drive would sort this at the hyper visor level.
However your rules are cute and if those names never move (which they almost always do) then you have supposedly unique serials, you just also then need unique names generated in /dev/disk/by-id based on those serials hence the route to alter the default udev rules.
Hope that helps and that you see that I see you are bending over backwards to hack around a misconfigured hyper-v. Or is it that this is something that just isn’t possible with hyper-v?
Maybe someone who is more familiar with hyper-v can step in and help on the hdd serial pass through / attribution bit as then you are sorted. Also my decades of battling with MS OS approximations are over and will remain that way.
Good luck.