Hello,
I'm trying to use zfs snapshot and there is something that escapes me. It's maybe obvious but...
[The system is: FreeBSD 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510]
When I test zfs snpashot / rollback on /usr/home, it works well:
I create a file after the snapshot and then, I rollback. The file has disappeared after the rollback. This results seems to me normal.
But when I do the same on zroot/usr:
As you can see, it doesn't work. The created file, test2, is still present after the rollback.
What I missed there?
I'm trying to use zfs snapshot and there is something that escapes me. It's maybe obvious but...
[The system is: FreeBSD 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510]
When I test zfs snpashot / rollback on /usr/home, it works well:
root@FreeBSD:/home # zfs snapshot zroot/usr/home@t1
root@FreeBSD:/home # touch test1
root@FreeBSD:/home # ls test1
test1
root@FreeBSD:/home # zfs rollback zroot/usr/home@t1
root@FreeBSD:/home # ls test1
ls: test1: No such file or directory
root@FreeBSD:/home # zfs destroy zroot/usr/home@t1
root@FreeBSD:/home #
I create a file after the snapshot and then, I rollback. The file has disappeared after the rollback. This results seems to me normal.
But when I do the same on zroot/usr:
root@FreeBSD:/usr # zfs snapshot zroot/usr@t2
root@FreeBSD:/usr # touch test2
root@FreeBSD:/usr # ls
bin include lib32 libexec obj sbin src tests
home lib libdata local ports share test2
root@FreeBSD:/usr # zfs rollback zroot/usr@t2
root@FreeBSD:/usr # ls
bin include lib32 libexec obj sbin src tests
home lib libdata local ports share test2
root@FreeBSD:/usr #
As you can see, it doesn't work. The created file, test2, is still present after the rollback.
What I missed there?