Reproducing the Multpath I/O Issue With Ubuntu 22.04

Problem Statement

In the previous two articles, I described the issue I was running into when installing Ubuntu 22.04 on a Dell VRTX server.  After some research, I suspect it's related to the incorrect configuration of the multipath I/O function.

How to fixed it?

Reproducing the Issue with VMware

To reproduce and fix the multipath issue, I decided to set up a testing environment with a VM running inside VMware ESXi.  If we can create a VM with two virtual SCSI HBA cards, and connect the same virtual hard drive file to them.  The Linux VM should be able to see the same hard drive twice via two SCSI paths.

Multipath I/O Config In VMware ESXi

First Try

With VMware ESXi, when adding a SCSI card to a VM, there is one option to configure if the SCSI bus is sharing.  The default configuration is None.  In order to share the same virtual hard drive to the VM twice via those two SCSI cards, I set them to "Physical".  Ideally, setting to "Virtual" should also work.

When adding the virtual hard drive to the VM, there is an option "Sharing".  To share the hard drive through multiple SCSI cards, I set it to "Multi-writer sharing".

The second hard drive was added with the same .vmdk file and the same settings for "Sharing".

After the VM was created, I started to install Ubuntu 22.04 into that VM.  Surprisingly, the issue did not happen.  Ubuntu actually supports multipath I/O!!!  So multipath I/O itself does not seem to be the root cause of the problem.

If running the multipath command, it actually correctly detected the multipath capability for the hard drives.

# multipath -l 

mpatha (360000c29a131cd4fcc993dffd7b994035) dm-0 VMware, Virtual disk

size=32G feature'0' hwhandler='0' wp=rw

|-+- policy='service-time 0' prio=0 status=active

| `- 33:0:0:0 sda 8:0 active under running

`-+- policy='service-time 0' prio=0 status=enabled

  `-34:0:0:0 sdb 8:32 active undef running

Why did it happen to me earlier then?

Second Try

How come my VM setup is not able to reproduce the issue?  With that questions in mind, I started to think what's the difference between my VM and the Dell VRTX server?

Hey, the VRTX server has two hard drives detected by Ubuntu 22.04's installation program.  One is the logical drive, and the other is the IDSDM Storage Device.  When installing Ubuntu 22.04, I installed the /boot and /boot/efi into the IDSDM Storage Device.  While the rest of the OS is installed into the logical drive.

But with the VM I set up, everything is installed on one single hard drive.

How about adding a 3rd hard drive to the VM, then installing /boot and /boot/efi to the 3rd drive?

After the VM is created, I started to install Ubuntu to the VM again.  As usual, the installation was completed successfully.  After a reboot, the issue indeed happened!  The system dropped into the (initramfs) prompt again.


Comments

Popular posts from this blog

Secure Home Network with OPNsense

Dropping Into "initramfs" Prompt After Installing Ubuntu 22.04 LTS on to Dell VRTX Server

Ubuntu 22.04 Multipath I/O Problem with Dell VRTX