From owner-freebsd-geom@FreeBSD.ORG Wed Dec 2 13:39:12 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F2D5106566B for ; Wed, 2 Dec 2009 13:39:12 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: from melamine.cuivre.fr.eu.org (unknown [IPv6:2001:470:1f15:1531:224:e8ff:fe3d:60a5]) by mx1.freebsd.org (Postfix) with ESMTP id 0344A8FC15 for ; Wed, 2 Dec 2009 13:39:12 +0000 (UTC) Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000) id 4D0832059; Wed, 2 Dec 2009 14:39:11 +0100 (CET) Date: Wed, 2 Dec 2009 14:39:11 +0100 From: Thomas Quinot To: freebsd-geom@freebsd.org Message-ID: <20091202133911.GA96216@melamine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-message-flag: WARNING! Using Outlook can damage your computer. User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Forcing preferred path in geom_multipath X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 13:39:12 -0000 I am in the process of setting up access to an iSCSI array with redundant network connections, and I'm a bit lost as to how to properly set things up with gmultipath. The disk array exposes several LUNs, and I have two active iSCSI sessions, each of which making all LUNs available, and using a distinct network path. Thus for example: LUN 0 is seen as da0 through session 0, and as da24 through session 1 LUN 2 is seen as da2 through session 0, and as da26 through session 1 so I need one multipath geom lun0 with providers da0 and da24, and another multipath geom lun2 with providers da2 and da26. Now for load balancing purposes it is desirable to force lun0 to use da0 by default, but lun2 to use da26 by default (da24 and da2 being the respective fail-overs). However it is not clear to me how this can currently be achieved, since the preferred path will always be the first tasted one for each geom, if using automatic configuration. Any suggestions as to how to achieve the desired ordering of preferred paths for each multipath geom? Thanks! Thomas.