Comments (5)
"too many levels of symlinks" strongly implies that the problem isn't
specifically ZFS at all - your dataset likely contains, well, symlinks,
which on the target wind up pointing to themselves recursively.
To troubleshoot further, look at an ls -l of the parent directory
containing the file or folder you're getting the error from, possibly piped
through grep for concision.
root@roboduck:~# ls
/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21\:13\:43\:02/ ls:
cannot open directory
'/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/': Too many
levels of symbolic links
Should be followed with:
root@roboduck:~# ls -l /tank/testfs/.zfs/snapshot | grep 2016-08-21
Also note that the .zfs/snapshots directory is basically a convenience
feature only; have you tried manually mounting the snapshot directly, or
cloning it?
root@roboduck:~# zfs clone pool/dataset/snapshot pool/snapclone
root@roboduck:~# ls /pool/snapclone
root@roboduck:~# zfs destroy pool/snapclone
(Sent from my tablet - please blame any weird errors on autocorrect)
On August 21, 2016 14:21:14 jonalbrecht [email protected] wrote:
I don't think this is a problem with syncoid but I wanted to check if there
is a problem either with what I'm doing or with zfs.I'm on ubuntu 16.04 with the latest updates and I'm using syncoid from
master as of Aug 8. After the first incremental syncoid I am getting "Too
many levels of symbolic links" errors when trying to list the files in the
remote snapshot dir.Here are the commands I've run with robocat as the source host and roboduck
as the remote backup host:root@roboduck:~# zfs list NAME USED AVAIL REFER MOUNTPOINT tank 757K 74.1G 19K /tank
root@robocat:~# zfs create tank/testfs root@robocat:~# echo "test" > /tank/testfs/testfile01.txt root@robocat:~# date; /usr/local/bin/syncoid tank/testfs root@roboduck:tank/testfs Sun Aug 21 13:41:42 EDT 2016 INFO: Sending oldest full snapshot tank/testfs@syncoid_robocat_2016-08-21:13:41:43 (~ 40 KB) to new target filesystem: 41.5KiB 0:00:00 [18.1MiB/s] [================================>] 102%
root@roboduck:~# date; ls /tank/testfs/ Sun Aug 21 13:42:03 EDT 2016 testfile01.txt root@roboduck:~# ls /tank/testfs/.zfs/snapshot/ syncoid_robocat_2016-08-21:13:41:43 root@roboduck:~# ls /tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21\:13\:41\:43/ testfile01.txt
root@robocat:~# date; /usr/local/bin/syncoid tank/testfs root@roboduck:tank/testfs Sun Aug 21 13:43:02 EDT 2016 Sending incremental tank/testfs@syncoid_robocat_2016-08-21:13:41:43 ... syncoid_robocat_2016-08-21:13:43:02 (~ 4 KB): 1.52KiB 0:00:00 [5.33KiB/s] [===========> ] 38%
root@roboduck:~# date; ls /tank/testfs/ Sun Aug 21 13:43:11 EDT 2016 testfile01.txt root@roboduck:~# ls /tank/testfs/.zfs/snapshot/ syncoid_robocat_2016-08-21:13:43:02 root@roboduck:~# ls /tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21\:13\:43\:02/ ls: cannot open directory '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/': Too many levels of symbolic links root@roboduck:~# ls /tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21\:13\:43\:02/testfile01.txt ls: cannot access '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/testfile01.txt': Too many levels of symbolic links root@roboduck:~# cat /tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21\:13\:43\:02/testfile01.txt test
On some other zfs filesystems I've been testing with, I've seen the files
on the remote filesystem disappear after the first incremental but I don't
have a simple repro for that yet. The snapshot dir errors are the same in
both cases. I'm guessing this is a problem with zfs but it would be great
if someone could have a quick look in case I'm doing something wrong.You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#48
from sanoid.
Thanks for the quick reply.
This is from the source host:
jalbrecht@robocat:~$ ls -la /tank/testfs/.zfs/snapshot/
total 0
dr-xr-xr-x 2 root root 2 Aug 21 13:43 .
dr-xr-xr-x 1 root root 0 Aug 21 13:41 ..
dr-xr-xr-x 1 root root 0 Aug 21 17:55 syncoid_robocat_2016-08-21:13:43:02
This is from the remote host:
deploy@roboduck:~$ ls -la /tank/testfs/.zfs/snapshot/
total 0
dr-xr-xr-x 2 root root 2 Aug 21 13:43 .
dr-xr-xr-x 1 root root 0 Aug 21 13:41 ..
dr-xr-xr-x 1 root root 0 Aug 21 13:43 syncoid_robocat_2016-08-21:13:43:02
deploy@roboduck:~$ ls -la /tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21\:13\:43\:02/
ls: '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/': Too many levels of symbolic links
ls: cannot access '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/.': Too many levels of symbolic links
ls: cannot access '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/..': Too many levels of symbolic links
ls: cannot access '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/testfile01.txt': Too many levels of symbolic links
total 0
d????????? ? ? ? ? ? .
d????????? ? ? ? ? ? ..
-????????? ? ? ? ? ? testfile01.txt
I saw this recent zfsonlinux issue. Maybe the cause of what I'm seeing?
openzfs/zfs#4514
from sanoid.
Possibly. Have you tried accessing the snapshot with mount or clone as I
suggested?
(Sent from my tablet - please blame any weird errors on autocorrect)
On August 21, 2016 20:06:31 jonalbrecht [email protected] wrote:
Thanks for the quick reply.
This is from the source host:jalbrecht@robocat:~$ ls -la /tank/testfs/.zfs/snapshot/ total 0 dr-xr-xr-x 2 root root 2 Aug 21 13:43 . dr-xr-xr-x 1 root root 0 Aug 21 13:41 .. dr-xr-xr-x 1 root root 0 Aug 21 17:55 syncoid_robocat_2016-08-21:13:43:02
This is from the remote host:
deploy@roboduck:~$ ls -la /tank/testfs/.zfs/snapshot/ total 0 dr-xr-xr-x 2 root root 2 Aug 21 13:43 . dr-xr-xr-x 1 root root 0 Aug 21 13:41 .. dr-xr-xr-x 1 root root 0 Aug 21 13:43 syncoid_robocat_2016-08-21:13:43:02 deploy@roboduck:~$ ls -la /tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21\:13\:43\:02/ ls: '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/': Too many levels of symbolic links ls: cannot access '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/.': Too many levels of symbolic links ls: cannot access '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/..': Too many levels of symbolic links ls: cannot access '/tank/testfs/.zfs/snapshot/syncoid_robocat_2016-08-21:13:43:02/testfile01.txt': Too many levels of symbolic links total 0 d????????? ? ? ? ? ? . d????????? ? ? ? ? ? .. -????????? ? ? ? ? ? testfile01.txt
I saw this recent zfsonlinux issue. Maybe the cause of what I'm seeing?
openzfs/zfs#4514You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#48 (comment)
from sanoid.
Sorry for taking so long to reply.
root@roboduck:~# zfs clone tank/testfs@syncoid_robocat_2016-08-21\:13\:43\:02 tank/snapclone
root@roboduck:~# ls /tank/snapclone/
testfile01.txt
root@roboduck:~# cat /tank/snapclone/testfile01.txt
test
It all looks good
from sanoid.
Going to close this here; it's not a bug in syncoid. Thanks for the report though.
from sanoid.
Related Issues (20)
- Recursive setting cannot be enabled if trailing space present HOT 1
- syncoid: ControlSocket already exists HOT 2
- ubuntu 24.04 fail to start sanoid service HOT 1
- My sanoid.conf is not being recognized. HOT 1
- sanoid --prune-snapshots performance is bad because of iszfsbusy HOT 5
- [feature request / question] Auto-mount last snapshot done by sanoid HOT 6
- Regression: "invalid flags combined with -t" when resuming with `syncoid --sendoptions`
- Building deb package fails on ubuntu 24.04 HOT 7
- Syncoid question: Hook script or other way of adding data to a log on the remote target system? HOT 1
- Syncoid: sync incremental - hold selected snapshots during sync HOT 2
- Syncoid flag "--exclude=" is excluding datasets of similar name HOT 6
- Unknown option: no-clone-rollback ?
- Restrict sanoid to single pool or list of pools HOT 1
- Debian package incompatible with OpenZFS built from sources HOT 1
- --force-delete does not seem to delete datasets HOT 2
- False error: ZFS resume feature not available on source and target machine
- Parallel pruning HOT 1
- Sanoid/syncoid integration HOT 1
- Issue with ZFS Replication Using Syncoid HOT 2
- sanoid should warn if it can't find the template requested via use_template HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sanoid.