[Bug 235863] file loss when adding faulty entry in a jail's /etc/fstab.foo after removing jail
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 21 13:01:44 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235863
--- Comment #1 from leaveemptyfordefault <unixmig68 at gmail.com> ---
Follow up: reproducing the original bug, I am now able to do a recovery.
In both original bug report and this follow-up, zfs was used.
Using the same /etc/jail.conf, and a similar /etc/fstab.foo,
getting the zfs fileset lost again, here's how it can be recovered:
# mkdir /recovery # an arbitrary recovery dir
# zfs set mountpoint=/recovery zroot/j/foo.d
# cd /recovery
# ls
# # nothing recovered
# zfs set mountpoint="legacy" zroot/j/foo.d # possibly a needed step
# zfs list | grep foo
zroot/j/foo.d 71.7M 428M 71.7M legacy # zfs still lists usage
# zfs set mountpoint="/zroot/j/foo.d" zroot/j/foo.d #point zfs to org
mountpoint
# cd /zroot/j/foo.d
# ls -1
foo.etc foo.root foo.homedir foo.tmp # files recovered
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-jail
mailing list