I just installed a new Ubuntu 20.04 server as a virtual machine on an esx-Server.
When I look into systemlog
I see lots of multipath entries.
multipathd[651]: sda: add missing path
multipathd[651]: sda: failed to get udev uid: Invalid argument
multipathd[651]: sda: failed to get sysfs uid: Invalid argument
multipathd[651]: sda: failed to get sgio uid: No such file or directory
multipathd[651]: sda: add missing path
multipathd[651]: sda: failed to get udev uid: Invalid argument
multipathd[651]: sda: failed to get sysfs uid: Invalid argument
multipathd[651]: sda: failed to get sgio uid: No such file or directory
I think multipath is just not configured and my question is if I can disable multipath. Since I checked this on several Ubuntu 20.04 servers multipath is enabled by default.
Does it make sense to activate multipath?
There is a SUSE linux KB on the topic - https://www.suse.com/support/kb/doc/?id=000016951. The problem is that VMWare by default doesn't provide information needed by udev to generate /dev/disk/by-id entries. Apart from ESX, VMWare Workstation (my case) is also affected. The resolution is to put
to the virtual machine definition, i.e. into the *.vmx file or via Edit Settings -> Options tab -> General -> Configuration Parameters in ESX UI.
After rebooting VM with this parameter set, the disk are visible in
/dev/disk/by-id
and multipathd doesn't complain anymore.Through this, I have resolved my issue:
Run
vi /etc/multipath.conf
and add this to the file:Restart the
multipath-tools
service:If you dont have access to your host ESX you can add the following lines to your
/etc/multipath.conf
file which also blacklists common other devices like CDRom drives etc.Adding the below into the guest vm parameters worked for me. The syslog is no longer complaining and the server appears to be staying up.
This is added to the virtual machine definition, i.e. into the
*.vmx
file, or via Edit Settings -> Options tab -> General -> Configuration Parameters in ESX UI.Ubuntu 20.04 running apache and Wordpress php-7.4-fpm
I'd use a:
for
sda
,sdb
, etc.Here is another way to set it.
Use govc
Setup
GOVC_URL
first likeand set UUID like
One more thing, you have to poweroff and poweron to take effect this change
If you don't need multipath, turn it off: