From owner-freebsd-scsi@FreeBSD.ORG Tue Feb 7 20:22:35 2006 Return-Path: X-Original-To: scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F25716A420; Tue, 7 Feb 2006 20:22:35 +0000 (GMT) (envelope-from tom@uniserve.com) Received: from mx5.uniserve.ca (mx5.uniserve.ca [216.113.192.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B84743D48; Tue, 7 Feb 2006 20:22:34 +0000 (GMT) (envelope-from tom@uniserve.com) Received: from mgmt.uniserve.ca ([216.113.192.30]) by mx5.uniserve.ca with esmtp (Exim 4.50) id 1F6ZM9-0008lk-PR; Tue, 07 Feb 2006 12:22:33 -0800 Date: Tue, 7 Feb 2006 12:22:33 -0800 (PST) From: Tom Samplonius X-X-Sender: tom@mgmt.uniserve.ca To: Palle Girgensohn In-Reply-To: <2CEE6163475607F32A420FA1@jordgubbe.pingpong.net> Message-ID: <20060207121257.D53605@mgmt.uniserve.ca> References: <2CEE6163475607F32A420FA1@jordgubbe.pingpong.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanner: OK. Scanned. Cc: scsi@FreeBSD.org Subject: Re: NAS w/ multipath X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 20:22:35 -0000 On Tue, 7 Feb 2006, Palle Girgensohn wrote: > Hi! > > I'd like to connect a FreeBSD system to an IBM NAS system, using a > FibreChannel connection. I can find two supported drivers in the system, > mpt(4) and isp(4). It seems to me, none of them supports multipath, something > we need. Is this a false assumption? Are there other drivers that do support > multipath? Recommendations apprecieated. > > If not, an alternative would be iSCSI, but I have no experience and it seems > it is hardly implemented at all for FreeBSD, is that true? > > Thanks > Palle > Well, typically HBA drivers don't need to support mulitpathing, and that is implemented int the SCSI layer of the OS. Windows is a bit different, since Windows tried to mount every device (no /etc/fstab file), so Windows HBA drivers typically need multipath control to hide the fact that a single logical disk is visible on multiple channels. With multipath, you typically just see the logical disk on two separate channels (separate LUNs). Depending on your disk controller, you might need "trespass" support in the OS/driver, but that seems rare these days. So you can either do a cold multipath, by having the second path listed in your /etc/fstab, but leave it commented out, until you need to use the second path. Now, in FreeBSD you could also multipath in the GEOM layer. GEOM knows about devices going away, and knows how to handle that (ex. gmirror). There is some support in GEOM for round-robin IO to two devices. However, phk has reported that the isp driver can hang forever on some timeouts, so it might not be useful. And I don't even know if GEOM round-robin is even finished. It might an idea for a few people to get together some dollars for a sponsership on FreeBSD SAN support, specifically: - isp driver updates (timeout handling) - Multipath support support, either in CAM SCSI layer or in GEOM disk layer. There has been great results on some other sponserships. Tom