From owner-freebsd-questions@FreeBSD.ORG Wed Jan 29 08:04:36 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 52ED3BE6 for ; Wed, 29 Jan 2014 08:04:36 +0000 (UTC) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DF1901CEA for ; Wed, 29 Jan 2014 08:04:35 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id l18so7543048wgh.5 for ; Wed, 29 Jan 2014 00:04:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=uAMMSxzN6jP9Pv2xuRu8QHzueTv0yqIYuzheKfoifCQ=; b=USXyo1XTmPK86+6wFucjXHWdX2Y8xjv4xsMGCaVXK3TdKHWgP9zwzpUBBtIusnVAjw ddVPZcWvJmnBPdrLEJX0hufxFtP17Vdezwj7GWNk/FDsxsIcYXiCN18FgezmRuCSi2Q+ QNl3/uo4PioODwtMZ4CNqL1kSQujKCz0UyxnnQZ5lnQ75I53LqhM816WcLva0GiINggy lqyMXSLd5+H6D3f+vY9IvbWVmF3lcZtEELKx69kxYWzH5AT+nX1j8Wh7ZGbmAPQTOJhG nmA2PKMYgoDDdnrdutW/wlGA2t4E2Aq9eDRFJ7iWYJMUh7TJKbOt1D+GBRPaEQMYh9tz X8pQ== X-Received: by 10.194.179.69 with SMTP id de5mr3958796wjc.4.1390982674070; Wed, 29 Jan 2014 00:04:34 -0800 (PST) Received: from [10.0.2.15] (LNantes-156-74-19-50.w82-127.abo.wanadoo.fr. [82.127.90.50]) by mx.google.com with ESMTPSA id uq2sm3019653wjc.5.2014.01.29.00.04.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Jan 2014 00:04:33 -0800 (PST) Message-ID: <52E8B610.6060204@gmail.com> Date: Wed, 29 Jan 2014 09:04:32 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Question about zfs snapshots and clones Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jan 2014 08:04:36 -0000 Hello there, I have a question about snapshots and clones. I created a template dataset and snapshot for creating new jails. I call it tank/jails/template and tank/jails/template@1. So we have: tank/jails/template@1 tank/jails/A (origin template@1) tank/jails/B (origin template@1) Now, I wanted to upgrade the template and create a new snapshot @2. Then I would like to destroy the @1 because it will not be used to create new jails. Because it's the parent of A and B I needed to promote them and there is the thing that I didn't understand. I thought that promote was a way to `detach' the children of a parent so that jails lives on their own but it's not actually what I expected. zfs promote on tank/jails/A and tank/jails/B gave me unexpected results. I got my tank/jails/template@1 renamed to something like tank/jails/B@1 and the origin of tank/jails/A has been set to the latest IIRC. So, I'm guessing that promote is not actually what I wanted, how should I release the jails origin so they are completely free and I can destroy the oldest template snapshot? Regards, -- David Demelier