I noticed on my ESXi Ubuntu VM’s that syslog is filling up with messages from multipathd…
multipathd[728]: sda: add missing path
multipathd[728]: sda: failed to get udev uid: Invalid argument
multipathd[728]: sda: failed to get sysfs uid: Invalid argument
multipathd[728]: sda: failed to get sgio uid: No such file or directory
This is happening every five seconds, and it’s not only annoying, I wondered what is wrong.
$ sudo fdisk -l
<…snip…>
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Disk model: Virtual disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2594FF21-D82C-4B56-8CD6-9E352E48770A
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 2101247 2097152 1G Linux filesystem
/dev/sda3 2101248 104855551 102754304 49G Linux filesystem
<…snip…>
I followed the steps in this article that resolved it for me. https://www.suse.com/support/kb/doc/?id=000016951
From that page, here are the instructions I followed:
Situation
There is no link in /dev/disk/by-id for SCSI (sdx) devices. The OS is running as a guest on VMWare ESX
Resolution
By default VMWare doesn’t provide information needed by udev to generate /dev/disk/by-id. This can be done by setting the following:
- Start the vSphere Client, and log in to a vCenter Server.
- Select Virtual Machines and Templates and click the Virtual Machines tab.
- Right-click the virtual machine for which you are enabling the disk UUID attribute, and select Power > Power Off.
- The virtual machine powers off.
- Right-click the virtual machine, and click Edit Settings.
- Click the Options tab, and select the General entry in the settings column.
- Click Configuration Parameters. The Configuration Parameters window appears.
- Click Add Row.
- In the Name column, enter disk.EnableUUID.
- In the Value column, enter TRUE.
- Click OK and click Save.
- Power on the virtual machine.
Note : Don’t try adding the disk.EnabledUUID on a running machine and reboot the VM afterwards. I tried this and that certainly does not work at all.