From owner-freebsd-geom@FreeBSD.ORG Thu May 10 15:41:47 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7EEC1065672 for ; Thu, 10 May 2012 15:41:47 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 5EB4A8FC0A for ; Thu, 10 May 2012 15:41:47 +0000 (UTC) Received: by qabg1 with SMTP id g1so532153qab.13 for ; Thu, 10 May 2012 08:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=tlbXcPvTxBDCZTwcTOh5wVEgQGKawZicATX3aE1gAU4=; b=0GQgT9b9RaYkAfMggpQlcK5g+baJjTOpIpvQc/qHMMJrCkVrti1vAl6gYbWEpb4p30 gFUzqvwhbdYc9b2Ie46sa4eGsS1cC30Jp0odMysSQtm+HF3ZLJZyasdElYwP8wAw5D+b IHvbJ2wGHqFdlRPFGulbLVNswn8oabyQYMjyUS1YH3v+x0kV8LqBad2nZE12/f0O55Q5 Xek7Y0azvelXixu0e3fwR+mU5Lbec5YPJqqnyUzQqZClCqk6IfgSOhtQDaGsXLMtJFuP jjstBeerWky8hl5hkML79dnhB7NkGd8fHgdGkl/Mm1cqq69guRWyzQ/6Nqwe+B2OBsQs tIgQ== Received: by 10.229.87.7 with SMTP id u7mr2353507qcl.15.1336664502899; Thu, 10 May 2012 08:41:42 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([192.75.139.251]) by mx.google.com with ESMTPS id dl3sm17006561qab.9.2012.05.10.08.41.38 (version=SSLv3 cipher=OTHER); Thu, 10 May 2012 08:41:38 -0700 (PDT) Sender: Alexander Motin Message-ID: <4FABE1A8.4000609@FreeBSD.org> Date: Thu, 10 May 2012 18:41:28 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120116 Thunderbird/9.0 MIME-Version: 1.0 To: Trent Nelson , mj@feral.com, freebsd-geom@FreeBSD.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Teaching gmultipath about path cost/priority 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: Thu, 10 May 2012 15:41:47 -0000 Hi. > It'd be ideal if there was a way of teaching gmultipath about a path > cost/priority, so that it can make an informed decision about which > path to choose a) when first initializing, and b) during failover. The problem with this is how to store that in metadata. As soon as all paths have exactly the same metadata and provider names are not mentioned there, separate paths properties are not possible at this moment. As dirty workaround, you may periodically run some script to enforce active path on your specific preference. -- Alexander Motin