Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2013 20:28:49 +0200
From:      Johan Hendriks <joh.hendriks@gmail.com>
To:        "sbruno@freebsd.org" <sbruno@freebsd.org>
Cc:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: How do we clear a bogus zpool?
Message-ID:  <CAOaKuAVuJXf-Ceuh0Z4ToLtCc2D%2BBTVEabcVNWK=vktKjqoQcQ@mail.gmail.com>
In-Reply-To: <1377015858.1450.3.camel@localhost>
References:  <1377015858.1450.3.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Op dinsdag 20 augustus 2013 schreef Sean Bruno (sean_bruno@yahoo.com):

> I've managed to create a situation where I have a completely bogus zpool
> showing up on my system.  There seems to be no way to wipe this out?
>
> # zpool import
>    pool: zroot
>      id: 854190767471294680
>   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-3C
>  config:
>
>         zroot                     UNAVAIL  insufficient replicas
>           raidz1-0                UNAVAIL  insufficient replicas
>             17925463268209287656  UNAVAIL  cannot open
>             11020448220822113890  UNAVAIL  corrupted data
>             10143858893287711942  UNAVAIL  corrupted data
>             7542790596970715955   UNAVAIL  corrupted data
>             10811885036534933813  UNAVAIL  corrupted data
>             13343774937261906429  UNAVAIL  corrupted data
>
> # zpool destroy -f zroot
> cannot open 'zroot': no such pool
> # zpool clear -F zroot
> cannot open 'zroot': no such pool
>
>
> Sean
>
>
There is a label clear option for zpool
# zpool labelclear devicename
It will wipe ALL labels, and not only zpool/zfs labels.

Gr
Johan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOaKuAVuJXf-Ceuh0Z4ToLtCc2D%2BBTVEabcVNWK=vktKjqoQcQ>