ZFS ZFS snapshots

Hm.. I think I didn’t understand the snapshot option. I created a snapshot with bectl create default@aug28 and thought I could roll back if i messed up my default BE. Didn’t work. ‘zfs rollback default@aug28 gave me an error message about ‘dataset does not exist’. So how do i create a snapshot to be on the safe side and be able to rollback to my BE the weary it was before i messed things up? Or do i have to create a new BE for this?
 
‘zfs rollback default@aug28 gave me an error message about ‘dataset does not exist’.
Although BEs created with bectl(8) or sysutils/beadm appear in zfs list -t snapshot you should use the bectl activate command instead of zfs rollback. Might be more easier with the tools than managing BEs with zfs snapshot yourself even though its possible.

Or do i have to create a new BE for this?
Thats how it works. Create a new BE and acivate it. If something goes wrong with security patches simply activate the former BE. So you need at least 2 BEs. BTW, this is also applicable for package upgrades since zpool/usr partition isn't mounted by default and therefore the files in /usr and /usr/local are in your boot environment.
 
Back
Top