We are seeing disk swapping when adding disks in Rocky. We have not faced this issue in Centos. We have provisioned lot of VMs out of ISO Rocky and made a template out of it. Whenever we add a new additional disk from vcenter to the VM out of template, swap is happening and sometimes not. Swap also happens when the servers are rebooted. How to avoid disk swapping which impacts application.
Not possible, you must be using references to sda or sdb somewhere if something is not mounting, or eg if swap is not available because of it. UUID’s do not cause problems, I have taken a disk out of one laptop and placed it in another and the disks sda/sdb changed places and the system still booted because it wasn’t using references to sda or sdb to mount something.
The problem you are experiencing can only happen when using /dev/sda or /dev/sdb or whatever.
If the systems mount everything successfully, and the disk changes position and you are seeing this, at this point it’s purely cosmetic since everything mounted. You won’t be able to do anything about that you will not be able to control what is sda and what is sdb. Better concentrate on mounting partitions.
Post your /etc/fstab so we can see the full content, and also post the content of /boot/grub2/grub.cfg since either of these are most likely referencing sda or sdb or whatever. Also post the content of /etc/default/grub.