From owner-freebsd-fs@freebsd.org Wed Dec 28 07:03:37 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 39EF6C94BCB for ; Wed, 28 Dec 2016 07:03:37 +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 1A0361AC6 for ; Wed, 28 Dec 2016 07:03:37 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 1959EC94BCA; Wed, 28 Dec 2016 07:03:37 +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 18FA0C94BC9 for ; Wed, 28 Dec 2016 07:03:37 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wj0-x243.google.com (mail-wj0-x243.google.com [IPv6:2a00:1450:400c:c01::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 A402A1AC4 for ; Wed, 28 Dec 2016 07:03:36 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wj0-x243.google.com with SMTP id kp2so53448817wjc.0 for ; Tue, 27 Dec 2016 23:03:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=pLSpKqPaCnvI39WITE7KgAj1RIQizxtB20s0WgdqifY=; b=RNJw5dJz1L5Qf05CooyGuBLQwKXv7YYmfv/UJOD8LTdM+iybK6B8lOUTXUz2NwcKFJ GDOHFQ7USIvIT17CU7zYwgHBokq2MYA/5YUymldYVlUhjnbcas5RjMMA8J4jHKZbxJy4 K34mCNrpJiOTX8m9OA6vW4GNQSaCL2NT6GCbjVwtcDgPrenEpLc2sE9/3pT/9ynoRncr T+DGtiTHF+APapqvz34qWd6XWUcVyvVDFVHrwInbvh6X/hDdpkrk4VQjkdAtWk4Mg9Dn LUlFX4Wsgii/bfTsd7hnBICFgFoHgMxuv05TzssTHeB/W8GuY7xWTm+MA4lBcuY3CC6c pong== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=pLSpKqPaCnvI39WITE7KgAj1RIQizxtB20s0WgdqifY=; b=VJMwmvxM+edX5nvWFfeZRDUI/rN1zWpgg0oZIPZkXH9hJmdc7A9BqymgYH9+EqodVS pNNwX17t81jAA8uw6vhe6nsoWf2Voc14+4dSseVEgGYGoMh3tjOwg9CH5qcduLcyqOhh q2ej5NFIi2ydFwCjxtJC84kzmmONKMwBMDWZ8UcfMb1KoKYQ4BRNsFj/xbtxxXfRLZ33 oVbYBcL0j0VPYQNCidr1v1oYmGxBnK6cEKVLtMcyyHpfCZoE5imStNBCV7j7tHyuXFHa l3rmeUyo6UP89X/+TtcEwDsWMHeudqKidfbpJ5AjPOtgBG86zWDoh9k8maCxXrbq3BN6 UFMA== X-Gm-Message-State: AIkVDXLdZxYnlAn72OMlw1natyTqyiEZmgYLm7vWuoYm0aNQVeuhy7iArIk0luoWx9xU5w== X-Received: by 10.194.140.234 with SMTP id rj10mr24526999wjb.39.1482908614669; Tue, 27 Dec 2016 23:03:34 -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 v3sm62884904wjp.13.2016.12.27.23.03.33 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Dec 2016 23:03:34 -0800 (PST) From: Ben RUBSON Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Force ZFS to always look for devices in a defined location Message-Id: <4E030EC6-39AC-484C-BA53-2C8CA0E79B84@gmail.com> Date: Wed, 28 Dec 2016 08:03:35 +0100 To: fs@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) 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 07:03:37 -0000 Hello, My zpools are made of devices from /dev/label. Example : NAME STATE READ WRITE CKSUM my-zpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 label/slotone ONLINE 0 0 0 label/slottwo ONLINE 0 0 0 (...) For some reasons, it may happen that access to some devices fails and = devices (quickly) toggle between ONLINE and UNAVAIL/REMOVED state. Then, sometimes, ZFS re-use the device using the /dev/da path, instead = of waiting for the /dev/label path to be rediscovered by the system. It then leads to something like this, with is not nice, and not really = correct (as last sector of /dev/da contains the label) : NAME STATE READ WRITE CKSUM my-zpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 label/slotone ONLINE 0 0 0 da14 ONLINE 0 0 0 (...) My question is then, how to force ZFS to look for devices in a defined = location ? (/dev/label/ in this example) I tried to offline / online impacted devices (da*), but it does not = work, they do not come back with their /dev/label path. Zpool export / import works, but of course this is something we would = like to avoid. Many thanks ! Ben