From owner-freebsd-questions@FreeBSD.ORG Tue Dec 2 01:02:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A43E1065672 for ; Tue, 2 Dec 2008 01:02:36 +0000 (UTC) (envelope-from fatalis.erratum@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 5945D8FC13 for ; Tue, 2 Dec 2008 01:02:36 +0000 (UTC) (envelope-from fatalis.erratum@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1102890yxb.13 for ; Mon, 01 Dec 2008 17:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=oOu4bdlLh58QUKec8sB97L9qCm4U+KU8jFGIRuQNDDA=; b=syKZToTSmgFVsu04aPCo22/S3+9pEbCZuf2FYCLLkCBzshrP0YHFyblCRljwu+jehu xUq4fxZV4HcmDoNbqe3j6PVJy9E6ihbE4Ji1jUeu0b6r0q28GHUaEfsN5Gfmv3w93cCr ed1bwSqQ8XaPN7H+ClFdMtED8cy5YuolUWPv4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=ed6Rmz4R0Z/3/cQ/D/dBa5riDFNwupV5MMPJmA1Zsg7LDJ9JHHHn3ftc6+Qz4tCXOV isnJpdZl3oFWHfVWj66wTVUTPGtmWaHoYhquN8yiF9dIOsZQC4sgJZRRorq5GUg9rtQ8 t3bn4w1d5I0DXJsenPQY3h2/lHi/ocAuG787Y= Received: by 10.64.185.18 with SMTP id i18mr12238592qbf.81.1228178176082; Mon, 01 Dec 2008 16:36:16 -0800 (PST) Received: by 10.64.233.2 with HTTP; Mon, 1 Dec 2008 16:36:16 -0800 (PST) Message-ID: <5b826e210812011636l71dc6d05n25a14acdd24b396d@mail.gmail.com> Date: Tue, 2 Dec 2008 02:36:16 +0200 From: "Reinis Ivanovs" Sender: fatalis.erratum@gmail.com To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 12a072d9ff3b72f3 Subject: Reversing a ZFS mistake X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2008 01:02:36 -0000 Hello, It seems I've made a mistake using ZFS, and now my /usr/local/ is empty. I wanted to create a snapshot of a directory inside of it, so I ran "zfs create tank/usr/local" and "zfs create tank/usr/local/www" as I had seen in the guides I'd been using. That worked, but the filesystems created were empty. As I found out later, doing what I did on Solaris would have created the filesystems but not mounted them, but on FreeBSD they were mounted automatically, and the previous contents hidden. The question now is, how do I get my files back? The system is crippled without /usr/local/ and I can't unmount or destroy it, because it says that the device is busy. Any help would be appreciated. R. -- http://untu.ms/