From owner-freebsd-fs@freebsd.org Sun Jun 28 15:37:59 2015 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 E5A9398FE53 for ; Sun, 28 Jun 2015 15:37:59 +0000 (UTC) (envelope-from johan.ponin.pro@gmail.com) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::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 72B29151B for ; Sun, 28 Jun 2015 15:37:59 +0000 (UTC) (envelope-from johan.ponin.pro@gmail.com) Received: by lacny3 with SMTP id ny3so100322920lac.3 for ; Sun, 28 Jun 2015 08:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Yun7BDK33aVVxpAGyo19b5VOu3W8oTphK5Rlbjp9Qj4=; b=VVOC+qGtXxxOWxJOS69qo5SWqzgK3XkLfxVAaqQRGZLqQGFVeSiv2O/9IfM6nq54Nf MvMsn6oNgojm3psmM01v2JPFJGHvjO8hyento9+Xgsc3V7SK1tyE+GdTaFi1ZBRYb+fC OXszXwKpWZQ8iRJvmE4K8jfR2KRrKs6E1uSPNp5j0q8oXYfiiLjeVz5gGTv8D4dToRMF 9mSVIUtzf5c7/rh+xibtPibq2mgU9/wY4ekEK5VEXUdf09abW+dyNlA7MiAA6/PJseQ2 pG04hLU0qqNxbtEfNMB7G2EZ22cFzpZCl1KRn7Bh1/sz2bY3CMYol9GfQ/CKlUY+rSJB mcbA== MIME-Version: 1.0 X-Received: by 10.112.186.35 with SMTP id fh3mr10146229lbc.82.1435505877291; Sun, 28 Jun 2015 08:37:57 -0700 (PDT) Received: by 10.152.29.35 with HTTP; Sun, 28 Jun 2015 08:37:57 -0700 (PDT) Date: Sun, 28 Jun 2015 17:37:57 +0200 Message-ID: Subject: Lost pool after nas4free configuration asynchrony. [x-post] From: Johan PONIN To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 15:38:00 -0000 pre-disclaimer, I sent this onto zfs-discuss before realizing it was a zfsonlinux ML, so I'm copying the mail here. Hi, Disclaimer, this is my first NAS, I barely know FreeBSD, have a computer engineer degree though and archlinux as a daily driver. Consider this a mostly PEBCAK story. I hope you'll read through nonetheless. Setup - NAS4Free from a 4GB usbkey on HP N54L. - 3x1TB WD Red as a vdev - 1 pool, 1 dataset, raidz (single parity AFAICR). The usbkey failed, nas4free config was lost. I `dd` it onto a new 8GB usbkey, boot and got to the console to reset factory config to gain access to the webgui (I remember doing that once causing no issue with the zfs pools and datasets) The webgui showed no more pool/dataset, but running /etc/rc.d/zfs start mounted everything fine. zfs scrub reported no errors. Data was there, a few `less /mnt/../file` showing good data. Trying to recreate the pool config in the gui to avoid mounting by hand, I got some errors, but the GUI told me it detected a pool config, offered to synchronize but I was afraid not knowing in what direction it would do it. I removed the pool I created. Pool and dataset still accessible. I reboot, try a second time the "same" thing. But now the new pool is validated, the old pool isn't detected, and I got an empty dataset. I tried some commands (shouldn't have, idiocy). That said, I didn't add data to this new pool/dataset, and so I'm hoping the actual zfs object graph is intact. Of course I don't know how deep 'zpool ...' commands change things, that might be very naive of me. What options are there ? Could I copy the 3 1TB blocks onto another drive and attempt some form of uberblock scan ? Thanks in advance for your time. ps: what are other knowledgeable people ? freebsd-fs ML ? I have read George Wilson's name but it seems impolite.