VMware Cloud Community
rldleblanc
Contributor
Contributor

How to get Debian to see LSI disk

I've been working on this for a few days and I can't figure out what the problem is. I have Debian in a VM on ESX 3.0.1 with all the patches to date, but I can't get it to see the disk when it is attached to the LSI controller. I've upgraded this VM from 2.5.x, but if I create a new VM, the same thing happens. I'm using Debian Lenny and I create a second HDD and attach it to the second SCSI bus so that I can use Buslogic for the boot partition and LSI for the test drive. I can see that the modules are loading, everything looks good, but no drives appear. What's worse is I installed Ubuntu Fiesty Fawn and it loads it no problem. I downloaded the Ubuntu kernel source and a vanilla kernel of the same version and did a diff on the module source and there was no difference. I am using a custom compiled vanilla kernel, but the stock kernels do the same thing. This is making me think that it is not a kernel issue. The reason that I need to get LSI to work is that this is our back-up machine and it is dying on writing out to the tape drives, probably because Buslogic is not as optimized as LSI logic is.

After unloading and reloading all the mpt* modules I get this in dmesg:

Fusion MPT base driver 3.04.04

Copyright (c) 1999-2007 LSI Logic Corporation

Fusion MPT SPI Host driver 3.04.04

mptbase: Initiating ioc0 bringup

ioc0: 53C1030: Capabilities=\{Initiator}

scsi2 : ioc0: LSI53C1030, FwRev=00000000h, Ports=1, MaxQ=128, IRQ=16

It looks like it finds the controller ok, but it doesn't find the disks.

Any ideas to try?

0 Kudos
2 Replies
Texiwill
Leadership
Leadership

Hello,

I would try the latest LSI driver from LSILogic not the Kernel source. That may fix the problem. Compare driver versions from Ubuntu to your Debian Lenny system. I think you will find that they are different.

Best regards,

Edward

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
rldleblanc
Contributor
Contributor

I took a look at the LSI drivers from LSI and they only apply to 2.6.9 kernels. I could not get them to compile for 2.6.21. I did find the problem however in a different forum. It seems that the problem is that the emulated controller is not correctly telling the kernel how may devices are available. A small patch forces the number of devices to 16 if none are detected. It works perfectly with the patch. I still don't see why Ubuntu works when their patched kernel does not differ from the vanilla kernel.

Forum with patch: http://www.vmware.com/community/thread.jspa?threadID=93629&tstart=0&messageID=699315

I am now looking for the right vCPU and Memory config for this heavy network/disk I/O machine.

Robert

0 Kudos