ZFS snapshot - rollback problem
Ludovit Koren
ludovit.koren at gmail.com
Thu Sep 10 15:08:29 UTC 2020
On Thursday, September 10, 2020, Christoph Brinkhaus <
c.brinkhaus at t-online.de> wrote:
> On Thu, Sep 10, 2020 at 04:18:39PM +0200, Ludovit Koren wrote:
> > Hi,
> >
> > I have the following configuration:
> >
> > ~>uname -a
> > FreeBSD XxX 11.3-STABLE FreeBSD 11.3-STABLE #1 r354607: Mon Nov 11
> > 12:19:28 CET 2019 root at jedi:/usr/obj/usr/src/sys/HP amd64
> > ~>zfs list
> > NAME USED AVAIL REFER MOUNTPOINT
> > zroot 244G 0 10.7G /mnt
> > zroot/Centos8 6.80G 4.13G 2.67G -
> > zroot/msw7 44.9G 25.8G 19.1G -
> > zroot/swapdisk0 40.8G 20.6G 20.2G -
> > zroot/usr 131G 0 50.9G /usr
> > zroot/usr/home 80.1G 0 80.1G /usr/home
> > zroot/var 9.94G 0 9.94G /var
> >
> > After zfs snapshot, which I did on the root, I got:
> > ~>zfs list -t snapshot
> > NAME USED AVAIL REFER MOUNTPOINT
> > zroot at 200909 1K - 10.7G -
> > zroot/Centos8 at 200909 1K - 2.67G -
> > zroot/msw7 at 200909 1K - 19.1G -
> > zroot/swapdisk0 at 200909 0 - 20.2G -
> > zroot/usr at 200909 1K - 50.9G -
> > zroot/usr/home at 200909 1K - 80.1G -
> > zroot/var at 200909 1K - 9.94G -
> >
> > i.e. whole filesystem is read only. I am not able to do neither
> > rollback, nor destroy of the snapshot. Is there any possibility to
> > reset the filesystem to the read-write mode?
>
> I do not see there if it is read only or not.
> To change the readyonly property:
> zfs set readonly=off
>
> Mount to make it effective:
> zfs mount -a
> >
> > Any help is greatly appreciated.
> I hope my notes are correct and help you.
>
> If it would be so easy... The problem is the snapshot is over the zfs root
file system. And on the snapshot I cannot change the property. Here are
options:
~>zfs get all
NAME PROPERTY VALUE SOURCE
zroot type filesystem -
zroot creation Mon May 27 23:30 2013 -
zroot used 244G -
zroot available 0 -
zroot referenced 10.7G -
zroot compressratio 1.00x -
zroot mounted yes -
zroot quota none default
zroot reservation none default
zroot recordsize 128K default
zroot mountpoint /mnt local
zroot sharenfs off default
zroot checksum fletcher4 local
zroot compression off default
zroot atime on default
zroot devices on default
zroot exec on default
zroot setuid on default
zroot readonly off local
zroot jailed off default
zroot snapdir hidden default
zroot aclmode discard default
zroot aclinherit restricted default
zroot createtxg 1 -
zroot canmount on default
zroot xattr off temporary
zroot copies 1 default
zroot version 5 -
zroot utf8only off -
zroot normalization none -
zroot casesensitivity sensitive -
zroot vscan off default
zroot nbmand off default
zroot sharesmb off default
zroot refquota none default
zroot refreservation none default
zroot guid 15663691137267636586 -
zroot primarycache all default
zroot secondarycache all default
zroot usedbysnapshots 1K -
zroot usedbydataset 10.7G -
zroot usedbychildren 234G -
zroot usedbyrefreservation 0 -
zroot logbias latency default
zroot dedup off default
zroot mlslabel -
zroot sync standard default
zroot refcompressratio 1.00x -
zroot written 1K -
zroot logicalused 193G -
zroot logicalreferenced 10.7G -
zroot volmode default default
zroot filesystem_limit none default
zroot snapshot_limit none default
zroot filesystem_count none default
zroot snapshot_count none default
zroot redundant_metadata all default
zroot at 200909 type snapshot -
zroot at 200909 creation Wed Sep 9 11:12 2020 -
zroot at 200909 used 1K -
zroot at 200909 referenced 10.7G -
zroot at 200909 compressratio 1.00x -
zroot at 200909 devices on default
zroot at 200909 exec on default
zroot at 200909 setuid on default
zroot at 200909 createtxg 20490195 -
zroot at 200909 xattr on default
zroot at 200909 version 5 -
zroot at 200909 utf8only off -
zroot at 200909 normalization none -
zroot at 200909 casesensitivity sensitive -
zroot at 200909 nbmand off default
zroot at 200909 guid 2206615480070071196 -
zroot at 200909 primarycache all default
zroot at 200909 secondarycache all default
zroot at 200909 defer_destroy off -
zroot at 200909 userrefs 0 -
zroot at 200909 mlslabel -
zroot at 200909 refcompressratio 1.00x -
zroot at 200909 written 10.7G -
zroot at 200909 clones -
zroot at 200909 logicalreferenced 10.7G -
zroot at 200909 volmode default default
zroot/Centos8 type volume -
zroot/Centos8 creation Thu Oct 31 14:12 2019 -
zroot/Centos8 used 6.80G -
zroot/Centos8 available 4.13G -
zroot/Centos8 referenced 2.67G -
zroot/Centos8 compressratio 1.00x -
zroot/Centos8 reservation none default
zroot/Centos8 volsize 4G local
zroot/Centos8 volblocksize 8K default
zroot/Centos8 checksum fletcher4
inherited from zroot
zroot/Centos8 compression off default
zroot/Centos8 readonly off
inherited from zroot
zroot/Centos8 createtxg 16467672 -
zroot/Centos8 copies 1 default
zroot/Centos8 refreservation 4.13G local
zroot/Centos8 guid 5814621169889103161 -
zroot/Centos8 primarycache all default
zroot/Centos8 secondarycache all default
zroot/Centos8 usedbysnapshots 1K -
zroot/Centos8 usedbydataset 2.67G -
zroot/Centos8 usedbychildren 0 -
zroot/Centos8 usedbyrefreservation 4.13G -
zroot/Centos8 logbias latency default
zroot/Centos8 dedup off default
zroot/Centos8 mlslabel -
zroot/Centos8 sync standard default
zroot/Centos8 refcompressratio 1.00x -
zroot/Centos8 written 1K -
zroot/Centos8 logicalused 2.66G -
zroot/Centos8 logicalreferenced 2.66G -
zroot/Centos8 volmode dev local
zroot/Centos8 snapshot_limit none default
zroot/Centos8 snapshot_count none default
zroot/Centos8 redundant_metadata all default
zroot/Centos8 at 200909 type snapshot -
zroot/Centos8 at 200909 creation Wed Sep 9 11:12 2020 -
zroot/Centos8 at 200909 used 1K -
zroot/Centos8 at 200909 referenced 2.67G -
zroot/Centos8 at 200909 compressratio 1.00x -
zroot/Centos8 at 200909 devices on default
zroot/Centos8 at 200909 exec on default
zroot/Centos8 at 200909 setuid on default
zroot/Centos8 at 200909 createtxg 20490195 -
zroot/Centos8 at 200909 xattr on default
zroot/Centos8 at 200909 nbmand off default
zroot/Centos8 at 200909 guid 10823844225552088614 -
zroot/Centos8 at 200909 primarycache all default
zroot/Centos8 at 200909 secondarycache all default
zroot/Centos8 at 200909 defer_destroy off -
zroot/Centos8 at 200909 userrefs 0 -
zroot/Centos8 at 200909 mlslabel -
zroot/Centos8 at 200909 refcompressratio 1.00x -
zroot/Centos8 at 200909 written 2.67G -
zroot/Centos8 at 200909 clones -
zroot/Centos8 at 200909 logicalreferenced 2.66G -
zroot/Centos8 at 200909 volmode dev
inherited from zroot/Centos8
zroot/msw7 type volume -
zroot/msw7 creation Thu Feb 22 15:19 2018 -
zroot/msw7 used 44.9G -
zroot/msw7 available 25.8G -
zroot/msw7 referenced 19.1G -
zroot/msw7 compressratio 1.00x -
zroot/msw7 reservation none default
zroot/msw7 volsize 25G local
zroot/msw7 volblocksize 8K default
zroot/msw7 checksum fletcher4
inherited from zroot
zroot/msw7 compression off default
zroot/msw7 readonly off
inherited from zroot
zroot/msw7 createtxg 10775012 -
zroot/msw7 copies 1 default
zroot/msw7 refreservation 25.8G local
zroot/msw7 guid 16581387537923661645 -
zroot/msw7 primarycache all default
zroot/msw7 secondarycache all default
zroot/msw7 usedbysnapshots 1K -
zroot/msw7 usedbydataset 19.1G -
zroot/msw7 usedbychildren 0 -
zroot/msw7 usedbyrefreservation 25.8G -
zroot/msw7 logbias latency default
zroot/msw7 dedup off default
zroot/msw7 mlslabel -
zroot/msw7 sync standard default
zroot/msw7 refcompressratio 1.00x -
zroot/msw7 written 1K -
zroot/msw7 logicalused 19.0G -
zroot/msw7 logicalreferenced 19.0G -
zroot/msw7 volmode dev local
zroot/msw7 snapshot_limit none default
zroot/msw7 snapshot_count none default
zroot/msw7 redundant_metadata all default
zroot/msw7 at 200909 type snapshot -
zroot/msw7 at 200909 creation Wed Sep 9 11:12 2020 -
zroot/msw7 at 200909 used 1K -
zroot/msw7 at 200909 referenced 19.1G -
zroot/msw7 at 200909 compressratio 1.00x -
zroot/msw7 at 200909 devices on default
zroot/msw7 at 200909 exec on default
zroot/msw7 at 200909 setuid on default
zroot/msw7 at 200909 createtxg 20490195 -
zroot/msw7 at 200909 xattr on default
zroot/msw7 at 200909 nbmand off default
zroot/msw7 at 200909 guid 3899706450355491715 -
zroot/msw7 at 200909 primarycache all default
zroot/msw7 at 200909 secondarycache all default
zroot/msw7 at 200909 defer_destroy off -
zroot/msw7 at 200909 userrefs 0 -
zroot/msw7 at 200909 mlslabel -
zroot/msw7 at 200909 refcompressratio 1.00x -
zroot/msw7 at 200909 written 19.1G -
zroot/msw7 at 200909 clones -
zroot/msw7 at 200909 logicalreferenced 19.0G -
zroot/msw7 at 200909 volmode dev
inherited from zroot/msw7
zroot/swapdisk0 type volume -
zroot/swapdisk0 creation Mon Feb 13 11:03 2017 -
zroot/swapdisk0 used 40.8G -
zroot/swapdisk0 available 20.6G -
zroot/swapdisk0 referenced 20.2G -
zroot/swapdisk0 compressratio 1.00x -
zroot/swapdisk0 reservation none default
zroot/swapdisk0 volsize 20G local
zroot/swapdisk0 volblocksize 8K default
zroot/swapdisk0 checksum fletcher4
inherited from zroot
zroot/swapdisk0 compression off default
zroot/swapdisk0 readonly off
inherited from zroot
zroot/swapdisk0 createtxg 8265142 -
zroot/swapdisk0 copies 1 default
zroot/swapdisk0 refreservation 20.6G local
zroot/swapdisk0 guid 12592813906271140067 -
zroot/swapdisk0 primarycache all default
zroot/swapdisk0 secondarycache all default
zroot/swapdisk0 usedbysnapshots 0 -
zroot/swapdisk0 usedbydataset 20.2G -
zroot/swapdisk0 usedbychildren 0 -
zroot/swapdisk0 usedbyrefreservation 20.6G -
zroot/swapdisk0 logbias latency default
zroot/swapdisk0 dedup off default
zroot/swapdisk0 mlslabel -
zroot/swapdisk0 sync standard default
zroot/swapdisk0 refcompressratio 1.00x -
zroot/swapdisk0 written 0 -
zroot/swapdisk0 logicalused 20.1G -
zroot/swapdisk0 logicalreferenced 20.1G -
zroot/swapdisk0 volmode geom local
zroot/swapdisk0 snapshot_limit none default
zroot/swapdisk0 snapshot_count none default
zroot/swapdisk0 redundant_metadata all default
zroot/swapdisk0 at 200909 type snapshot -
zroot/swapdisk0 at 200909 creation Wed Sep 9 11:12 2020 -
zroot/swapdisk0 at 200909 used 0 -
zroot/swapdisk0 at 200909 referenced 20.2G -
zroot/swapdisk0 at 200909 compressratio 1.00x -
zroot/swapdisk0 at 200909 devices on default
zroot/swapdisk0 at 200909 exec on default
zroot/swapdisk0 at 200909 setuid on default
zroot/swapdisk0 at 200909 createtxg 20490195 -
zroot/swapdisk0 at 200909 xattr on default
zroot/swapdisk0 at 200909 nbmand off default
zroot/swapdisk0 at 200909 guid 6778261312202608185 -
zroot/swapdisk0 at 200909 primarycache all default
zroot/swapdisk0 at 200909 secondarycache all default
zroot/swapdisk0 at 200909 defer_destroy off -
zroot/swapdisk0 at 200909 userrefs 0 -
zroot/swapdisk0 at 200909 mlslabel -
zroot/swapdisk0 at 200909 refcompressratio 1.00x -
zroot/swapdisk0 at 200909 written 20.2G -
zroot/swapdisk0 at 200909 clones -
zroot/swapdisk0 at 200909 logicalreferenced 20.1G -
zroot/swapdisk0 at 200909 volmode geom
inherited from zroot/swapdisk0
zroot/usr type filesystem -
zroot/usr creation Mon May 27 23:31 2013 -
zroot/usr used 131G -
zroot/usr available 0 -
zroot/usr referenced 50.9G -
zroot/usr compressratio 1.00x -
zroot/usr mounted yes -
zroot/usr quota none default
zroot/usr reservation none default
zroot/usr recordsize 128K default
zroot/usr mountpoint /usr local
zroot/usr sharenfs off default
zroot/usr checksum fletcher4
inherited from zroot
zroot/usr compression off default
zroot/usr atime on default
zroot/usr devices on default
zroot/usr exec on default
zroot/usr setuid on default
zroot/usr readonly off
inherited from zroot
zroot/usr jailed off default
zroot/usr snapdir hidden default
zroot/usr aclmode discard default
zroot/usr aclinherit restricted default
zroot/usr createtxg 21 -
zroot/usr canmount on default
zroot/usr xattr off temporary
zroot/usr copies 1 default
zroot/usr version 5 -
zroot/usr utf8only off -
zroot/usr normalization none -
zroot/usr casesensitivity sensitive -
zroot/usr vscan off default
zroot/usr nbmand off default
zroot/usr sharesmb off default
zroot/usr refquota none default
zroot/usr refreservation none default
zroot/usr guid 3173040953131777265 -
zroot/usr primarycache all default
zroot/usr secondarycache all default
zroot/usr usedbysnapshots 1K -
zroot/usr usedbydataset 50.9G -
zroot/usr usedbychildren 80.1G -
zroot/usr usedbyrefreservation 0 -
zroot/usr logbias latency default
zroot/usr dedup off default
zroot/usr mlslabel -
zroot/usr sync standard default
zroot/usr refcompressratio 1.00x -
zroot/usr written 1K -
zroot/usr logicalused 131G -
zroot/usr logicalreferenced 50.7G -
zroot/usr volmode default default
zroot/usr filesystem_limit none default
zroot/usr snapshot_limit none default
zroot/usr filesystem_count none default
zroot/usr snapshot_count none default
zroot/usr redundant_metadata all default
zroot/usr at 200909 type snapshot -
zroot/usr at 200909 creation Wed Sep 9 11:12 2020 -
zroot/usr at 200909 used 1K -
zroot/usr at 200909 referenced 50.9G -
zroot/usr at 200909 compressratio 1.00x -
zroot/usr at 200909 devices on default
zroot/usr at 200909 exec on default
zroot/usr at 200909 setuid on default
zroot/usr at 200909 createtxg 20490195 -
zroot/usr at 200909 xattr on default
zroot/usr at 200909 version 5 -
zroot/usr at 200909 utf8only off -
zroot/usr at 200909 normalization none -
zroot/usr at 200909 casesensitivity sensitive -
zroot/usr at 200909 nbmand off default
zroot/usr at 200909 guid 15403344970624252860 -
zroot/usr at 200909 primarycache all default
zroot/usr at 200909 secondarycache all default
zroot/usr at 200909 defer_destroy off -
zroot/usr at 200909 userrefs 0 -
zroot/usr at 200909 mlslabel -
zroot/usr at 200909 refcompressratio 1.00x -
zroot/usr at 200909 written 50.9G -
zroot/usr at 200909 clones -
zroot/usr at 200909 logicalreferenced 50.7G -
zroot/usr at 200909 volmode default default
zroot/usr/home type filesystem -
zroot/usr/home creation Mon May 27 23:33 2013 -
zroot/usr/home used 80.1G -
zroot/usr/home available 0 -
zroot/usr/home referenced 80.1G -
zroot/usr/home compressratio 1.00x -
zroot/usr/home mounted yes -
zroot/usr/home quota none default
zroot/usr/home reservation none default
zroot/usr/home recordsize 128K default
zroot/usr/home mountpoint /usr/home local
zroot/usr/home sharenfs off default
zroot/usr/home checksum fletcher4
inherited from zroot
zroot/usr/home compression off default
zroot/usr/home atime on default
zroot/usr/home devices on default
zroot/usr/home exec on default
zroot/usr/home setuid on default
zroot/usr/home readonly off
inherited from zroot
zroot/usr/home jailed off default
zroot/usr/home snapdir hidden default
zroot/usr/home aclmode discard default
zroot/usr/home aclinherit restricted default
zroot/usr/home createtxg 41 -
zroot/usr/home canmount on default
zroot/usr/home xattr off temporary
zroot/usr/home copies 1 default
zroot/usr/home version 5 -
zroot/usr/home utf8only off -
zroot/usr/home normalization none -
zroot/usr/home casesensitivity sensitive -
zroot/usr/home vscan off default
zroot/usr/home nbmand off default
zroot/usr/home sharesmb off default
zroot/usr/home refquota none default
zroot/usr/home refreservation none default
zroot/usr/home guid 16701701910904504413 -
zroot/usr/home primarycache all default
zroot/usr/home secondarycache all default
zroot/usr/home usedbysnapshots 1K -
zroot/usr/home usedbydataset 80.1G -
zroot/usr/home usedbychildren 0 -
zroot/usr/home usedbyrefreservation 0 -
zroot/usr/home logbias latency default
zroot/usr/home dedup off default
zroot/usr/home mlslabel -
zroot/usr/home sync standard default
zroot/usr/home refcompressratio 1.00x -
zroot/usr/home written 1K -
zroot/usr/home logicalused 80.0G -
zroot/usr/home logicalreferenced 80.0G -
zroot/usr/home volmode default default
zroot/usr/home filesystem_limit none default
zroot/usr/home snapshot_limit none default
zroot/usr/home filesystem_count none default
zroot/usr/home snapshot_count none default
zroot/usr/home redundant_metadata all default
zroot/usr/home at 200909 type snapshot -
zroot/usr/home at 200909 creation Wed Sep 9 11:12 2020 -
zroot/usr/home at 200909 used 1K -
zroot/usr/home at 200909 referenced 80.1G -
zroot/usr/home at 200909 compressratio 1.00x -
zroot/usr/home at 200909 devices on default
zroot/usr/home at 200909 exec on default
zroot/usr/home at 200909 setuid on default
zroot/usr/home at 200909 createtxg 20490195 -
zroot/usr/home at 200909 xattr on default
zroot/usr/home at 200909 version 5 -
zroot/usr/home at 200909 utf8only off -
zroot/usr/home at 200909 normalization none -
zroot/usr/home at 200909 casesensitivity sensitive -
zroot/usr/home at 200909 nbmand off default
zroot/usr/home at 200909 guid 14302389932766417239 -
zroot/usr/home at 200909 primarycache all default
zroot/usr/home at 200909 secondarycache all default
zroot/usr/home at 200909 defer_destroy off -
zroot/usr/home at 200909 userrefs 0 -
zroot/usr/home at 200909 mlslabel -
zroot/usr/home at 200909 refcompressratio 1.00x -
zroot/usr/home at 200909 written 80.1G -
zroot/usr/home at 200909 clones -
zroot/usr/home at 200909 logicalreferenced 80.0G -
zroot/usr/home at 200909 volmode default default
zroot/var type filesystem -
zroot/var creation Mon May 27 23:40 2013 -
zroot/var used 9.94G -
zroot/var available 0 -
zroot/var referenced 9.94G -
zroot/var compressratio 1.00x -
zroot/var mounted yes -
zroot/var quota none default
zroot/var reservation none default
zroot/var recordsize 128K default
zroot/var mountpoint /var local
zroot/var sharenfs off default
zroot/var checksum fletcher4
inherited from zroot
zroot/var compression off default
zroot/var atime on default
zroot/var devices on default
zroot/var exec on default
zroot/var setuid on default
zroot/var readonly off
inherited from zroot
zroot/var jailed off default
zroot/var snapdir hidden default
zroot/var aclmode discard default
zroot/var aclinherit restricted default
zroot/var createtxg 133 -
zroot/var canmount on default
zroot/var xattr off temporary
zroot/var copies 1 default
zroot/var version 5 -
zroot/var utf8only off -
zroot/var normalization none -
zroot/var casesensitivity sensitive -
zroot/var vscan off default
zroot/var nbmand off default
zroot/var sharesmb off default
zroot/var refquota none default
zroot/var refreservation none default
zroot/var guid 15336045084130388053 -
zroot/var primarycache all default
zroot/var secondarycache all default
zroot/var usedbysnapshots 1K -
zroot/var usedbydataset 9.94G -
zroot/var usedbychildren 0 -
zroot/var usedbyrefreservation 0 -
zroot/var logbias latency default
zroot/var dedup off default
zroot/var mlslabel -
zroot/var sync standard default
zroot/var refcompressratio 1.00x -
zroot/var written 1K -
zroot/var logicalused 9.93G -
zroot/var logicalreferenced 9.93G -
zroot/var volmode default default
zroot/var filesystem_limit none default
zroot/var snapshot_limit none default
zroot/var filesystem_count none default
zroot/var snapshot_count none default
zroot/var redundant_metadata all default
zroot/var at 200909 type snapshot -
zroot/var at 200909 creation Wed Sep 9 11:12 2020 -
zroot/var at 200909 used 1K -
zroot/var at 200909 referenced 9.94G -
zroot/var at 200909 compressratio 1.00x -
zroot/var at 200909 devices on default
zroot/var at 200909 exec on default
zroot/var at 200909 setuid on default
zroot/var at 200909 createtxg 20490195 -
zroot/var at 200909 xattr on default
zroot/var at 200909 version 5 -
zroot/var at 200909 utf8only off -
zroot/var at 200909 normalization none -
zroot/var at 200909 casesensitivity sensitive -
zroot/var at 200909 nbmand off default
zroot/var at 200909 guid 12205140544561506623 -
zroot/var at 200909 primarycache all default
zroot/var at 200909 secondarycache all default
zroot/var at 200909 defer_destroy off -
zroot/var at 200909 userrefs 0 -
zroot/var at 200909 mlslabel -
zroot/var at 200909 refcompressratio 1.00x -
zroot/var at 200909 written 9.94G -
zroot/var at 200909 clones -
zroot/var at 200909 logicalreferenced 9.93G -
zroot/var at 200909 volmode default default
I am lost
lk
More information about the freebsd-questions
mailing list