Date: Fri, 11 Aug 2017 23:32:24 -0400 From: Chris Ross <cross+freebsd@distal.com> To: Vitalij Satanivskij <satan@ukr.net> Cc: freebsd-fs@freebsd.org Subject: Re: ZFS: Device names in a raidz1 pool after changing controllers Message-ID: <B6533FEB-D5F8-4C00-943B-FE6B4E9E38D5@distal.com> In-Reply-To: <20170811062459.GA30374@hell.ukr.net> References: <6976A8FF-994C-48D3-99B1-2181CD15C94C@distal.com> <20170811062459.GA30374@hell.ukr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <satan@ukr.net> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B6533FEB-D5F8-4C00-943B-FE6B4E9E38D5>
