From owner-freebsd-scsi@FreeBSD.ORG Sat Feb 15 21:17:08 2014 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7B29ABA9 for ; Sat, 15 Feb 2014 21:17:08 +0000 (UTC) Received: from nm25-vm6.bullet.mail.ne1.yahoo.com (nm25-vm6.bullet.mail.ne1.yahoo.com [98.138.91.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 33CF619F2 for ; Sat, 15 Feb 2014 21:17:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=gcom1024; t=1392498871; bh=+dVM74jjrVRRKJlyCyDwdtWJKbPQPtFjB4h+FY8uIjs=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=MTh3EcgYgxC3Yfom48vZ/IE7c0hsxIDJnCzI+zoPfsE5QnDYcyXPsT4hEfzqNHcRIUm7ccaiMJMjy0rZ7XpkKF5V/tJxQLA4vNRZaDpyIqxXL6x/iqxpo+Tagtn1BHYNme3sBbdi6fh5WxNK+jXHbyuyqALTy14EpKgQg2JyDto= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=gcom1024; d=yahoo.com; b=kc8vCenNSH6PrWnMcv7gkS9KGlXZ25RDb3iMS/cyH5u5RRuV1zHa8nzNdfN7hyy+18HC/pnqQnhvPgKHfs3EASOD26tzPfPC+06kQPYTpKsK8g7F5cQkyZXuCwzBB4JW5pkHY9QJAEgkUKbiU7fZ7v29WpUyX8PUIvT7smihMmo=; Received: from [98.138.101.128] by nm25.bullet.mail.ne1.yahoo.com with NNFMP; 15 Feb 2014 21:14:31 -0000 Received: from [98.138.84.44] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 15 Feb 2014 21:14:31 -0000 Received: from [127.0.0.1] by smtp112.mail.ne1.yahoo.com with NNFMP; 15 Feb 2014 21:14:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1392498871; bh=+dVM74jjrVRRKJlyCyDwdtWJKbPQPtFjB4h+FY8uIjs=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; b=FCdMbvYDggMmWgFX80lySEea9k19LF0Fk2vRH9To9D57FkLrRiUJak02qS9pN8PKTFTpbOZJ/GuldTjspNmBry/34ndCCVaqNUYS0o0MALT0RrI2O7raxjUX4g/EYkjF6lfg16R786QjtOZoC6XRB3j6aHFW/6i6+Ry5FQD1+0M= X-Yahoo-Newman-Id: 674809.89328.bm@smtp112.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 03iKl9QVM1nFjzKSYoPTqb5qIIBYs4M1G6gfJDTp7tOzZWV _WwSWMsJLY67TJ6ba3OYDmWPklPjRK8yA6rcM8P5lKA3fkl6NlRAPebIg5rw 64nEbKNj8NjxtPAkJILai4pgRlXKuixKFF.TAvaYwvB3ftXtDhI_Itb5TGRV OPTScC38Z1mdjfSvxP8uT_U5._2_Wwj.G19KCNgYly8.F.gkyRa3WWLokrwf ESeJrV3rZBX8Xzhly0b9dUMHbosEFBdKOmgYDgQNbl.B5_YeUElZ0CR7a7yE 9zhwjIgg47Pyp4wbce19dMhCS4i82CwSADulICk4BxkK4L41HYPiOdd1NXQI jfDu2OKU24z6bWL5f2Yg8g7FhREcrz53MBIxZf.asINJA4XZkvvMq5ay3fFj F.lo3n2a9AGgV6x8VplCv5vqM7AGUt0YHhFow4iQkI_W_UgHiBdjNE9U5nmy KJXszXOGWtxVgnVYsfE8y24aglpYQ_q5dIkBUj1g_RcKz6FbOLk8m6MsQurd 6jHuUfboV_Hx3gqrLfD3csJ.IwIhUX75mlgOwk3M4qsPBXn6.xqoQCYts4XR zU9cQTqkuqNeKQR2SL4NOo.fzvk34wc0J4TFmsPRIdWucVNrEE4Q2Utzqm6l _tSLr4nPGkiSB X-Yahoo-SMTP: clhABp.swBB7fs.LwIJpv3jkWgo2NU8- X-Rocket-Received: from phobos.samsco.home (scott4long@168.103.85.57 with plain [98.138.105.21]) by smtp112.mail.ne1.yahoo.com with SMTP; 15 Feb 2014 13:14:31 -0800 PST Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: Wiring down devices with LSI 2308 / mps? From: Scott Long In-Reply-To: <41337B9333D94F88B9469A60@study64.tdx.co.uk> Date: Sat, 15 Feb 2014 14:14:29 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <41337B9333D94F88B9469A60@study64.tdx.co.uk> To: Karl Pielorz X-Mailer: Apple Mail (2.1827) Cc: "FreeBSD-scsi@freebsd.org" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Feb 2014 21:17:08 -0000 Hi, The LSI cards keep a persistent mapping of hard drive serial numbers to = target numbers. That way, when it=92s in RAID mode and you pull a drive = from one slot and put it into another slot, it=92ll recognize that it=92s = the same drive and part of the same array set. It=92s incredibly = annoying, and once the persistent mapping is created, it cannot be = cleared just by turning off the RAID mode. What we do at Netflix is use = the a tool provided by LSI to clear out the persistent mapping (and all = of NVRAM, actually), and then turn off the persistence feature. = Unfortunately, you=92ll need to contact LSI directly for this tool. = Once you have it, I can share a script that performs the necessary = actions. Contact me off-list if you=92d like more information. Scott On Feb 15, 2014, at 9:14 AM, Karl Pielorz = wrote: >=20 > Hi, >=20 > I've got a SuperMicro board that has an onboard LSI 2308 onboard. This = appears using the mps driver: >=20 > " > mps0: port 0xc200-0xc2ff mem = 0xf33c0000-0xf33cffff,0xf3380000-0xf33bffff irq 44 at device 7.0 on pci0 > mps0: Firmware: 15.00.00.00, Driver: 16.00.00.00-fbsd > mps0: = IOCCapabilities:185c > " >=20 > I'd like to wire the devices down on this - but that doesn't seem to = work :( >=20 > I tried this by putting entries in '/boot/device.hints' such as: >=20 > " > hint.scbus.0.at=3D"mps0" >=20 > hint.da.0.at=3D"scbus0" > hint.da.0.target=3D"2" > hint.da.0.unit=3D"0" >=20 > hint.da.1.at=3D"scbus0" > hint.da.1.target=3D"1" > hint.da.1.unit=3D"0" > ... > " >=20 > Testing though shows that maybe the controller itself is collapsing = 'missing' ports/targets? >=20 > e.g. Attach a disk to 'Port 0' - and it shows as: >=20 > da2 at mps0 bus 0 scbus0 target 2 lun 0 >=20 > Ok, target 2? - but at least that's mapped to da2 (wiring works) >=20 > Take the disk off, and connect it to Port 1 - and it shows as: >=20 > da2 at mps0 bus 0 scbus0 target 2 lun 0 >=20 > Port 1 is target 2 as well? - Switch the drive to 'Port 2' - and you = get: >=20 > da2 at mps0 bus 0 scbus0 target 2 lun 0 >=20 > So port 2 is also target 2? (if the others aren't occupied) >=20 > Add a 2nd drive (to any port) and you get: >=20 > da3 at mps0 bus 0 scbus0 target 3 lun 0 >=20 >=20 > So the 'wiring down' is working - but it looks like the LSI collapses = it's own 'missing drives'? - And starts at Target 2? >=20 > I can't see any setting in the LSI bios that would change this? - I'm = presuming it must be possible not to have it do this - though searching = the lists didn't turn anything obvious up... >=20 > Thanks, >=20 > -Karl >=20 > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to = "freebsd-scsi-unsubscribe@freebsd.org"