Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty snapshot folder #10104

Closed
marker5a opened this issue Mar 5, 2020 · 3 comments
Closed

Empty snapshot folder #10104

marker5a opened this issue Mar 5, 2020 · 3 comments

Comments

@marker5a
Copy link

marker5a commented Mar 5, 2020

System information

Type Version/Name
Distribution Name ArchLinux
Linux Kernel 5.4.15-ck
Architecture x86_64
ZFS Version 0.8.3-1
SPL Version 0.8.3-1

Describe the problem you're observing

When browsing into the snapshot folder of a zfs filesystem, I can cd into the snapshot, but the folder has no contents. Mounting the same snapshot using mount -t zfs <snapshot_name> has the expected files

Describe how to reproduce the problem

-Create snapshot
-cd /.zfs/snapshot/
-ls
-mount -t zfs /mnt
-ls /mnt

Include any warning/errors/backtraces from the system logs

There are no errors/warnings to report. One other note, of which may be irrelevant, is that the filesystems I am testing this against are all derived from ZFS on root fs.

@jhyeon
Copy link

jhyeon commented Mar 6, 2020

You may find an automount error in /proc/spl/kstat/zfs/dbgmsg. See my comments in #9461 and #9381.
I suspect this error occurs on systems with initramfs which chroot(2)s to new root filesystem and starts init process by running switch_root(8).

@marker5a
Copy link
Author

marker5a commented Mar 6, 2020

Ah, yes, you're correct... I tried searching for issues before posting so as not to duplicate, so apologies!
FWIW, I am receiving error 512 in the log... for instance

1583461577   zfs_ctldir.c:1086:zfsctl_snapshot_mount(): Unable to automount /new_root/var/lib/docker/.zfs/snapshot/autosnap_2020-02-29_00:00:08_daily error=512

@marker5a
Copy link
Author

marker5a commented Mar 6, 2020

Moving to #9461

@marker5a marker5a closed this as completed Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants