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

inaccessible snapshot in .zfs directory #1141

Closed
nedbass opened this issue Dec 10, 2012 · 2 comments
Closed

inaccessible snapshot in .zfs directory #1141

nedbass opened this issue Dec 10, 2012 · 2 comments
Milestone

Comments

@nedbass
Copy link
Contributor

nedbass commented Dec 10, 2012

I was playing around with snapshots and managed to create one that can't be accessed through the .zfs/snapshot directory. I was able to clone and mount the snapshot manually.

ubuntu@ubuntu:~/zfs$ ls -l /tank/.zfs/snapshot/
ls: cannot access /tank/.zfs/snapshot/zfs-auto-snap_hourly-2012-12-10-0918: No such file or directory
total 25
dr-xr-xr-x 1 root root 0 Dec 10 21:01 a
drwxr-xr-x 2 root root 1027 Dec 10 21:03 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
drwxr-xr-x 2 root root 1027 Dec 10 21:03 zfs-auto-snap_hourly-2012-12-10-0910
dr-xr-xr-x 1 root root 0 Dec 10 21:08 zfs-auto-snap_hourly-2012-12-10-0916
dr-xr-xr-x 1 root root 0 Dec 10 21:02 zfs-auto-snap_hourly-2012-12-10-0917
d????????? ? ? ? ? ? zfs-auto-snap_hourly-2012-12-10-0918
dr-xr-xr-x 1 root root 0 Dec 10 21:07 zfs-auto-snap_hourly-2012-12-10-0919

ubuntu@ubuntu:~/zfs$ sudo ./cmd/zfs/zfs get all tank@zfs-auto-snap_hourly-2012-12-10-0918
NAME PROPERTY VALUE SOURCE
tank@zfs-auto-snap_hourly-2012-12-10-0918 type snapshot -
tank@zfs-auto-snap_hourly-2012-12-10-0918 creation Mon Dec 10 21:04 2012 -
tank@zfs-auto-snap_hourly-2012-12-10-0918 used 0 -
tank@zfs-auto-snap_hourly-2012-12-10-0918 referenced 142K -
tank@zfs-auto-snap_hourly-2012-12-10-0918 compressratio 1.00x -
tank@zfs-auto-snap_hourly-2012-12-10-0918 devices on default
tank@zfs-auto-snap_hourly-2012-12-10-0918 exec on default
tank@zfs-auto-snap_hourly-2012-12-10-0918 setuid on default
tank@zfs-auto-snap_hourly-2012-12-10-0918 xattr on default
tank@zfs-auto-snap_hourly-2012-12-10-0918 version 5 -
tank@zfs-auto-snap_hourly-2012-12-10-0918 utf8only off -
tank@zfs-auto-snap_hourly-2012-12-10-0918 normalization none -
tank@zfs-auto-snap_hourly-2012-12-10-0918 casesensitivity sensitive -
tank@zfs-auto-snap_hourly-2012-12-10-0918 nbmand off default
tank@zfs-auto-snap_hourly-2012-12-10-0918 primarycache all default
tank@zfs-auto-snap_hourly-2012-12-10-0918 secondarycache all default
tank@zfs-auto-snap_hourly-2012-12-10-0918 defer_destroy off -
tank@zfs-auto-snap_hourly-2012-12-10-0918 userrefs 0 -
tank@zfs-auto-snap_hourly-2012-12-10-0918 mlslabel none default
tank@zfs-auto-snap_hourly-2012-12-10-0918 refcompressratio 1.00x -
tank@zfs-auto-snap_hourly-2012-12-10-0918 written 131K -
tank@zfs-auto-snap_hourly-2012-12-10-0918 clones -

ubuntu@ubuntu:/zfs$ uname -a
Linux ubuntu 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ubuntu:
/zfs$ git log -n1 --oneline
e4d89e9 Switch KM_SLEEP to KM_PUSHPAGE

@behlendorf
Copy link
Contributor

@nedbass Do you think this may have been resolved by your f1a05fa fix? Do you still have the snapshot around, is it still causing troubles?

@nedbass
Copy link
Contributor Author

nedbass commented Apr 11, 2013

I don't have the snapshot around anymore, but it seems likely that this is resolved by that fix. Closing.

@nedbass nedbass closed this as completed Apr 11, 2013
pcd1193182 pushed a commit to pcd1193182/zfs that referenced this issue Sep 26, 2023
…zfs_object_agent (openzfs#1141)

build(deps): bump windows_aarch64_msvc in /cmd/zfs_object_agent

Bumps [windows_aarch64_msvc](https://github.com/microsoft/windows-rs) from 0.48.2 to 0.48.5.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](https://github.com/microsoft/windows-rs/commits/0.48.5)

---
updated-dependencies:
- dependency-name: windows_aarch64_msvc
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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