Date: Fri, 11 Sep 2020 11:31:16 +0200 From: Ludovit Koren <ludovit.koren@gmail.com> To: David Christensen <dpchrist@holgerdanske.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: ZFS snapshot - rollback problem Message-ID: <CADZBGL5yzM73NsQiD7-uHgdN%2BSRnac-7_4P9HQSeN5VUzopSuw@mail.gmail.com> In-Reply-To: <2ab7551a-ff62-70fd-61a3-04d678f1281b@holgerdanske.com> References: <CADZBGL4C83JyMqHNP5A_aUV%2BddXxbd2F7RtCQhox4dCKKQAqLw@mail.gmail.com> <54720a77-5a14-06f9-c146-17e1e8f8a99e@holgerdanske.com> <CADZBGL5s5dWrc3Q0aX8xAEhbN2BXZyvsDyKVByd6A1cnVYsUrw@mail.gmail.com> <2ab7551a-ff62-70fd-61a3-04d678f1281b@holgerdanske.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, September 11, 2020, David Christensen <dpchrist@holgerdanske.com= > wrote: > On 2020-09-10 23:31, Ludovit Koren wrote: > >> On Friday, September 11, 2020, David Christensen ... wrote: >> >> On 2020-09-10 07:18, Ludovit Koren wrote: >>> >> > ~>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 >>>> >>> > I do not understand how your system can work at all if the root filesyste= m >>> is mounted at /mnt (?). Is your FreeBSD running on a different disc? = Do >>> you have a multiple system disks, multi-boot, etc.? >>> >> > If you see the time of creation, >> > > I find it very useful to show the date, time, username, hostname, and pat= h > in my shell prompt. I use the toor account, the Bash shell, and export P= S1 > in ~/.profile: > > 2020-09-11 00:31:08 toor@f3 ~ > # grep 'export PS1' .profile > export PS1=3D'\n\D{%Y-%m-%d %H:%M:%S} '${USER}'@\h \w\n\$ ' > > > I think at that time it was a workaround how to install on the zfs. >> > > Please run and post: > > # zfs list > > > I did not changed it, since. No the FreeBSD is >> running from the disk. I have neither multiple system disks, nor >> multi-boot. >> > > Okay. > > > In the /boot/loader.conf I have vfs.root.mountfrom=3D"zfs.zroot" >> > > Okay. > > > After zfs snapshot, which I did on the root, >> > > Please post your console session. >>> >> > ? > > > camcontrol devlist >> >> <Samsung SSD 840 PRO Series DXM04B0Q> at scbus0 target 0 lun 0 >> (ada0,pass0) >> <AHCI SGPIO Enclosure 2.00 0001> at scbus3 target 0 lun 0 (pass1) >> > > Okay. > > > gpart show >> =3D> 34 500118125 ada0 GPT (238G) >> 34 128 1 freebsd-boot (64K) >> 162 500117997 2 freebsd-zfs (238G) >> > > Please run and post: > > # gpart show -l > > > gpart show -l =3D> 34 500118125 ada0 GPT (238G) 34 128 1 (null) (64K) 162 500117997 2 disk0 (238G) > Did you partition the disk by hand, use the FreeBSD installer, or > something else? If I remember correctly, using installer > > > mount >> zroot on / (zfs, local, nfsv4acls) >> devfs on /dev (devfs, local, multilabel) >> fdescfs on /dev/fd (fdescfs) >> procfs on /proc (procfs, local) >> linprocfs on /compat/linux/proc (linprocfs, local) >> zroot/usr on /usr (zfs, local, nfsv4acls) >> zroot/usr/home on /usr/home (zfs, local, nfsv4acls) >> zroot/var on /var (zfs, local, nfsv4acls) >> tmpfs on /var (tmpfs, local) >> map -hosts on /net (autofs) >> map -media on /media (autofs) >> tmpfs on /tmp (tmpfs, local) >> > > Okay. zroot is mounted at /, which makes sense. > > > zpool status >> pool: zroot >> state: ONLINE >> status: Some supported features are not enabled on the pool. The pool ca= n >> still be used, but some features are unavailable. >> action: Enable all features using 'zpool upgrade'. Once this is done, >> the pool may no longer be accessible by software that does not >> support >> the features. See zpool-features(7) for details. >> scan: resilvered 0 in 0 days 00:00:00 with 0 errors on Sat Apr 6 >> 20:39:05 2019 >> config: >> >> NAME STATE READ WRITE CKSUM >> zroot ONLINE 0 0 0 >> gpt/disk0 ONLINE 0 0 0 >> >> errors: No known data errors >> > > Okay. > > > Please post a console session showing the ZFS snapshot and rollback > problem(s). > zfs rollback zroot/swapdisk0@200909 cannot rollback =C2=B4zroot/swapdisk0': out of space zfs rollback zroot@200909 nothing happens, even if I wait several hours, or it hangs, respectivelly lk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADZBGL5yzM73NsQiD7-uHgdN%2BSRnac-7_4P9HQSeN5VUzopSuw>