Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2016 12:54:51 +0200
From:      Ben RUBSON <ben.rubson@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   Re: ZFS does not correctly import by label
Message-ID:  <2B3ED90E-8659-49F4-BAE4-624724D2FA10@gmail.com>
In-Reply-To: <39AA40F6-1387-4A1D-857D-C43F03FDC240@gmail.com>
References:  <39AA40F6-1387-4A1D-857D-C43F03FDC240@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> On 16 Aug 2016, at 11:09, Ben RUBSON <ben.rubson@gmail.com> wrote:
>=20
> Hello,
>=20
> Sounds like ZFS does not correctly import cache and spares by label.
>=20
> Example :
>=20
> # zpool add home cache label/G12000KU2RVJAch
> # zpool add home spare label/G1207PFGPTKDXhm=20
> # zpool status home
>  (...)
>  home                       ONLINE       0     0     0
>    mirror-0                 ONLINE       0     0     0
>      label/G1203PGGLJWZXhm  ONLINE       0     0     0
>      label/G1204PHKXHJ2Xhm  ONLINE       0     0     0
>  (...)
>  logs
>    mirror-2                 ONLINE       0     0     0
>      label/G12000KU2RVJAlg  ONLINE       0     0     0
>      label/G12010KU22RVAlg  ONLINE       0     0     0
>  (...)
>  cache
>    label/G12000KU2RVJAch    ONLINE       0     0     0
>  spares
>    label/G1207PFGPTKDXhm    AVAIL
>=20
> # zpool export home
> # zpool import -d /dev/label/ home
> # zpool status home
>  (...)
>  home                       ONLINE       0     0     0
>    mirror-0                 ONLINE       0     0     0
>      label/G1203PGGLJWZXhm  ONLINE       0     0     0
>      label/G1204PHKXHJ2Xhm  ONLINE       0     0     0
>  (...)
>  logs
>    mirror-2                 ONLINE       0     0     0
>      label/G12000KU2RVJAlg  ONLINE       0     0     0
>      label/G12010KU22RVAlg  ONLINE       0     0     0
>  (...)
>  cache
>    da5p7                    ONLINE       0     0     0
>  spares
>    da4p1                    AVAIL
>=20
> # uname -v
> FreeBSD 10.3-RELEASE-p7 #0: Thu Aug 11 18:38:15 UTC 2016     =
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC=20

I just tested my pool under FreeBSD 11-RC1, the issue does not occur, =
cache and spares are correctly imported by label.
Could it be possible to backport required changes to 10.3 ?

Many thanks !

Ben




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2B3ED90E-8659-49F4-BAE4-624724D2FA10>