From owner-freebsd-fs@freebsd.org Sat Aug 12 07:25:19 2017 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 1ED8FDC31A5 for ; Sat, 12 Aug 2017 07:25:19 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 B4AA477603 for ; Sat, 12 Aug 2017 07:25:18 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wr0-x241.google.com with SMTP id f38so3798508wrf.4 for ; Sat, 12 Aug 2017 00:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=z6FH3vgqqBdUsivWo6ppfqZVy2RqPvv2dnTSMLCZubk=; b=TDyLC4nP4Phasu3DSqsgzmrypTnPf2/IWOPq8NoFhnxmp9giEmTna8QjAlruqmMdEg /AqSLtLTqb/N9trBvh+mmIzXE/h92yLkTZkhM1hfoeDq0e3OB3cINI2Yb1Zj3MQbNmGq svife+i2pzByQUdwYIvjjWLKMSG5XoNRzgu07F1Tpt9K7cHwz1b7GT5jKDt9gvareJL4 Ta5zC2GG+89nL1TVYgl0FbbMivIfvn6ufBITe4EMOlwtYDLtbwdEx3u4Pt6nrw8Gue4p N/vq3IK2bIH+xLcL3hmUa3fPMOOEfQyTltmKa9eeuG/gbnNdI40RY3jXgNV8owkTPEJI 14KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=z6FH3vgqqBdUsivWo6ppfqZVy2RqPvv2dnTSMLCZubk=; b=oR5EPZD2vYjwW2cDW34NevNZaljOPJ9gF9gZb7bpUDSrPJtkWoy0K4dj3+/0qOALqt re0Ex7LGYz3EL6m8lEyxz446OXqTxQZ4noCoIdMwbTLKBeHXxl/VfdVNCiUVIS86GJFx DvpG8FtwNjRoZ2D8OyXKtwWxlvy04FJjzgTUaQ7fxtmjKW/uiOvC0F908YWYhqYzM9z/ O/7hNYGqYB5XlhEacS3wx1hMW9nisNwhgp1HRnyZz3spL8jxdZWdEJ9uw7dlwat0Lnqm TUBVA19DxHhUl24p017QM0vwT/tgnSGKXviJqSQeXKxV5VcvJeaWXiqPBo0YNkL0QCoA e5nQ== X-Gm-Message-State: AHYfb5j5cOMRTD2S+UpWpkziCH1Kg0K4rzbZghsKKe4HGc3FWxUm5ABW L+uo21ai74yziQ== X-Received: by 10.223.170.140 with SMTP id h12mr11961576wrc.79.1502522715646; Sat, 12 Aug 2017 00:25:15 -0700 (PDT) Received: from ben.home (LFbn-1-6951-179.w90-116.abo.wanadoo.fr. [90.116.132.179]) by smtp.gmail.com with ESMTPSA id c13sm3221508wrc.7.2017.08.12.00.25.14 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 12 Aug 2017 00:25:14 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: ZFS: Device names in a raidz1 pool after changing controllers From: Ben RUBSON In-Reply-To: Date: Sat, 12 Aug 2017 09:25:15 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <5562B8AA-5A76-4ECB-8224-CFE1A8CA954B@gmail.com> References: <6976A8FF-994C-48D3-99B1-2181CD15C94C@distal.com> <20170811062459.GA30374@hell.ukr.net> To: Chris Ross , Freebsd fs 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: Sat, 12 Aug 2017 07:25:19 -0000 > On 12 Aug 2017, at 05:32, Chris Ross wrote: >=20 >=20 >> On Aug 11, 2017, at 02:24 , Vitalij Satanivskij = wrote: >>=20 >>=20 >> Hello >>=20 >> for disabling diskid >> kern.geom.label.disk_ident.enable=3D"0" >>=20 >> same for gptid >> kern.geom.label.gptid.enable=3D"0" >>=20 >> same for gpt label >> kern.geom.label.gpt.enable=3D"0" >>=20 >> In /boot/loader.conf >>=20 >> Just choose how you prefer >>=20 >> And if tank isn't boot pool you can export and import with -d option = to choose which naming of devices to use (eg /dev/gpt /dev/diskid etc) >=20 > Okay. I thought I would try this last bit. However, only the first = two disks (still ada0 and ada1) list partitions in /dev/gpt, because I = just used the entirety of the other two disks I guess. And, only the = other two disks have shown up in /dev/diskid. (nb, later research shows = the other disks when I run =E2=80=9Cgpart list=E2=80=9D, but they have = =E2=80=9C(null)" labels, as do their one partitions) >=20 > So, "import -d /dev/gpt=E2=80=9D doesn=E2=80=99t find anything = (because none of tank=E2=80=99s disks are there), and =E2=80=9Cimport -d = /dev/diskid=E2=80=9D finds the same as it configured automatically, with = ada1p4 and the two diskid=E2=80=99s. Only /dev/gptid does what you = describe above, where it lists all three by gptid, but I would prefer = not to do that atm. >=20 > I was hoping to get =E2=80=9Cada1p4=E2=80=9D =E2=80=9Cd0p1=E2=80=9D = and =E2=80=9Cd1p1=E2=80=9D. If I ls /dev, I see: >=20 > # ls -l /dev/ada* /dev/da* > crw-r----- 1 root operator 0x5f Aug 11 01:20 /dev/ada0 > crw-r----- 1 root operator 0x60 Aug 11 01:20 /dev/ada0p1 > crw-r----- 1 root operator 0x61 Aug 11 01:20 /dev/ada0p2 > crw-r----- 1 root operator 0x62 Aug 11 01:20 /dev/ada0p3 > crw-r----- 1 root operator 0x64 Aug 11 01:20 /dev/ada1 > crw-r----- 1 root operator 0x6b Aug 11 01:20 /dev/ada1p1 > crw-r----- 1 root operator 0x6c Aug 11 01:20 /dev/ada1p2 > crw-r----- 1 root operator 0x6d Aug 11 01:20 /dev/ada1p3 > crw-r----- 1 root operator 0x6e Aug 11 01:20 /dev/ada1p4 > crw-r----- 1 root operator 0x65 Aug 11 01:20 /dev/da0 > crw-r----- 1 root operator 0x70 Aug 11 23:20 /dev/da0p1 > crw-r----- 1 root operator 0x66 Aug 11 01:20 /dev/da1 > crw-r----- 1 root operator 0x76 Aug 11 23:20 /dev/da1p1 >=20 >=20 > So I=E2=80=99d think it would work, but, both =E2=80=9Czpool = import=E2=80=9D and =E2=80=9Czpool import -d /dev=E2=80=9D both show = tank as: >=20 > tank ONLINE > raidz1-0 ONLINE > ada1p4 ONLINE > diskid/DISK-WOL240261932p1 ONLINE > diskid/DISK-WOL240261922p1 ONLINE >=20 >=20 > Let me know if there=E2=80=99s something else I can try. Otherwise, = I may just try putting gpt labels on the other partitions. But, I have = more controller swapping soon, so it=E2=80=99s mostly just informational = at the moment. Hello, Try adding -o cachefile=3Dnone to the import command. As you mention, you should however add labels to your disks and make ZFS = import them by label. ada/da may not be consistent over reboot, so label are a much better way = to quickly identify (failed) disks. Ben