From owner-freebsd-fs@freebsd.org Fri May 27 07:36:31 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB4ADB4C082 for ; Fri, 27 May 2016 07:36:31 +0000 (UTC) (envelope-from blackcatzilla@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 88CE418C9 for ; Fri, 27 May 2016 07:36:31 +0000 (UTC) (envelope-from blackcatzilla@gmail.com) Received: by mail-ig0-x22d.google.com with SMTP id ww4so103486036igb.1 for ; Fri, 27 May 2016 00:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=os73k/z/pWMqqQ21UciM2zS24PEJUVjet1JJ4JPlLLg=; b=ncNvQWCjawgp1CCjq9D6xBTdAPjPOztW7b9zgWfXmhZPZkImPCUr70LBneb3uG90tm y3XmQkV+SVWeNhf6IcFJo94w5VexKtAlnCl0FNeCK+oa/EpyClqcnwqJlElHQnQnkiUA 50Hd6zYXW3cVNBFPkO7dPTh9yInBG+Zqwm/P9XS9tLq47Jrh5IOpGDiYoJJnl8m4KSXE awLTmnnERJ2HlN7CukF7Q7gfF2OZtdbt+xu7W+yVHxann53YlXf4ShB7CjnYGwFpY34n bdr+V6dCz0K/3wB4wG38H04m2SJCX/DCPWYAphAulOcrxUDI+ZidYBLL0+F2V56Qjojs 32qQ== 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:cc; bh=os73k/z/pWMqqQ21UciM2zS24PEJUVjet1JJ4JPlLLg=; b=ge4YiG/pFcukQiHHqlBmfW8Oe4mLZJNNRDqpkcVwj0wTiuxzlIhRG2lhrICpZUVpqy U5BQcHH/EdKpoQGUk4ZtaCtLoKBMtzouzjc0vdM76WD81/GGvvE6PxZxJGYIB8NRl0jI IiXWL0fbZ4VlI6lP8z7RbNDFH1xFLuoaKVbt/mWm8Bz8L3nL12XARonqvRSYreesPVcV 1Lcq35awdHlMNhQ+sx8bprgAPTia/xsWMnyg5QwrgdKD0IjwFvl/bQ8RxmjykUaL4wY8 jZKz9qeZTlXbJWsf1iIV5IPHrk56+3gVLk7pi+usptd+CIw4siFBGA9WKvHkR2XMhFf1 Qyvw== X-Gm-Message-State: ALyK8tJrQ1trf+7ZlpEt0DkMH+DV4/6I9eaZTGmPOmyjA+nWE6llc3673KM7i59h3o59KR2P5yv/FUcmss92Fw== X-Received: by 10.50.50.204 with SMTP id e12mr6600930igo.86.1464334590572; Fri, 27 May 2016 00:36:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.46.201 with HTTP; Fri, 27 May 2016 00:36:11 -0700 (PDT) In-Reply-To: <5747780A.5000809@gmail.com> References: <5747780A.5000809@gmail.com> From: BlackCat Date: Fri, 27 May 2016 10:36:11 +0300 Message-ID: Subject: Re: ZFS - RAIDZ1 Recovery To: esamorokov Cc: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 07:36:31 -0000 Hello Evgeny, 2016-05-27 1:26 GMT+03:00 esamorokov : > I have 3 x 3TB in RAIDZ1, where one drive is gone and I accidentally > screwed the other two. The data should be fine, just need to revert > uberblock in point of time, where i started doing changes. > try the following command, it just checks whether is possible to import your pool by discarding some of the most recent writes): # zpool import -fFn 2918670121059000644 zh_vol_old Because you have already created a new pool with the same name as old, this command import pool by it ID (2918670121059000644) with new name (zh_vol_old). > History: > I was using WEB GUI of FreeNas and it reported a failed drive > I shutdown the computer and replaced the drive, but I did not noticed > that I accidentally disconnected power of another drive > I powered on the server and expanded the pool where there only one drive > of the pool was active As far as I understand attached log, zfs assumes that disk data corrupted. But this is quite stranger, since zfs normally survives if you forget to attach some disk during bad disk replacement. > Then I began to really learn ZFS and messing up with bits > At some point I created a backup bit-to-bit images of the two drives > from the pool (using R-Studio) > The question of curiosity: do you experimenting now with copies or with original disks? > > Specs: > OS: FreeBSD 9.2-RELEASE (FREENAS.amd64) #0 r+2315ea3: Fri Dec 20 > 12:48:50 PST 2013 > RAID: [root@juicy] ~# camcontrol devlist > at scbus1 target 0 lun 0 (pass1,ada1) > at scbus2 target 0 lun 0 (ada2,pass2) > at scbus3 target 0 lun 0 (pass3,ada3) > [root@juicy] ~# zdb > zh_vol: > version: 5000 > name: 'zh_vol' > state: 0 > txg: 14106447 > pool_guid: 2918670121059000644 > hostid: 1802987710 > hostname: '' > vdev_children: 1 > vdev_tree: > type: 'root' > id: 0 > guid: 2918670121059000644 > create_txg: 4 > children[0]: > type: 'raidz' > id: 0 > guid: 14123440993587991088 > nparity: 1 > metaslab_array: 34 > metaslab_shift: 36 > ashift: 12 > asize: 8995321675776 > is_log: 0 > create_txg: 4 > children[0]: > type: 'disk' > id: 0 > guid: 17624020450804741401 > path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587' > whole_disk: 1 > DTL: 137 > create_txg: 4 > children[1]: > type: 'disk' > id: 1 > guid: 3253299067537287428 > path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587' > whole_disk: 1 > DTL: 133 > create_txg: 4 > children[2]: > type: 'disk' > id: 2 > guid: 17999524418015963258 > path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587' > whole_disk: 1 > DTL: 134 > create_txg: 4 > features_for_read: -- BR BC