From owner-freebsd-fs@FreeBSD.ORG Sun Apr 27 17:17:26 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 04F26D10 for ; Sun, 27 Apr 2014 17:17:26 +0000 (UTC) Received: from mail-yh0-f50.google.com (mail-yh0-f50.google.com [209.85.213.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B9309C56 for ; Sun, 27 Apr 2014 17:17:25 +0000 (UTC) Received: by mail-yh0-f50.google.com with SMTP id b6so2584836yha.9 for ; Sun, 27 Apr 2014 10:17:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=sFQCj9i42iHBiX2X11swISKZ2KKJFfWvbmruzJ+sekg=; b=UVP09mk0PVsTZK7K5KJkuxN1L0ZBSl6wAG0lWuEBlnZWWVp27Rr8gAs5YHo/CWxs8O T3RvtyXdLiAS9N0MXdGFkRUjWjKeIVrawxP5FS73TE/COwc5aMadoWWTt/Cch/GzLbhv UFsswR5+KjV07orpyq7+G2uRNoYOisO6hw8fLQZBqfwrJg/HXKxj4RG9cMWgfe+IOtUm Chupgo32IcRuIAjbA7ssL5kK+MlCMq+mNpymLNChSv+gpScZvRZLBqbICRVkNduzSF+q 8cc7pgPWc/DjZhu3FlkVqc3eZIcNHKuqo/FZhOdsb9W53541VQUYNiJ5KsPXdg2sgLHp 428g== X-Gm-Message-State: ALoCoQmBOSHxCghGkHmalxn5/0yLmq3jdVrr4t4UCUTfkfMNP0Dsj8Fl3ykYv58c6Mp6bNREXrpo X-Received: by 10.236.41.165 with SMTP id h25mr2012432yhb.126.1398617294246; Sun, 27 Apr 2014 09:48:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.170.159.212 with HTTP; Sun, 27 Apr 2014 09:47:53 -0700 (PDT) X-Originating-IP: [67.10.123.128] In-Reply-To: References: <6DACDF6E-E1ED-49C0-975C-A91F68EA8840@icloud.com> From: Wes Morgan Date: Sun, 27 Apr 2014 11:47:53 -0500 Message-ID: Subject: Re: ZFS unable to import pool To: Gena Guchin , freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Sun, 27 Apr 2014 17:17:26 -0000 You stated before that all you did was zero the first sector of the drive, you should still be able to recover this. I would make an image of the drive first, and then try copying one of the backup labels over the corrupted ones. On Thu, Apr 24, 2014 at 4:40 AM, Ronald Klop wrote: > On Tue, 22 Apr 2014 18:36:48 +0200, Gena Guchin > wrote: > > Ronald, >> >> system does see the disk, ada7, in this case. Nothing has been >> disconnected from the system. >> >> what steps do you suggest I take with GEOM? >> > > As I read the rest of the discussion I don't think this will help you. > People with more knowledge about ZFS have already explained a lot of your > problem. > > Ronald. > > > > >> >> thanks! >> >> >> On Apr 22, 2014, at 2:49 AM, Ronald Klop wrote: >> >> 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'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 their >>>> 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. >>> _______________________________________________ >>> 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" >