Public bug reported:

The guest OS Ubuntu 25.04 is failed to recognize the new disk hot-added
to the existing lsilogicsas controller.

Ubuntu 25.04 kernel version: 6.14.0-15-generic


Steps to reproduce:
----------------------

1) Install an Ubuntu 25.04 VM on an ESXi server.

2) Hot-add an lsilogicsas controller and an lsilogicsas disk.


Developer's analysis:
-----------------------
I played with the ESXi and VM(ubuntu 25.04) and found the pattern, for a 
specific disk:
The first hot add succeeded, and hot remove also would succeed. Then the second 
hot add will fail, if we hot remove that disk and hot add it again, it will 
succeed. This will be a cycle.

Ubuntu linux kernel log:
[64066.756074] mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 0, phy 
0, sas_addr 0x5000c2983be241c6
[64066.766148] scsi 33:0:3:0: Direct-Access     VMware   Virtual disk     2.0  
PQ: 0 ANSI: 6
[64066.774257] sd 33:0:3:0: Attached scsi generic sg1 type 0
[64066.774819] sd 33:0:3:0: [sdb] 2097152 512-byte logical blocks: (1.07 
GB/1.00 GiB)
[64066.775144] sd 33:0:3:0: [sdb] Write Protect is off
[64066.775148] sd 33:0:3:0: [sdb] Mode Sense: 3b 00 00 00
[64066.775724] sd 33:0:3:0: [sdb] Write cache: disabled, read cache: disabled, 
doesn't support DPO or FUA
[64066.789488] sd 33:0:3:0: [sdb] Attached SCSI disk   <------- Successful add
[64087.940119]  end_device-33:3: mptsas: ioc0: removing ssp device: fw_channel 
0, fw_id 0, phy 0,sas_addr 0x5000c2983be241c6
[64087.940128]  phy-33:0: mptsas: ioc0: delete phy 0, phy-obj 
(0x00000000caa762dc)
[64087.940139]  port-33:3: mptsas: ioc0: delete port 3, sas_addr 
(0x5000c2983be241c6)
[64087.952180] scsi target33:0:3: mptsas: ioc0: delete device: fw_channel 0, 
fw_id 0, phy 0, sas_addr 0x5000c2983be241c6  <----- Successful remove

[64115.911028] workqueue: mptsas_firmware_event_work [mptsas] hogged CPU
for >13333us 7 times, consider switching to WQ_UNBOUND <----- Warning
along with hot add failure

Looks like the hot add/remove event was not handled in time in Linux
kernel.

On the same host, I also installed Debian 12 with 6.1.129 kernel and HWv
9.0, disk hot add/remove on LSI controller works fine. It's an upstream
linux kernel issue.

** Affects: kernel-package (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: ndctl (Ubuntu) => kernel-package (Ubuntu)

** Description changed:

  The guest OS Ubuntu 25.04 is failed to recognize the new disk hot-added
  to the existing lsilogicsas controller.
  
  Ubuntu 25.04 kernel version: 6.14.0-15-generic
  
  
  Steps to reproduce:
  ----------------------
  
  1) Install an Ubuntu 25.04 VM on an ESXi server.
  
  2) Hot-add an lsilogicsas controller and an lsilogicsas disk.
+ 
  
  
  Developer's analysis:
  -----------------------
  I played with the ESXi and VM(ubuntu 25.04) and found the pattern, for a 
specific disk:
  The first hot add succeeded, and hot remove also would succeed. Then the 
second hot add will fail, if we hot remove that disk and hot add it again, it 
will succeed. This will be a cycle.
  
  Ubuntu linux kernel log:
  [64066.756074] mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 0, phy 
0, sas_addr 0x5000c2983be241c6
  [64066.766148] scsi 33:0:3:0: Direct-Access     VMware   Virtual disk     2.0 
 PQ: 0 ANSI: 6
  [64066.774257] sd 33:0:3:0: Attached scsi generic sg1 type 0
  [64066.774819] sd 33:0:3:0: [sdb] 2097152 512-byte logical blocks: (1.07 
GB/1.00 GiB)
  [64066.775144] sd 33:0:3:0: [sdb] Write Protect is off
  [64066.775148] sd 33:0:3:0: [sdb] Mode Sense: 3b 00 00 00
  [64066.775724] sd 33:0:3:0: [sdb] Write cache: disabled, read cache: 
disabled, doesn't support DPO or FUA
  [64066.789488] sd 33:0:3:0: [sdb] Attached SCSI disk   <------- Successful add
  [64087.940119]  end_device-33:3: mptsas: ioc0: removing ssp device: 
fw_channel 0, fw_id 0, phy 0,sas_addr 0x5000c2983be241c6
  [64087.940128]  phy-33:0: mptsas: ioc0: delete phy 0, phy-obj 
(0x00000000caa762dc)
  [64087.940139]  port-33:3: mptsas: ioc0: delete port 3, sas_addr 
(0x5000c2983be241c6)
  [64087.952180] scsi target33:0:3: mptsas: ioc0: delete device: fw_channel 0, 
fw_id 0, phy 0, sas_addr 0x5000c2983be241c6  <----- Successful remove
  
  [64115.911028] workqueue: mptsas_firmware_event_work [mptsas] hogged CPU
  for >13333us 7 times, consider switching to WQ_UNBOUND <----- Warning
  along with hot add failure
  
  Looks like the hot add/remove event was not handled in time in Linux
  kernel.
  
  On the same host, I also installed Debian 12 with 6.1.129 kernel and HWv
  9.0, disk hot add/remove on LSI controller works fine. It's an upstream
  linux kernel issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2109465

Title:
  The guest OS Ubuntu 25.04 is failed to recognize the new disk hot-
  added to the existing lsilogicsas controller.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kernel-package/+bug/2109465/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to