Date: Sat, 28 Mar 2020 11:19:21 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-current@freebsd.org Cc: Graham Perrin <grahamperrin@gmail.com> Subject: Re: ZFS: destroying snapshots without compromising boot environments Message-ID: <1c2b71fa-b25c-21d4-2115-ddb3d7b129b2@freebsd.org> In-Reply-To: <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com> References: <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --q9qqlRXHnqCpZ00izS58VdX9AJ9vWQZAa Content-Type: multipart/mixed; boundary="2G6d4ZqVaO9DxYGQDQAC3R7x6XjPcYGFZ"; protected-headers="v1" From: Allan Jude <allanjude@freebsd.org> To: freebsd-current@freebsd.org Cc: Graham Perrin <grahamperrin@gmail.com> Message-ID: <1c2b71fa-b25c-21d4-2115-ddb3d7b129b2@freebsd.org> Subject: Re: ZFS: destroying snapshots without compromising boot environments References: <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com> In-Reply-To: <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com> --2G6d4ZqVaO9DxYGQDQAC3R7x6XjPcYGFZ Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2020-03-28 03:24, Graham Perrin wrote: > I imagine that some of the 2019 snapshots below are redundant. >=20 > Can I safely destroy any of them? >=20 > $ zfs list -t snapshot > NAME=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 USED AVAIL=C2=A0 > REFER=C2=A0 MOUNTPOINT > copperbowl/ROOT/Waterfox@2020-03-20-06:19:45=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 67.0M -=C2=A0 59.2G=C2=A0 - > copperbowl/ROOT/r359249b@2019-08-18-04:04:53=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5.82G -=C2=A0 40.9G=C2=A0 - > copperbowl/ROOT/r359249b@2019-08-18-11:28:31=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4.32G -=C2=A0 40.7G=C2=A0 - > copperbowl/ROOT/r359249b@2019-09-13-18:45:27-0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 9.43G -=C2=A0 43.4G=C2=A0 - > copperbowl/ROOT/r359249b@2019-09-19-20:03:26=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5.13G -=C2=A0 43.3G=C2=A0 - > copperbowl/ROOT/r359249b@2019-09-24-20:45:59-0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 7.67G -=C2=A0 44.6G=C2=A0 - > copperbowl/ROOT/r359249b@2020-01-09-17:05:57-0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 7.66G -=C2=A0 55.2G=C2=A0 - > copperbowl/ROOT/r359249b@2020-01-11-14:15:47=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7.41G -=C2=A0 56.2G=C2=A0 - > copperbowl/ROOT/r359249b@2020-03-17-21:57:17=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 12.0G -=C2=A0 59.2G=C2=A0 - > copperbowl/iocage/releases/12.0-RELEASE/root@jbrowsers=C2=A0=C2=A0=C2=A0= =C2=A0 8K -=C2=A0 1.24G=C2=A0 - > copperbowl/poudriere/jails/head@clean=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 328K -=C2=A0 1.89G=C2=A0 - > $ beadm list > BE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint=C2=A0 Space Cr= eated > Waterfox -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 12.2G 2020-03-10 18:24 > r357746f -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1.3G 2020-03-20 06:19 > r359249b NR=C2=A0=C2=A0=C2=A0=C2=A0 /=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 148.9G 2020-03-28 01:19 > $ beadm list -aDs > BE/Dataset/Snapshot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint=C2=A0 > Space Created >=20 > Waterfox > =C2=A0 copperbowl/ROOT/Waterfox=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - 137.0M > 2020-03-10 18:24 > =C2=A0=C2=A0=C2=A0 r359249b@2020-03-17-21:57:17=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = - -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 59.2G > 2020-03-17 21:57 > =C2=A0 copperbowl/ROOT/Waterfox@2020-03-20-06:19:45=C2=A0=C2=A0 - -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 67.0M > 2020-03-20 06:19 >=20 > r357746f > =C2=A0 copperbowl/ROOT/r357746f=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 - -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 1.2G > 2020-03-20 06:19 > =C2=A0=C2=A0=C2=A0 Waterfox@2020-03-20-06:19:45=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = - -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 59.2G > 2020-03-20 06:19 >=20 > r359249b > =C2=A0 copperbowl/ROOT/r359249b@2019-08-18-04:04:53=C2=A0=C2=A0 - -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5.8G > 2019-08-18 04:04 > =C2=A0 copperbowl/ROOT/r359249b@2019-08-18-11:28:31=C2=A0=C2=A0 - -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4.3G > 2019-08-18 11:28 > =C2=A0 copperbowl/ROOT/r359249b@2019-09-13-18:45:27-0 - -=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9.4G > 2019-09-13 18:45 > =C2=A0 copperbowl/ROOT/r359249b@2019-09-19-20:03:26=C2=A0=C2=A0 - -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5.1G > 2019-09-19 20:03 > =C2=A0 copperbowl/ROOT/r359249b@2019-09-24-20:45:59-0 - -=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7.7G > 2019-09-24 20:45 > =C2=A0 copperbowl/ROOT/r359249b@2020-01-09-17:05:57-0 - -=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7.7G > 2020-01-09 17:05 > =C2=A0 copperbowl/ROOT/r359249b@2020-01-11-14:15:47=C2=A0=C2=A0 - -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7.4G > 2020-01-11 14:15 > =C2=A0 copperbowl/ROOT/r359249b@2020-03-17-21:57:17=C2=A0=C2=A0 - -=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 12.0G > 2020-03-17 21:57 > =C2=A0 copperbowl/ROOT/r359249b=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 NR /=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 59.0G > 2020-03-28 01:19 > $ >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" You can try to destroy the snapshot, if it is the basis of a clone, then you will get an error, that you'd need to destroy the BE first, so you might decide to keep that snapshot. As long as you don't use the -R flag to zfs destroy dataset@snapshot, it will not destroy the clones. You can also use 'zfs promote' to make the clone into the parent, making the original parent into the clone. This allows you to destroy that original and the snapshot while keeping the clone. --=20 Allan Jude --2G6d4ZqVaO9DxYGQDQAC3R7x6XjPcYGFZ-- --q9qqlRXHnqCpZ00izS58VdX9AJ9vWQZAa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJef2r5AAoJEBmVNT4SmAt+MPcP/jGCOfLA0BQwWf6TOUu4M22U 8wbfUSbSPpw+I3BrJf8UOEmhuwmJF69mF+P+/kfmzLtyxkZx0Q0RtllOzH7/g6jn R/u3D1z/QmPT9RXyr4glbECRWf4UFq913jMQh3oojqFFLa/G9OS9TRkDF+nP4yd9 HTs+V5J0g2Cjv7ZiL1MFad5DPYtZUlMImmrKuaLwtkEw5CEQIyHrA6EDDQUvhq+l mCLeSb7ijXaPiq/zunNWBEYAJ+jzyPpqYh1BNTZuclVcnMGKRWrQIzy9JmP7hDN4 CX+8lxkjteEc/ASLwpmZk2is6k08t/1gHq9LYXRhiesRFQWh1y7im5pqzO341uxb ZaOnGPDPKTzAlonorw369DPikJ8HVvsutlW8XvlVr3ph0M+CKtA6Gkz/lzlC76sq hQsCjBwAZX8pS0DRdi/DggCXfjGrxehy3jja1VJf36o1PZXDnbfSPIlsLVBIN8IJ mlwmxnHI3zdQm1lgFi08v0Jc+7XUux7XjkgNysR2s7SaNuKXnbO2+/e4ydI/oXWW TYn1I20WPYKrtwZCf2ffDJnQtM63IsFfg6hkwCcWSrUprKT7QxeWVOtJck8Adj0X kpjuP2ULqgbAKE3tP2cAELXjth2NjYQzo22wkJcCUe6Zo6sD6c2DiTachvHb5E8S jdwc44GDRr770k71rjiQ =GK7M -----END PGP SIGNATURE----- --q9qqlRXHnqCpZ00izS58VdX9AJ9vWQZAa--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1c2b71fa-b25c-21d4-2115-ddb3d7b129b2>