Device Symlinks of USB HDDs changing on reboot

vlaves

Renowned Member
Oct 28, 2017
6
0
66
46
Hi together,

I have a USB 3.1 4-bay HDD Case attached to my NAS where I am running openmediavault 6.x on. It is a fresh install on the internal NVME and everything is updated.

But I have a problem, that the Device Symlinks of my 4-bay USB HDDs don't stay consistent on reboots or on reconnecting the USB case. I have attached two screenshots showing the change. Is there a place in linux where I can set these drives to always mount with the same device symlink by specifying maybe the usb-port or serial number of the HDDs or something which is unique. I read already on that it maight be something I can adjust in the udev script, but of course I am not sure.

tried to passthrough HDDs by-id to VM, but on reboot the VM could not start up, cause the ID changed.

Thanks for the support in advance.
 

Attachments

  • Bildschirmfoto 2022-04-18 um 09.23.03.png
    Bildschirmfoto 2022-04-18 um 09.23.03.png
    781.5 KB · Views: 10
  • Bildschirmfoto 2022-04-18 um 09.23.52.png
    Bildschirmfoto 2022-04-18 um 09.23.52.png
    744.5 KB · Views: 10
Please provide the VM config.
The disk names found in /dev/disk/by-id should be stable.