From owner-freebsd-fs@freebsd.org Wed Dec 28 17:56:45 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B44CDC95585 for ; Wed, 28 Dec 2016 17:56:45 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9090E1E47 for ; Wed, 28 Dec 2016 17:56:45 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 8D108C95584; Wed, 28 Dec 2016 17:56:45 +0000 (UTC) Delivered-To: fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8CB6BC95583 for ; Wed, 28 Dec 2016 17:56:45 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 206691E43 for ; Wed, 28 Dec 2016 17:56:45 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x243.google.com with SMTP id m203so62890651wma.3 for ; Wed, 28 Dec 2016 09:56:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:references:to:in-reply-to; bh=g684zOvavwLJHaOx2/ULtC76G/8pQYXDl4bb02rryRI=; b=dB0wgy12VEiUijs6To8WdRztQXChrEaS8b9tpGLVxfzxkC56N45PgZtdgo7hvAdj6s sHmTQ3VbBnehj4OqESy7d/lm2eUqXSsh24BHb+HY0ScUke/cMzzgWrZUPIMTrjh35RgH ju0m3TaMhmcK6cid3d+0C2KMD92sCHexR6Gux8xbbA6dIKLMIshIfrgFkfIrS86KaaKc ltDQ61re2yZzIMpFB2uuKUXwild8NmEWJmUTJ64zTzZZltvHtE67vrJayHFGoTlC6f+x 1kYO5W6zgnvRJE5cw7Ot2hh3r/HWBHsK6UquGFad5KlAJA6GZW6F0yw/nPvjvxIqWPTj NrDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :references:to:in-reply-to; bh=g684zOvavwLJHaOx2/ULtC76G/8pQYXDl4bb02rryRI=; b=EmfUUjVt+cD2JBkIuQ505kQwhKRAmu+jUS5fTtFvI1yOJ6BAMNHzKxKHEZw4QCV7f/ 7bRW9fzUmUgoefcMXj9r2NctqmZGWeYVqhhVjWwnQIY+3NynpYy+Snuuw4x1MYY/vap+ 9SvqQfDYs0WQPQkLE/qPs7QuvgmyoLtpYuvIsW6o4aFYcufaICh7B5gfuEbBGItfXTA7 9Qk9x+KZSJzbfbd1SFIEGKD1YWiavPq/YCkXBtLbhOZRLdPufqA4nV4US5U90e5iiKBu 743qYB+KH/KOq/y0M8T1b9EW1XKLW4KCUwkCx6oyxLcBmN5DNKQ1Byl9OSfeSX3HMlqB qoQg== X-Gm-Message-State: AIkVDXIlRBqkrEDqG5wgwbLTUVIDGP8WkKqXu4hlW/dCvJGJKtMuqjVFPCf9Pd4kOAB1Tw== X-Received: by 10.28.150.69 with SMTP id y66mr35915318wmd.107.1482947803392; Wed, 28 Dec 2016 09:56:43 -0800 (PST) Received: from ben.home (LFbn-1-7159-4.w90-116.abo.wanadoo.fr. [90.116.90.4]) by smtp.gmail.com with ESMTPSA id v2sm65337990wja.41.2016.12.28.09.56.42 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Dec 2016 09:56:42 -0800 (PST) From: Ben RUBSON Message-Id: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Force ZFS to always look for devices in a defined location Date: Wed, 28 Dec 2016 18:56:41 +0100 References: <4E030EC6-39AC-484C-BA53-2C8CA0E79B84@gmail.com> To: fs@freebsd.org In-Reply-To: X-Mailer: Apple Mail (2.3124) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2016 17:56:45 -0000 > On 28 Dec 2016, at 18:16, Freddie Cash wrote: >=20 > On Dec 27, 2016 11:03 PM, "Ben RUBSON" > wrote: > (...) > My question is then, how to force ZFS to look for devices in a defined = location ? > (/dev/label/ in this example) >=20 > Export the pool. >=20 > Then use -d to import it using the labels: >=20 > zpool import -d /dev/label my-zpool >=20 > That will search the label directory for pool devices and use that = path into the GEOM layer. And it will remember it for future imports. = Aft least until things get confused again in the future. :) Thank you Freddie for your feedback. Yes the question is then, will ZFS keep searching into /dev/label only, = even if devices toggle again ? I will test "import -d" and see what occurs. Thank you ! Ben