From owner-freebsd-stable@FreeBSD.ORG Sat Dec 29 03:35:18 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6037CA78 for ; Sat, 29 Dec 2012 03:35:18 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by mx1.freebsd.org (Postfix) with ESMTP id C2C288FC0C for ; Sat, 29 Dec 2012 03:35:17 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id ep20so1695129lab.18 for ; Fri, 28 Dec 2012 19:35:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=T533R3nMUYf5tVJGZwklvMTj2++kiXCU0jNmwkQE4j4=; b=USZS5GtyOL/1j8YQrdo5yWmquIZruglaNa6N77YdIQz5zA2trge8SBMKLhvGefka2B f1reIzEwMR29BBQsHFREUPm4v3C0mjPrEsnoJMe9pDNRaQRvJtN5BeRN//3QlMTk470W cocEVHbvLRVK6vtqiJc6Wn920PoLaciKm06uol5/j4eafK1H+sIqDTaSk+oIqGKF/GBU NMhd0fNaiBYeLePriWIqObjFNLjCR1dxWhAynbaI0FDYzqsTUioxNrKV5o+fd+tW6Opp JJvJHvZG6i7RvoFXGtMcapBaFZshGvc9fuytUphsTHzhzvsg25t6IyM3zJaM2Esq04qW 4/Kw== MIME-Version: 1.0 Received: by 10.112.23.234 with SMTP id p10mr14413169lbf.35.1356752116305; Fri, 28 Dec 2012 19:35:16 -0800 (PST) Sender: artemb@gmail.com Received: by 10.112.80.103 with HTTP; Fri, 28 Dec 2012 19:35:16 -0800 (PST) In-Reply-To: References: Date: Fri, 28 Dec 2012 19:35:16 -0800 X-Google-Sender-Auth: HlyCRPGOe87meoa4J1d04UQ1nPk Message-ID: Subject: Re: how to destroy zfs parent filesystem without destroying children - corrupted file causing kernel panick From: Artem Belevich To: Greg Bonett Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2012 03:35:18 -0000 On Fri, Dec 28, 2012 at 12:46 PM, Greg Bonett wrote: > However, I can't figure out how to destroy the /tank filesystem without > destroying /tank/tempfs (and the other /tank children). Is it possible to > destroy a parent without destroying the children? Or, create a new parent > zfs file system on the same zpool and move the /tank children there before > destroying /tank? > It is possible in case parent is not the top-most zfs filesystem (i.e tomp-most filesystem for the pool). I.e. if your zfs filesystem layout looked like zfs-pool/tank/tempfs, then you could simply do "zfs rename zfs-pool/tank/tempfs zfs-pool/tempfs" and then would be free to remove zfs-pool/tank. Alas this rename semantics breaks down when you can no longer rename sub-filesystem upward. I don't think ZFS would allow you to promote inner filesystem to a pool which is what you seem to want. --Artem