Ubuntu 7.10 Alpha Gust OS does not recognize a lun with non zero target id on Vmware ESX Server

Bug #140761 reported by Dahong Li on 2007-09-18
6
Affects Status Importance Assigned to Milestone
linux-source-2.6.22 (Ubuntu)
Medium
Unassigned

Bug Description

On Vmware ESX server, Ubuntu 7.10 Alpha/test2 is installed on a VM. Two disks scsi0:0 and scsi0:1 are configured to LsiLogic adapter on the VM before the VM is powered up. After the VM is powered up, only scsi0:0 is recognized as host2:Channel0:Id0:Lun0. Ubuntu 7.10 Guest OS (GOS) does not recognize a disk with non-zero target id. This problem exists in Alpha5 also. This is a regression from Ubuntu 7.04.

When run "echo "0 1 0" > /sys/class/scsi_host_host2/scan", it fails with EINVAL. It looks like the shost->max_id is one when scsi_scan_host_selected is called.

CVE References

Brian Murray (brian-murray) wrote :

Which specific version of the kernel do you have installed?

Dahong Li (dli) wrote :

For Ubuntu 7.10 Alpha5, the kernel version is 2.6.22-10-generic.

Soren Hansen (soren) wrote :

This problem persists in Gutsy beta.

Changed in linux-source-2.6.22:
status: Incomplete → Confirmed
Dahong Li (dli) wrote :

I went through the kernel code path about how the shost->max_id is set. Function mptspi_probe sets it to ioc->devices_per_bus. The ioc->devices_per_bus comes from the pfacts->MaxDevices in GetPortFacts(). And GetPortFacts() uses MPI_FUNCTION_PORT_FACTS as the function to get the pfacts->MaxDevices. The ESX Lsilogic emulation sets MaxDevices to 16 for MPI_FUNCTION_PORT_FACTS. So it should be 16.

I have tried the kernel source 2.6.22.6 downloaded from kernel.org. It does not have this problem.

Soren Hansen (soren) wrote :

Dahong Li:
Could I pursuade you to:
a) share your .config for 2.6.22.6?
and
b) try with 2.6.22.9?

I've just tried with 2.6.22.9 with the config from Ubuntu's -generic kernel and I get the same problem.

Thanks in advance!

Soren Hansen (soren) wrote :

I've tracked this down.

It seems to be a bug in VMWare's LSILogic emulation. It wrongfully says MaxDevices is 0.

To fix it, apply the patch from http://lkml.org/lkml/2007/3/23/345 and remove the mpt_channel_mapping stuff from /etc/modprobe.d/options. 112860 should remain resolved as it looks like basically the same issue as this, but with just one disk.

Changed in linux-source-2.6.22:
status: Confirmed → Triaged
Dahong Li (dli) wrote :

Hi Soren,

The patch and bug that MaxDevice is 0 which you mentioned are for the different issue which is tracked separately in VMware bugzilla. In that case, port reports no device. In this case, a port does not report the devices with non-zero target ID like scsi0:1. It still reports a device with zero target ID like scsi0:0. What is the MaxDevices in your 2.6.22.9 config?

Later,
Dahong

Dahong Li (dli) wrote :
Tim Gardner (timg-tpi) wrote :

Gutsy commit e22ad0ffa59fdfb5186e205e49d190718c772c93

Changed in linux-source-2.6.22:
assignee: nobody → timg-tpi
importance: Undecided → Medium
status: Triaged → Fix Committed
Dahong Li (dli) wrote :

Tim, could you share what the fix is?

Kyle McMartin (kyle) wrote :
Download full text (5.9 KiB)

linux-source-2.6.22 (2.6.22-13.40) gutsy; urgency=low

  [Amit Kucheria]

  * Enable CONFIG_VM86 for LPIA
    - LP: #146311
  * Update configuration files
  * Disable MSI by default
  * Add mmconf documentation
  * Update configuration files

  [Bartlomiej Zolnierkiewicz]

  * ide-disk: workaround for buggy HPA support on ST340823A (take 3)
    - LP: #26119

  [Ben Collins]

  * ubuntu/cell: Fixup ps3 related modules for d-i, enable RTAS console
  * ubuntu/cell: Enable CELLEB and related modules (pata_scc)
  * ubuntu/cell: Move ps3rom to storage-core. Also use spidernet, not
    spider_net.
  * ubuntu/cell: Set PS3_MANAGER=y
  * ubuntu: Set NR_CPUS=256 for sparc64-smp

  [Chuck Short]

  * [USB] USB] Support for MediaTek MT6227 in cdc-acm.
    - LP: #134123
  * [XEN] Fix xen vif create with more than 14 guests.
    - LP: #14486

  [Jorge Juan Chico]

  * ide: ST320413A has the same problem as ST340823A
    - LP: #26119

  [Kyle McMartin]

  * fix -rt build
  * fix ia32entry-xen.S for CVE-2007-4573
  * fix build when CONFIG_PCI_MSI is not set

  [Matthew Garrett]

  * hostap: send events on data interface as well as master interface
    - LP: #57146
  * A malformed _GTF object should not prevent ATA device recovery
    - LP: #139079
  * hostap: send events on data interface as well as master interface
    - LP: #57146
  * A malformed _GTF object should not prevent ATA device recovery
    - LP: #139079
  * Don't lose appletouch button release events
  * Fix build with appletouch change
  * Disable Thinkpad backlight support on machines with ACPI video
    - LP: #148055
  * Don't attempt to register a callback if there is no CMOS object
    - LP: #145857
  * Update ACPI bay hotswap code to support locking
    - LP: #148219
  * Update ACPI bay hotswap code to support locking
    - LP: #148219
  * Don't attempt to register a callback if there is no CMOS object
    - LP: #145857
  * Disable Thinkpad backlight support on machines with ACPI video
    - LP: #148055

  [Steffen Klassert]

  * 3c59x: fix duplex configuration
    - LP: #94186

  [Thomas Gleixner]

  * clockevents: remove the suspend/resume workaround^Wthinko

  [Tim Gardner]

  * orinoco_cs.ko missing
    - LP: #125832
  * Marvell Technology ethernet card not recognized and not operational
    - LP: #135316
  * Marvell Technology ethernet card not recognized and not operational
    - LP: #135316
  * acpi_scan_rsdp() breaks some PCs by not honouring ACPI specification
    - LP: #144336
  * VIA southbridge Intel id missing
    - LP: #128289
  * Add T-Sinus 111card to hostap_cs driver to be able to upload firmware
    - LP: #132466
  * RTL8111 PCI Express Gigabit driver r8169 big files produce slow file
    transfer
    - LP: #114171
  * Guest OS does not recognize a lun with non zero target id on Vmware ESX
    Server
    - LP: #140761
  * Modualrize vesafb
    - LP: #139505
  * Nikon cameras need support in unusual_devs.h
    - LP: #134477
  * agp for i830m broken in gutsy
    - LP: #139767
  * hdaps: Added support for Thinkpad T61
    - LP: #147383
  * xen: Update config for i386
    - LP: #139047
  * xen: resync for amd64
    - LP: #139047
  * ide-disk: workaround for buggy HPA support ...

Read more...

Changed in linux-source-2.6.22:
status: Fix Committed → Fix Released
Tim Gardner (timg-tpi) on 2007-10-05
Changed in linux-source-2.6.22:
assignee: timg-tpi → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers