Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2014 17:06:20 -0700
From:      Gena Guchin <ggulchin@icloud.com>
To:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   Fwd: ZFS unable to import pool
Message-ID:  <AC00E63C-E532-4D5A-9417-2286E592EBF1@icloud.com>
References:  <17405F3F-D209-40B5-85A1-01AB94DC54BE@icloud.com>

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


Begin forwarded message:

> From: Gena Guchin <ggulchin@icloud.com>
> Subject: Re: ZFS unable to import pool
> Date: April 21, 2014 at 3:18:43 PM PDT
> To: Hakisho Nukama <nukama@gmail.com>
>=20
> Hakisho,=20
>=20
> this is weird, while I do not see ONLINE next to cache device ada1s2, =
it is the same device as logs ada1s1, just different slice.
> I tried to see the difference between zfs labels on that device.
>=20
>=20
> [gena@ggulchin]-pts/0:57# zdb -l /dev/ada1s2
> --------------------------------------------
> LABEL 0
> --------------------------------------------
>    version: 5000
>    state: 4
>    guid: 7108193965515577889
> --------------------------------------------
> LABEL 1
> --------------------------------------------
>    version: 5000
>    state: 4
>    guid: 7108193965515577889
> --------------------------------------------
> LABEL 2
> --------------------------------------------
>    version: 5000
>    state: 4
>    guid: 7108193965515577889
> --------------------------------------------
> LABEL 3
> --------------------------------------------
>    version: 5000
>    state: 4
>    guid: 7108193965515577889
> [gena@ggulchin]-pts/0:58# zdb -l /dev/ada1s1
> --------------------------------------------
> LABEL 0
> --------------------------------------------
>    version: 5000
>    name: 'storage'
>    state: 1
>    txg: 14792113
>    pool_guid: 11699153865862401654
>    hostid: 3089874380
>    hostname: 'ggulchin.homeunix.com'
>    top_guid: 15354816574459194272
>    guid: 15354816574459194272
>    is_log: 1
>    vdev_children: 3
>    vdev_tree:
>        type: 'disk'
>        id: 1
>        guid: 15354816574459194272
>        path: '/dev/ada1s1'
>        phys_path: '/dev/ada1s1'
>        whole_disk: 1
>        metaslab_array: 125
>        metaslab_shift: 27
>        ashift: 9
>        asize: 16100884480
>        is_log: 1
>        DTL: 137
>        create_txg: 10478480
>    features_for_read:
> --------------------------------------------
> LABEL 1
> --------------------------------------------
>    version: 5000
>    name: 'storage'
>    state: 1
>    txg: 14792113
>    pool_guid: 11699153865862401654
>    hostid: 3089874380
>    hostname: 'ggulchin.homeunix.com'
>    top_guid: 15354816574459194272
>    guid: 15354816574459194272
>    is_log: 1
>    vdev_children: 3
>    vdev_tree:
>        type: 'disk'
>        id: 1
>        guid: 15354816574459194272
>        path: '/dev/ada1s1'
>        phys_path: '/dev/ada1s1'
>        whole_disk: 1
>        metaslab_array: 125
>        metaslab_shift: 27
>        ashift: 9
>        asize: 16100884480
>        is_log: 1
>        DTL: 137
>        create_txg: 10478480
>    features_for_read:
> --------------------------------------------
> LABEL 2
> --------------------------------------------
>    version: 5000
>    name: 'storage'
>    state: 1
>    txg: 14792113
>    pool_guid: 11699153865862401654
>    hostid: 3089874380
>    hostname: 'ggulchin.homeunix.com'
>    top_guid: 15354816574459194272
>    guid: 15354816574459194272
>    is_log: 1
>    vdev_children: 3
>    vdev_tree:
>        type: 'disk'
>        id: 1
>        guid: 15354816574459194272
>        path: '/dev/ada1s1'
>        phys_path: '/dev/ada1s1'
>        whole_disk: 1
>        metaslab_array: 125
>        metaslab_shift: 27
>        ashift: 9
>        asize: 16100884480
>        is_log: 1
>        DTL: 137
>        create_txg: 10478480
>    features_for_read:
> --------------------------------------------
> LABEL 3
> --------------------------------------------
>    version: 5000
>    name: 'storage'
>    state: 1
>    txg: 14792113
>    pool_guid: 11699153865862401654
>    hostid: 3089874380
>    hostname: 'ggulchin.homeunix.com'
>    top_guid: 15354816574459194272
>    guid: 15354816574459194272
>    is_log: 1
>    vdev_children: 3
>    vdev_tree:
>        type: 'disk'
>        id: 1
>        guid: 15354816574459194272
>        path: '/dev/ada1s1'
>        phys_path: '/dev/ada1s1'
>        whole_disk: 1
>        metaslab_array: 125
>        metaslab_shift: 27
>        ashift: 9
>        asize: 16100884480
>        is_log: 1
>        DTL: 137
>        create_txg: 10478480
>    features_for_read:
>=20
>=20
> does this mean SSD drive is corrupted?
> is my pool lost forever?
>=20
> thanks!
>=20
>=20
> On Apr 21, 2014, at 2:24 PM, Hakisho Nukama <nukama@gmail.com> wrote:
>=20
>> Hi Gena,
>>=20
>> there are several options to import a pool, which might work.
>> It looks like only one device is missing in raidz1, so the pool
>> could be importable, if the cache device is also available.
>> Try to connect it back, this can cause an non-importable pool.
>>=20
>> Try reading the zpool man page and investigate into following flags:
>> zpool import -F -o readonly=3Don
>>=20
>> Best Regards,
>> Nukama
>>=20
>> On Mon, Apr 21, 2014 at 7:29 PM, Gena Guchin <ggulchin@icloud.com> =
wrote:
>>> Hello FreeBSD users,
>>>=20
>>> my appologies for reposting, but I'd really need your help!
>>>=20
>>>=20
>>> I have this huge problem with my ZFS server. I have accidentally =
formatted one of the drives in exported ZFS pool. and now I can=92t =
import the pool back. this is extremely important pool for me. device =
that is missing is still attached to the system. Any help would be =
greatly appreciated.
>>>=20
>>>=20
>>>=20
>>>=20
>>> #uname -a
>>> FreeBSD XXX 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 =
22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC =
 amd64
>>>=20
>>> #zpool import
>>> pool: storage
>>>   id: 11699153865862401654
>>> state: UNAVAIL
>>> status: One or more devices are missing from the system.
>>> action: The pool cannot be imported. Attach the missing
>>>      devices and try again.
>>> see: http://illumos.org/msg/ZFS-8000-6X
>>> config:
>>>=20
>>>      storage                 UNAVAIL  missing device
>>>        raidz1-0              DEGRADED
>>>          ada3                ONLINE
>>>          ada4                ONLINE
>>>          ada5                ONLINE
>>>          ada6                ONLINE
>>>          248348789931078390  UNAVAIL  cannot open
>>>      cache
>>>        ada1s2
>>>      logs
>>>        ada1s1                ONLINE
>>>=20
>>>      Additional devices are known to be part of this pool, though =
their
>>>      exact configuration cannot be determined.
>>>=20
>>>=20
>>> # zpool list
>>> NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
>>> zroot   920G  17.9G   902G     1%  1.00x  ONLINE  -
>>>=20
>>> # zpool upgrade
>>> This system supports ZFS pool feature flags.
>>>=20
>>> All pools are formatted using feature flags.
>>>=20
>>> Every feature flags pool has all supported features enabled.
>>>=20
>>> # zfs upgrade
>>> This system is currently running ZFS filesystem version 5.
>>>=20
>>> All filesystems are formatted with the current version.
>>>=20
>>>=20
>>> Thanks a lot!
>>>=20
>>> =97 Gena
>>> _______________________________________________
>>> freebsd-fs@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
>>> To unsubscribe, send any mail to =
"freebsd-fs-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AC00E63C-E532-4D5A-9417-2286E592EBF1>