Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Sep 2020 16:34:58 +0200
From:      Christoph Brinkhaus <c.brinkhaus@t-online.de>
To:        Ludovit Koren <ludovit_koren@tempest.sk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ZFS snapshot - rollback problem
Message-ID:  <20200910143458.GA83264@esprimo>
In-Reply-To: <CADZBGL4C83JyMqHNP5A_aUV%2BddXxbd2F7RtCQhox4dCKKQAqLw@mail.gmail.com>
References:  <CADZBGL4C83JyMqHNP5A_aUV%2BddXxbd2F7RtCQhox4dCKKQAqLw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@200909               1K      -  10.7G  -
> zroot/Centos8@200909       1K      -  2.67G  -
> zroot/msw7@200909          1K      -  19.1G  -
> zroot/swapdisk0@200909      0      -  20.2G  -
> zroot/usr@200909           1K      -  50.9G  -
> zroot/usr/home@200909      1K      -  80.1G  -
> zroot/var@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.

Kind regards,
Christoph



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200910143458.GA83264>