Re: [PATCH] mpt2sas: New feature - Fast Load Support - scsi_mod.scan=sync drops drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tanks for your suggestion Kashyap!

I've tried it out but ran directly into an other problem. With
scsi_mod.scan=sync the hba reported all 4 drives correctly but dropped
one of it instantaneously. So I'm either stuck with kernel 3.1 and all
booting up correctly or using 3.2 and manually mounting the drives
behind the hba and starting the services depending on them thereafter.

I've attached parts of the kernel log with scsi_mod.sync parameter set
to  sync/async

-andre


On 10.01.2012 11:53, Desai, Kashyap wrote:
> There is a some scsi_mod parameter called "scan".
> If you pass those parameter at boot time you can change the behavior. (see below description)
> 
> 	scsi_mod.scan=	[SCSI] sync (default) scans SCSI busses as they are
> 		discovered.  Async scans them in kernel threads, allowing boot to proceed.  
> 		none ignores them, expecting user space to do the scan.
> 
> ~ Kashyap
> 
>> -----Original Message-----
>> From: linux-scsi-owner@xxxxxxxxxxxxxxx [mailto:linux-scsi-
>> owner@xxxxxxxxxxxxxxx] On Behalf Of André-Sebastian Liebe
>> Sent: Tuesday, January 10, 2012 2:18 PM
>> To: linux-scsi@xxxxxxxxxxxxxxx
>> Subject: Re: [PATCH] mpt2sas: New feature - Fast Load Support
>>
> Hi guys,
> 
> I've run into problems with the all new shiny 3.2 kernel. My system
> broke badly as it's depending on some devices which are attached to my
> LSI SAS 2008 hba.
> The mount scripts of my gentoo/openrc setup get triggered right after
> udev has settled.  But with the new fast load support udev settles
> before my drives appear to the system, so mount fails for all those
> drives and of cause all subsequent services depending on them.
> Is there any switch to revert back to the old behavior of blocking until
> all ports scans are done?
> 
> Thanks in advance
> André-Sebastian Liebe
> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
gpg key AA1E1F66 @ gpg-keyserver.de: André-Sebastian Liebe <andre@xxxxxxxxx>
Key fingerprint = 5436 5358 172C EB7D E414  C6DE 6664 89BF AA1E 1F66
[   20.860030] mpt2sas0: diag reset: SUCCESS
[   20.984933] mpt2sas0: Allocated physical memory: size(4005 kB)
[   20.984936] mpt2sas0: Current Controller Queue Depth(1754), Max Controller Queue Depth(2015)
[   20.984938] mpt2sas0: Scatter Gather Elements per IO(128)
[   21.177151] mpt2sas0: LSISAS2008: FWVersion(07.00.00.00), ChipRevision(0x03), BiosVersion(07.11.00.00)
[   21.177154] mpt2sas0: Protocol=(Initiator,Target), Capabilities=(Raid,TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ)
[   21.177298] mpt2sas0: sending port enable !!
[   22.772658] mpt2sas0: host_add: handle(0x0001), sas_addr(0x500605b002c89840), phys(8)
[   28.896722] mpt2sas0: port enable: SUCCESS
[   28.907610] scsi 10:0:0:0: Direct-Access     ATA      WDC WD20EARS-00S 0A80 PQ: 0 ANSI: 5
[   28.907619] scsi 10:0:0:0: SATA: handle(0x0009), sas_addr(0x4433221101000000), phy(1), device_name(0x4ee250010b165a17)
[   28.907624] scsi 10:0:0:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(1)
[   28.907708] scsi 10:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   28.907713] scsi 10:0:0:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   28.917685] scsi 10:0:1:0: Direct-Access     ATA      WDC WD30EZRX-00A 0A80 PQ: 0 ANSI: 5
[   28.917693] scsi 10:0:1:0: SATA: handle(0x000a), sas_addr(0x4433221103000000), phy(3), device_name(0x4ee250016daeb0cb)
[   28.917697] scsi 10:0:1:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(3)
[   28.917779] scsi 10:0:1:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   28.917784] scsi 10:0:1:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   28.928013] scsi 10:0:2:0: Direct-Access     ATA      WDC WD30EZRX-00M 0A80 PQ: 0 ANSI: 5
[   28.928021] scsi 10:0:2:0: SATA: handle(0x000b), sas_addr(0x4433221107000000), phy(7), device_name(0x4ee25001277eb05a)
[   28.928025] scsi 10:0:2:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(7)
[   28.928107] scsi 10:0:2:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   28.928112] scsi 10:0:2:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   28.936672] scsi 10:0:3:0: Direct-Access     ATA      WDC WD20EARS-00S 0A80 PQ: 0 ANSI: 5
[   28.936680] scsi 10:0:3:0: SATA: handle(0x000c), sas_addr(0x4433221105000000), phy(5), device_name(0x4ee250010a965a17)
[   28.936684] scsi 10:0:3:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(5)
[   28.936777] scsi 10:0:3:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   28.936782] scsi 10:0:3:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   28.937033] sd 10:0:0:0: Attached scsi generic sg2 type 0
[   28.937234] sd 10:0:1:0: Attached scsi generic sg3 type 0
[   28.937400] sd 10:0:2:0: Attached scsi generic sg4 type 0
[   28.937560] sd 10:0:3:0: Attached scsi generic sg5 type 0
[   28.941283] sd 10:0:3:0: [sde] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   28.942043] sd 10:0:1:0: [sdc] physical block alignment offset: 4096
[   28.942050] sd 10:0:1:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[   28.942053] sd 10:0:1:0: [sdc] 4096-byte physical blocks
[   28.942228] sd 10:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   28.942316] sd 10:0:2:0: [sdd] physical block alignment offset: 4096
[   28.942321] sd 10:0:2:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[   28.942324] sd 10:0:2:0: [sdd] 4096-byte physical blocks
[   28.962776] sd 10:0:3:0: [sde] Write Protect is off
[   28.962780] sd 10:0:3:0: [sde] Mode Sense: 7f 00 00 08
[   28.968120] sd 10:0:1:0: [sdc] Write Protect is off
[   28.968124] sd 10:0:1:0: [sdc] Mode Sense: 7f 00 00 08
[   28.968892] sd 10:0:2:0: [sdd] Write Protect is off
[   28.968896] sd 10:0:2:0: [sdd] Mode Sense: 7f 00 00 08
[   28.970328] sd 10:0:3:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   28.971181] sd 10:0:0:0: [sdb] Write Protect is off
[   28.971185] sd 10:0:0:0: [sdb] Mode Sense: 7f 00 00 08
[   28.977990] sd 10:0:1:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   28.979059] sd 10:0:2:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   28.981742] sd 10:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   29.010029]  sde: sde1
[   29.053382]  sdd: sdd1
[   29.058647]  sdc: sdc1
[   29.060751] sd 10:0:3:0: [sde] Attached SCSI disk
[   29.075114]  sdb: sdb1
[   29.115190] sd 10:0:2:0: [sdd] Attached SCSI disk
[   29.120141] sd 10:0:1:0: [sdc] Attached SCSI disk
[   29.143900] sd 10:0:0:0: [sdb] Attached SCSI disk
[   21.156696] mpt2sas0: diag reset: SUCCESS
[   21.281678] mpt2sas0: Allocated physical memory: size(4005 kB)
[   21.281681] mpt2sas0: Current Controller Queue Depth(1754), Max Controller Queue Depth(2015)
[   21.281683] mpt2sas0: Scatter Gather Elements per IO(128)
[   21.473817] mpt2sas0: LSISAS2008: FWVersion(07.00.00.00), ChipRevision(0x03), BiosVersion(07.11.00.00)
[   21.473821] mpt2sas0: Protocol=(Initiator,Target), Capabilities=(Raid,TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ)
[   21.473895] mpt2sas0: sending port enable !!
[   23.067477] mpt2sas0: host_add: handle(0x0001), sas_addr(0x500605b002c89840), phys(8)
[   29.193384] mpt2sas0: port enable: SUCCESS
[   29.204365] scsi 10:0:0:0: Direct-Access     ATA      WDC WD20EARS-00S 0A80 PQ: 0 ANSI: 5
[   29.204373] scsi 10:0:0:0: SATA: handle(0x0009), sas_addr(0x4433221101000000), phy(1), device_name(0x4ee250010b165a17)
[   29.204377] scsi 10:0:0:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(1)
[   29.204464] scsi 10:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   29.204469] scsi 10:0:0:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   29.204641] sd 10:0:0:0: Attached scsi generic sg2 type 0
[   29.209862] sd 10:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   29.214985] scsi 10:0:1:0: Direct-Access     ATA      WDC WD30EZRX-00M 0A80 PQ: 0 ANSI: 5
[   29.214992] scsi 10:0:1:0: SATA: handle(0x000a), sas_addr(0x4433221107000000), phy(7), device_name(0x4ee25001277eb05a)
[   29.214996] scsi 10:0:1:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(7)
[   29.215082] scsi 10:0:1:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   29.215087] scsi 10:0:1:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   29.215272] sd 10:0:1:0: Attached scsi generic sg3 type 0
[   29.220138] sd 10:0:1:0: [sdc] physical block alignment offset: 4096
[   29.220145] sd 10:0:1:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[   29.220149] sd 10:0:1:0: [sdc] 4096-byte physical blocks
[   29.225261] scsi 10:0:2:0: Direct-Access     ATA      WDC WD30EZRX-00A 0A80 PQ: 0 ANSI: 5
[   29.225268] scsi 10:0:2:0: SATA: handle(0x000b), sas_addr(0x4433221103000000), phy(3), device_name(0x4ee250016daeb0cb)
[   29.225272] scsi 10:0:2:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(3)
[   29.225357] scsi 10:0:2:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   29.225362] scsi 10:0:2:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   29.225516] sd 10:0:2:0: Attached scsi generic sg4 type 0
[   29.230289] sd 10:0:2:0: [sdd] physical block alignment offset: 4096
[   29.230296] sd 10:0:2:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[   29.230299] sd 10:0:2:0: [sdd] 4096-byte physical blocks
[   29.234222] scsi 10:0:3:0: Direct-Access     ATA      WDC WD20EARS-00S 0A80 PQ: 0 ANSI: 5
[   29.234228] scsi 10:0:3:0: SATA: handle(0x000c), sas_addr(0x4433221105000000), phy(5), device_name(0x4ee250010a965a17)
[   29.234232] scsi 10:0:3:0: SATA: enclosure_logical_id(0x500605b002c89840), slot(5)
[   29.234318] scsi 10:0:3:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   29.234323] scsi 10:0:3:0: qdepth(32), tagged(1), simple(0), ordered(0), scsi_level(6), cmd_que(1)
[   29.234474] sd 10:0:3:0: Attached scsi generic sg5 type 0
[   29.234639]  port-10:0: remove: sas_addr(0x4433221101000000)
[   29.234649]  port-10:0: remove: sas_addr(0x4433221101000000), phy(1)
[   29.238313] sd 10:0:3:0: [sde] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   29.239286] sd 10:0:0:0: [sdb] Write Protect is off
[   29.239290] sd 10:0:0:0: [sdb] Mode Sense: 7f 00 00 08
[   29.239312] sd 10:0:0:0: [sdb] Asking for cache data failed
[   29.239316] sd 10:0:0:0: [sdb] Assuming drive cache: write through
[   29.239485] sd 10:0:0:0: [sdb] READ CAPACITY(16) failed
[   29.239488] sd 10:0:0:0: [sdb]  Result: hostbyte=0x01 driverbyte=0x00
[   29.239491] sd 10:0:0:0: [sdb] Sense not available.
[   29.239516] sd 10:0:0:0: [sdb] READ CAPACITY failed
[   29.239518] sd 10:0:0:0: [sdb]  Result: hostbyte=0x01 driverbyte=0x00
[   29.239521] sd 10:0:0:0: [sdb] Sense not available.
[   29.239556] sd 10:0:0:0: [sdb] Asking for cache data failed
[   29.239558] sd 10:0:0:0: [sdb] Assuming drive cache: write through
[   29.239561] sdb: detected capacity change from 2000398934016 to 0
[   29.239666] sd 10:0:0:0: [sdb] READ CAPACITY(16) failed
[   29.239669] sd 10:0:0:0: [sdb]  Result: hostbyte=0x01 driverbyte=0x00
[   29.239672] sd 10:0:0:0: [sdb] Sense not available.
[   29.239708] sd 10:0:0:0: [sdb] READ CAPACITY failed
[   29.239710] sd 10:0:0:0: [sdb]  Result: hostbyte=0x01 driverbyte=0x00
[   29.239713] sd 10:0:0:0: [sdb] Sense not available.
[   29.239760] sd 10:0:0:0: [sdb] Asking for cache data failed
[   29.239762] sd 10:0:0:0: [sdb] Assuming drive cache: write through
[   29.239765] sd 10:0:0:0: [sdb] Attached SCSI disk
[   29.246471] sd 10:0:1:0: [sdc] Write Protect is off
[   29.246475] sd 10:0:1:0: [sdc] Mode Sense: 7f 00 00 08
[   29.256672] sd 10:0:1:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   29.257079] sd 10:0:2:0: [sdd] Write Protect is off
[   29.257083] sd 10:0:2:0: [sdd] Mode Sense: 7f 00 00 08
[   29.259340] sd 10:0:3:0: [sde] Write Protect is off
[   29.259343] sd 10:0:3:0: [sde] Mode Sense: 7f 00 00 08
[   29.266542] sd 10:0:2:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   29.267228] sd 10:0:3:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   29.315743]  sde: sde1
[   29.332165]  sdc: sdc1
[   29.349526]  sdd: sdd1
[   29.351274] sd 10:0:3:0: [sde] Attached SCSI disk
[   29.373777] sd 10:0:1:0: [sdc] Attached SCSI disk
[   29.390661] sd 10:0:2:0: [sdd] Attached SCSI disk
[   29.391060] mpt2sas0: removing handle(0x0009), sas_addr(0x4433221101000000)
[   29.391064] mpt2sas0: failure at drivers/scsi/mpt2sas/mpt2sas_transport.c:705/mpt2sas_transport_port_add()!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux