From owner-freebsd-fs@freebsd.org Sat Aug 12 03:32:48 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 6D40CDDD7A9 for ; Sat, 12 Aug 2017 03:32:48 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254:10::4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.pix.net", Issuer "Pix.Com Technologies LLC CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F039A70A8D for ; Sat, 12 Aug 2017 03:32:47 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail.distal.com (mail.distal.com [IPv6:2001:470:e24c:200:0:0:0:ae25]) (authenticated bits=0) by hydra.pix.net (8.16.0.19/8.15.2) with ESMTPSA id v7C3WaG0067989 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Aug 2017 23:32:44 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Received: from magrathea.distal.com (magrathea.distal.com [IPv6:2001:470:e24c:200:ea06:88ff:feca:960e]) (authenticated bits=0) by mail.distal.com (8.15.2/8.15.2) with ESMTPSA id v7C3WY7S085338 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Aug 2017 23:32:35 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Content-Type: multipart/signed; boundary="Apple-Mail=_21154BD9-E6CD-41C7-A7A7-9C57D2804300"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: ZFS: Device names in a raidz1 pool after changing controllers From: Chris Ross In-Reply-To: <20170811062459.GA30374@hell.ukr.net> Date: Fri, 11 Aug 2017 23:32:24 -0400 Cc: freebsd-fs@freebsd.org Message-Id: References: <6976A8FF-994C-48D3-99B1-2181CD15C94C@distal.com> <20170811062459.GA30374@hell.ukr.net> To: Vitalij Satanivskij X-Mailer: Apple Mail (2.3124) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.distal.com [IPv6:2001:470:e24c:200:0:0:0:ae25]); Fri, 11 Aug 2017 23:32:35 -0400 (EDT) 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 03:32:48 -0000 --Apple-Mail=_21154BD9-E6CD-41C7-A7A7-9C57D2804300 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 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) 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) 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. 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: # 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 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: tank ONLINE raidz1-0 ONLINE ada1p4 ONLINE diskid/DISK-WOL240261932p1 ONLINE diskid/DISK-WOL240261922p1 ONLINE 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. Thanks=E2=80=A6 - Chris --Apple-Mail=_21154BD9-E6CD-41C7-A7A7-9C57D2804300 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJZjnbRAAoJEPFBDnXvoNg0eewP/35KuXJS5PekF8A+3OEWjTS5 8aZi2cnYf+RNCzMHtYrxwThq+zGsH23f42Q/JaME5Nx/l+f/n17ut6dzeZ5WuvZU 70Uhx3CyCGJ9EEVrKQbEKIdZ87fmnycd2ZDkkAi2J1Aff5IVydBFiTWQbcSQWCBg zDic4V5GaI4C9zJ6AjVcAf8SdtBBpDWIHZloSJaIEZzWh3VhdDL98MoJVTel53// AO+05eI6UFkpusU81tBNnSJBi1CJAibTzLt3RpjogBRLVeYRdZQYmC9D+weKQkIk fVEuFqVPP6nxDA6kegObMkIK+RKFdIBq3nH231mpf/+yYRNHTWtvEKQpCyMAwEmA AeCg9b9g9t/iycHA+JPuWq8rc8xNIqrfbctU+YJms4tKbVoYB9ZPQ2xpS9NGVrHB uWEN6fS4INvaCva3KWdAOcBNv5k0UECIj+lavdHKsxF3V0Ahej62M/tAmCLjBgtx f4iS2MZRZLSPPA8cUg1pyDVRLpZpMDMooSdowivJGEnAqX7kKpzybZLh35v9O8cO 2DqBytVwU961ayJGURqpWUuU8t5oyQz70HPlQO8YHjWPpum16LSpGu6snva4JJfx ztCtGbl2lUSOXoG4bp0HzzqQlxAO37qrvSGxq5rjv8Gu9wiSaCJs94AdJ0+GGbkP 00OZDxdAbQwNbgKrKSEz =njqq -----END PGP SIGNATURE----- --Apple-Mail=_21154BD9-E6CD-41C7-A7A7-9C57D2804300--