From owner-freebsd-questions@freebsd.org Fri Feb 23 07:52:26 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4778F03F6D for ; Fri, 23 Feb 2018 07:52:26 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 637F071BD7 for ; Fri, 23 Feb 2018 07:52:26 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1519372348; x=1521964348; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info; bh=ELIvecefoGSni8tHk2yJ1AFCxsTeanhc+YG3kgEqYJc=; b=svJuakuPISaZEsvkGOev25pKCwy0T8aTnDyhc9l0etH4h6zM8PNmBfyRH8EN9JvcA4mFNOZpqLqrpvubXsnY87silGEBPlb4kPWkImXgzTW/+bAS3CClflTBVjWYBKLxnwTvrwxuscvhHKGhh6MaYNCp51TEuaFk5RdvxdwyNco= X-Thread-Info: NDI1MC4xMi45MjAwMDAwMDE1YTQ0NC5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r4.us-east.aws.in.socketlabs.com (r4.us-east.aws.in.socketlabs.com [52.5.202.82]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 23 Feb 2018 02:52:14 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.us-east.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 23 Feb 2018 02:52:11 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90 (FreeBSD)) (envelope-from ) id 1ep89J-000JUP-RX; Fri, 23 Feb 2018 07:52:09 +0000 Date: Fri, 23 Feb 2018 07:52:09 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Cc: byrnejb@harte-lyne.ca Subject: Re: Resetting zfs snapshots Message-Id: <20180223075209.5dd437a91cd3429b3604de0d@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2018 07:52:27 -0000 On Thu, 22 Feb 2018 16:29:58 -0500 "James B. Byrne via freebsd-questions" wrote: > I am in the process of setting up a new FreeBSD server which involves > transferring a large amount of data onto. The system was installed > with root zfs and snapshots were initialised immediately. > > Several iterations of test data transfer and deletes has now resulted > in snapshots exceeding 64 Gb. I wish to effectively restart/rebase > snapshots following the final transfer and eliminate all previous > ones. I use this to delete all snapshots when I want to clean them up. zfs list -H -o name -t snapshot | xargs -n1 zfs destroy -- Steve O'Hara-Smith