From owner-freebsd-fs@FreeBSD.ORG Tue Apr 22 09:49:28 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DAE0059A for ; Tue, 22 Apr 2014 09:49:28 +0000 (UTC) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CECA1CED for ; Tue, 22 Apr 2014 09:49:28 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WcXKQ-0007rN-Ha for freebsd-fs@freebsd.org; Tue, 22 Apr 2014 11:49:26 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-fs@freebsd.org Subject: Re: ZFS unable to import pool References: Date: Tue, 22 Apr 2014 11:49:25 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, BAYES_40 autolearn=disabled version=3.3.2 X-Scan-Signature: 22b714be0c51703cd3047a81d17f7b3c X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2014 09:49:28 -0000 On Mon, 21 Apr 2014 21:29:27 +0200, Gena Guchin = wrote: > Hello FreeBSD users, > > my appologies for reposting, but I'd really need your help! > > > 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=E2=80=99= t 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. > > > > > #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 > > #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: > > storage UNAVAIL missing device > raidz1-0 DEGRADED > ada3 ONLINE > ada4 ONLINE > ada5 ONLINE > ada6 ONLINE > 248348789931078390 UNAVAIL cannot open > cache > ada1s2 > logs > ada1s1 ONLINE > > Additional devices are known to be part of this pool, though th= eir > exact configuration cannot be determined. > > > # zpool list > NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT > zroot 920G 17.9G 902G 1% 1.00x ONLINE - > > # zpool upgrade > This system supports ZFS pool feature flags. > > All pools are formatted using feature flags. > > Every feature flags pool has all supported features enabled. > > # zfs upgrade > This system is currently running ZFS filesystem version 5. > > All filesystems are formatted with the current version. > > > Thanks a lot! Does FreeBSD see the disk? Is it in /dev/ada2 (or another number)? If FreeBSD does not know anything about the disk, ZFS can't either. A = reboot or some fiddling (partitioning?) with GEOM might make the disk = reappear. Ronald.