Re: delete zfs and snapshots from upgrade process?
- In reply to: ft : "delete zfs and snapshots from upgrade process?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Aug 2024 21:44:22 UTC
On 8/25/24 02:05, ft wrote: > Hello, > > I have make an upgrade from 13.1 to 14.1. > uname -a > FreeBSD ftc 14.1-RELEASE-p3 FreeBSD 14.1-RELEASE-p3 GENERIC amd64 > > Everything works fine. > > My question: > There are some zfs and some snapshots. Can I destroy them or are they > required? If the data is important, make sure your backups are in order. If worried about making undoable changes, create a pool checkpoint; `man zpoolconcepts` for details about checkpoints. If you are using ZFS boot environments (it looks like you are), those switchable states are created by snapshotting the relevant datasets and then turning the snapshot into a clone. Which ones are safe to remove should be determined by paying attention to the 'Active' field when listing them (bectl or sysutils/beadm). Your boot environment manager has commands to destroy boot environments; read its manpage to see if you also need to tell it to clean up a corresponding snapshot. Otherwise, snapshots are not needed as long as they do not have your only copy of data you need (accidental overwrite, delete, etc). If you perform a `zpool upgrade` then newer pool features may also break the ability to boot older setups; sometimes you can install sysutils/openzfs to bring a newer version than was included with base to further improve the compatibility range; easiest done before the pool upgrade. Removing snapshots removes the ability to use it as a reference point for an incremental replication (zfs send+recv). FreeBSD does not depend on those snapshots for its current operation. > Here is the list: > zfs: > zroot/ROOT/13.1-RELEASE-p9_2023-08-27_201128 > zroot/ROOT/13.1-RELEASE_2023-08-27_195317 > zroot/ROOT/13.2-RELEASE-p12_2024-08-24_192252 > zroot/ROOT/13.2-RELEASE-p2_2023-08-27_223329 > zroot/ROOT/13.2-RELEASE-p2_2024-08-24_185205 > zroot/ROOT/14.1-RELEASE-p3_2024-08-24_192543 > snapshots: > zroot/ROOT/default@2023-08-27-19:53:17-0 > zroot/ROOT/default@2023-08-27-20:11:28-0 > zroot/ROOT/default@2023-08-27-22:33:29-0 > zroot/ROOT/default@2024-08-24-18:52:05-0 > zroot/ROOT/default@2024-08-24-19:22:52-0 > zroot/ROOT/default@2024-08-24-19:25:43-0 > > Franz > >