From owner-freebsd-fs@FreeBSD.ORG Wed Jul 10 06:26:53 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A27294E2 for ; Wed, 10 Jul 2013 06:26:53 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id EF35316EB for ; Wed, 10 Jul 2013 06:26:52 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA01190; Wed, 10 Jul 2013 09:26:48 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1UwnrU-000HW6-3v; Wed, 10 Jul 2013 09:26:48 +0300 Message-ID: <51DCFE70.90302@FreeBSD.org> Date: Wed, 10 Jul 2013 09:25:52 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130708 Thunderbird/17.0.7 MIME-Version: 1.0 To: Adam Nowacki , jiansong.liu@gmail.com Subject: Re: zpool import -D failed, "guid mismatch for provider /dev/da#:" References: <51DCDC6C.2020205@platinum.linux.pl> In-Reply-To: <51DCDC6C.2020205@platinum.linux.pl> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 06:26:53 -0000 on 10/07/2013 07:00 Adam Nowacki said the following: > It fails because of a check at > http://fxr.watson.org/fxr/source/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c?im=10#L272 > > state == POOL_STATE_DESTROYED will be true and no config will be read, then > http://fxr.watson.org/fxr/source/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c?im=10#L445 > returns 0 for guid. > > removing that check should make the pool importable And this has already been fixed in head. > On 2013-07-10 05:03, Jiansong Liu wrote: >> Hi All, >> >> I destroyed a pool and try to recovery with the "zpool import" command >> failed and it says have no pool to import, then I realized that I >> missed the "-D", so I run the command "zpool import -D", now it says >> UNAVAIL, the pool has six vdev (da0 da1 da2 da3 da5 da6) original: >> >> # zpool import -D >> pool: storage >> id: 8511691845980256432 >> state: UNAVAIL (DESTROYED) >> 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: >> >> storage UNAVAIL insufficient replicas >> raidz2-0 UNAVAIL insufficient replicas >> 8368872959405194221 UNAVAIL cannot open >> 16925320148488343503 UNAVAIL cannot open >> 2721065418012152096 UNAVAIL cannot open >> 1488947662741999881 UNAVAIL cannot open >> 16956133848943560671 UNAVAIL cannot open >> 7236613667503893647 UNAVAIL cannot open >> >> Every time I run the "zpool import -D", the zfs debug will output a >> error for every vdev member, seems the vdev returned a wrong guid: >> >> vdev_geom_open_by_path:550[1]: Found provider by name /dev/da6. >> vdev_geom_attach:97[1]: Attaching to da6. >> vdev_geom_attach:118[1]: Created geom and consumer for da6. >> vdev_geom_read_config:243[1]: Reading config from da6... >> vdev_geom_detach:158[1]: Closing access to da6. >> vdev_geom_detach:162[1]: Destroyed consumer to da6. >> vdev_geom_detach:170[1]: Destroyed geom zfs::vdev. >> vdev_geom_open_by_path:562[1]: guid mismatch for provider /dev/da6: >> 7236613667503893647 != 0. >> vdev_geom_open_by_guid:518[1]: Searching by guid [7236613667503893647]. >> vdev_geom_read_config:243[1]: Reading config from da4s1g... >> vdev_geom_read_config:243[1]: Reading config from da4s1f... >> vdev_geom_read_config:243[1]: Reading config from da4s1e... >> vdev_geom_read_config:243[1]: Reading config from da4s1d... >> vdev_geom_read_config:243[1]: Reading config from da4s1b... >> vdev_geom_read_config:243[1]: Reading config from da4s1a... >> vdev_geom_read_config:243[1]: Reading config from da4s1... >> vdev_geom_read_config:243[1]: Reading config from da6... >> vdev_geom_read_config:243[1]: Reading config from da5... >> vdev_geom_read_config:243[1]: Reading config from da4... >> vdev_geom_read_config:243[1]: Reading config from da3... >> vdev_geom_read_config:243[1]: Reading config from da2... >> vdev_geom_read_config:243[1]: Reading config from da1... >> vdev_geom_read_config:243[1]: Reading config from da0... >> vdev_geom_open_by_guid:532[1]: Search by guid [7236613667503893647] failed. >> vdev_geom_open:617[1]: Provider /dev/da6 not found. >> >> the system version is 9-STABLE r250636 >> any comment and advice are appreciated, thanks in advance. >> >> >> Best regards, >> Jiansong Liu >> _______________________________________________ >> 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" >> > > _______________________________________________ > 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" > -- Andriy Gapon