@bingo600 said in Fun with zfs , snapshots and rollback:
zpool set listsnapshots=on zroot
Just made a snapshot on version 2.5.2
Since Netgate changed the zfs root-name from zroot to pfSense
On the new 2.5.2 CE version. And made some other zfs changes.
I decided to make a full reinstall of my "boxes", booting from a 2.5.2 USB stick , and reinstalling from scratch.
This is the new layout on my boxes
root: zfs list
NAME USED AVAIL REFER MOUNTPOINT
pfSense 1.02G 222G 96K /pfSense
pfSense/ROOT 800M 222G 96K none
pfSense/ROOT/default 800M 222G 800M /
pfSense/cf 5.58M 222G 96K /cf
pfSense/cf/conf 5.48M 222G 5.48M /cf/conf
pfSense/home 212K 222G 212K /home
pfSense/tmp 476K 222G 476K /tmp
pfSense/var 228M 222G 3.37M /var
pfSense/var/cache 120K 222G 120K /var/cache
pfSense/var/db 223M 222G 223M /var/db
pfSense/var/empty 96K 222G 96K /var/empty
pfSense/var/log 880K 222G 880K /var/log
pfSense/var/tmp 136K 222G 136K /var/tmp
I just ran the above commands with the new zfs root , names pfSense
zfs list
zpool set listsnapshots=on pfSense
zfs snapshot -r pfSense@2.5.2
Here's the layout after the snapshot.
/root: zfs list
NAME USED AVAIL REFER MOUNTPOINT
pfSense 1.02G 222G 96K /pfSense
pfSense@2.5.2 0 - 96K -
pfSense/ROOT 800M 222G 96K none
pfSense/ROOT@2.5.2 0 - 96K -
pfSense/ROOT/default 800M 222G 800M /
pfSense/ROOT/default@2.5.2 0 - 800M -
pfSense/cf 5.58M 222G 96K /cf
pfSense/cf@2.5.2 0 - 96K -
pfSense/cf/conf 5.48M 222G 5.48M /cf/conf
pfSense/cf/conf@2.5.2 0 - 5.48M -
pfSense/home 212K 222G 212K /home
pfSense/home@2.5.2 0 - 212K -
pfSense/tmp 476K 222G 476K /tmp
pfSense/tmp@2.5.2 0 - 476K -
pfSense/var 230M 222G 3.37M /var
pfSense/var@2.5.2 0 - 3.37M -
pfSense/var/cache 120K 222G 120K /var/cache
pfSense/var/cache@2.5.2 0 - 120K -
pfSense/var/db 225M 222G 223M /var/db
pfSense/var/db@2.5.2 1.78M - 223M -
pfSense/var/empty 96K 222G 96K /var/empty
pfSense/var/empty@2.5.2 0 - 96K -
pfSense/var/log 952K 222G 880K /var/log
pfSense/var/log@2.5.2 72K - 880K -
pfSense/var/tmp 136K 222G 136K /var/tmp
pfSense/var/tmp@2.5.2 0 - 136K -
I haven't played with restore etc. yet, but expect it to behave as above.
We might (will) have to take the new partitions made in 2.5.2 into consideration.
/Bingo