[kwlug-disc] Sharing ZFS joy
Mikalai Birukou
mb at 3nsoft.com
Wed Dec 29 16:02:45 EST 2021
Yep. This is even easier. Wonderful!
`/<storage>/.zfs` isn't visible in `ls /<storage>/` but all other
operations work with it. If I am asked to reproduce this with FUSE
layer, directory listing operation(s) produce content, which doesn't
have `.zfs`, but when someone has path starting with root `.zfs` things
are resolved instead of returning not-found.
So, for an additional backup off the system, like rsync/tar-ing files
(unlike sending zfs snapshot), tool may start working on snapshot that
ensures atomic view on data tree. This is a second cool!
> It might be even easier than that.
>
> I think the default is that snapshots are visible in .zfs/snapshot
> in the root of the filesystem. So, if you have a zfs filesystem
> mypool/home
> mounted on /home (or /mypool/home), then you may be able to browse
> snapshots in
> /home/.zfs/snapshot
> without doing a clone.
>
> Normally the .zfs directory doesn't show up in ls (or ls -a)
> so you have to know to look for it.
>
> Or at least that's my experience.
>
> Cheers
>
> John
>
>
> On Tue, 2021/12/28 11:39:25PM -0500, Mikalai Birukou via kwlug-disc <kwlug-disc at kwlug.org> wrote:
> | 1) `zfs clone -o mountpoint=<mount_of_that> <snapshot> <view-fs>` Clones and
> | mounts snapshot-ed data, making it accessible. This operation is fast as is
> | it doesn't any byte move/unzip-ing.
> |
> | 2) Do corrective operations.
> |
> | 3) Unmount and destroy <view-fs>.
More information about the kwlug-disc
mailing list