multipathd errors in /var/log/syslog

· 2 min read
multipathd errors in /var/log/syslog

On my linux Virtual Machines when I get into log checking i’ve been annoyed by few lines that seemed to be the same issue on every Virtual Machine hosted on my VMWare infrastructure. As you can see this multipathd log is written every 5 seconds, 4 lines in /var/log/syslog.

Aug  2 07:24:13 vm02 multipathd[705]: sda: add missing path
Aug  2 07:24:13 vm02 multipathd[705]: sda: failed to get udev uid: Invalid argument
Aug  2 07:24:13 vm02 multipathd[705]: sda: failed to get sysfs uid: Invalid argument
Aug  2 07:24:13 vm02 multipathd[705]: sda: failed to get sgio uid: No such file or directory
Aug  2 07:24:18 vm02 multipathd[705]: sda: add missing path
Aug  2 07:24:18 vm02 multipathd[705]: sda: failed to get udev uid: Invalid argument
Aug  2 07:24:18 vm02 multipathd[705]: sda: failed to get sysfs uid: Invalid argument
Aug  2 07:24:18 vm02 multipathd[705]: sda: failed to get sgio uid: No such file or directory

To get rid of these line, we need to stop the Virtual Machine and go into its settings

In the Virtual Machine settings, select the VM Options tab on the top and in Advanced click on EDIT CONFIGURATION

Click on ADD CONFIGURATION PARAMS

and add this line :

disk.EnableUUID avec la valeur TRUE

Click on OK two time to validate this change and power on the Virtual Machine to check the logs

 

What is this option ?

The parameter disk.EnableUUID is necessary so that the VMDK always presents a consistent UUID to the VM, thus allowing the disk to be mounted properly. 

Why it’s not enabled by default ?

I don’t know 😉