From owner-freebsd-current@freebsd.org Sat Mar 28 11:26:40 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5FC6F2789B4 for ; Sat, 28 Mar 2020 11:26:40 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48qGd80Stvz3GGV for ; Sat, 28 Mar 2020 11:26:19 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by mail-ed1-x529.google.com with SMTP id cf14so14707921edb.13 for ; Sat, 28 Mar 2020 04:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sg48IdkpIlEGbGjV7I0sBugSaRs17pvcx0ogapg6JQA=; b=u9zLrVYyg83UmSMz6w1bMLl5EiR2CJSGOsNemBhlBKbl3j0W5NRgSjksNa89eNBl1l Vh1UaSwcAG1Tvgnz1xvNwRtnABClNrfX/1wg1lBT37F2sOr4nC08k2neTVRZs5mdwDhc UbzfcpMVUJteB53a09BO4jKX3z/62qpKfrJ+T2KSWEzl8u0eWkxPnw/hVKfFI0BPQTXa EJz4AG6PSGU3D8lO3CxR9DPiZQlakuFWELZ75nNOVcs4UyLToOX0arBf27iMpmahQMdx 9QcQ8+4Ootna4VlWjgxfJ5dNW7DAg12dNPUvmTTsKl8evRnB+9pUaPNEgcmYAk+ShVB8 O7jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sg48IdkpIlEGbGjV7I0sBugSaRs17pvcx0ogapg6JQA=; b=NgG8ERs177EPRo/7KxhPbXvZVC/4/dzwY+bTJ2VwT1IhaJFuD/R+FtcQxQ9GJXAOkV +acimP45wGryCVAZEuoXZcIF3vM5f59/ZS9y1y34MHh/47NEQC/tdVdHyC8iP6HsZ2YC JsgG8UcNuCDbHgGetcRvXNbvRJ0jOYkXZSNKsrIJrnBYJcmlz57nAJ1tSxiQKho4AWsY GQ5yYs1qpd7bbLoTAT569062EtQl5mg8vd++gee9mg/QHbecLFriIP8ndgJS9Jowq7Qb oX3POQS0tqFisD08ApWK6d9PezwUznr/BIQuJYwA6oIOYFcb7wtKHJqrULb22uflJuO6 1CUw== X-Gm-Message-State: ANhLgQ0OTl8AVhYN1Oth4hg3kE7gdqR6gK9Jf2kXyioS2uX21B+hZh0N ofjj2yTQTLZ2x1vVKIGVIEfd/305GXDac2Xa6o6GtbHC X-Google-Smtp-Source: ADFU+vsgRpZV7edxCwy+1i6uHiEIcT7MBE0CeKJGs2JmKAu8BQkTZuvvJ65ZnvD//tAJ+sD8qpWUS7aqzaaxVEVrS3I= X-Received: by 2002:adf:d0cb:: with SMTP id z11mr4495237wrh.1.1585394284301; Sat, 28 Mar 2020 04:18:04 -0700 (PDT) MIME-Version: 1.0 References: <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com> In-Reply-To: <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com> From: Andrey Fesenko Date: Sat, 28 Mar 2020 14:17:53 +0300 Message-ID: Subject: Re: ZFS: destroying snapshots without compromising boot environments To: Graham Perrin Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 48qGd80Stvz3GGV X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=u9zLrVYy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of f0andrey@gmail.com designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=f0andrey@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[9.2.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-9.59), ipnet: 2a00:1450::/32(-2.38), asn: 15169(-0.47), country: US(-0.05)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2020 11:26:40 -0000 On Sat, Mar 28, 2020 at 10:30 AM Graham Perrin wrote: > > I imagine that some of the 2019 snapshots below are redundant. > > Can I safely destroy any of them? > > $ zfs list -t snapshot > NAME USED AVAIL > REFER MOUNTPOINT > copperbowl/ROOT/Waterfox@2020-03-20-06:19:45 67.0M - 59.2G - > copperbowl/ROOT/r359249b@2019-08-18-04:04:53 5.82G - 40.9G - > copperbowl/ROOT/r359249b@2019-08-18-11:28:31 4.32G - 40.7G - > copperbowl/ROOT/r359249b@2019-09-13-18:45:27-0 9.43G - 43.4G - > copperbowl/ROOT/r359249b@2019-09-19-20:03:26 5.13G - 43.3G - > copperbowl/ROOT/r359249b@2019-09-24-20:45:59-0 7.67G - 44.6G - > copperbowl/ROOT/r359249b@2020-01-09-17:05:57-0 7.66G - 55.2G - > copperbowl/ROOT/r359249b@2020-01-11-14:15:47 7.41G - 56.2G - > copperbowl/ROOT/r359249b@2020-03-17-21:57:17 12.0G - 59.2G - > copperbowl/iocage/releases/12.0-RELEASE/root@jbrowsers 8K - 1.24G - > copperbowl/poudriere/jails/head@clean 328K - 1.89G - > $ beadm list > BE Active Mountpoint Space Created > Waterfox - - 12.2G 2020-03-10 18:24 > r357746f - - 1.3G 2020-03-20 06:19 > r359249b NR / 148.9G 2020-03-28 01:19 > $ beadm list -aDs > BE/Dataset/Snapshot Active Mountpoint > Space Created > > Waterfox > copperbowl/ROOT/Waterfox - - 137.0M > 2020-03-10 18:24 > r359249b@2020-03-17-21:57:17 - - 59.2G > 2020-03-17 21:57 > copperbowl/ROOT/Waterfox@2020-03-20-06:19:45 - - 67.0M > 2020-03-20 06:19 > > r357746f > copperbowl/ROOT/r357746f - - 1.2G > 2020-03-20 06:19 > Waterfox@2020-03-20-06:19:45 - - 59.2G > 2020-03-20 06:19 > > r359249b > copperbowl/ROOT/r359249b@2019-08-18-04:04:53 - - 5.8G > 2019-08-18 04:04 > copperbowl/ROOT/r359249b@2019-08-18-11:28:31 - - 4.3G > 2019-08-18 11:28 > copperbowl/ROOT/r359249b@2019-09-13-18:45:27-0 - - 9.4G > 2019-09-13 18:45 > copperbowl/ROOT/r359249b@2019-09-19-20:03:26 - - 5.1G > 2019-09-19 20:03 > copperbowl/ROOT/r359249b@2019-09-24-20:45:59-0 - - 7.7G > 2019-09-24 20:45 > copperbowl/ROOT/r359249b@2020-01-09-17:05:57-0 - - 7.7G > 2020-01-09 17:05 > copperbowl/ROOT/r359249b@2020-01-11-14:15:47 - - 7.4G > 2020-01-11 14:15 > copperbowl/ROOT/r359249b@2020-03-17-21:57:17 - - 12.0G > 2020-03-17 21:57 > copperbowl/ROOT/r359249b NR / 59.0G > 2020-03-28 01:19 > $ beadm destroy ? ;)