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

[FIX] Cross-device hard links exception #33

Merged
merged 3 commits into from
Jun 30, 2022

Conversation

anibalsolon
Copy link
Member

I just had the same problem #17 with my resource.

The error happens when accessing the output of another job from the same process, in the same resource. So the command binds -B /work/<process>/<job> and tries to hard-link e.g. /work/<process>/<another job>

From what I could investigate, by binding the job directory, it considers to be in another device even if one is a subtree of another (-B /work/<process> -B /work/<process>/<job>):

/dev/mapper/ubuntu--vg-ubuntu--lv on /home/bl/abcd-spec/hooks type ext4 (rw,nosuid,nodev,relatime)
/dev/mapper/ubuntu--vg-ubuntu--lv on /home/bl/workdir/62b2095ae0370ed92af3a543 type ext4 (rw,nosuid,nodev,relatime)
/dev/mapper/ubuntu--vg-ubuntu--lv on /home/bl/workdir/62b2095ae0370ed92af3a543/62b27175e0370ed92afc9ee4 type ext4 (rw,nosuid,nodev,relatime)

One solution would be to not bind anything. However it will rely on the cluster Singularity configuration, which is not ideal.

Another solution would be to only bind the process directory (in this case 62b2095ae0370ed92af3a543). This will allow access to the output from the jobs within the same process, in the same machine.

In the solution here, I implement the binding change. It is now working on my resource.

@soichih
Copy link
Contributor

soichih commented Jun 22, 2022

The error happens when accessing the output of another job from the same process, in the same resource.
All other resources do this with no issue. Is this caused by something specific to stampede2? Maybe singularity version / configuration is weird on stampede2

@anibalsolon
Copy link
Member Author

I think something like that- it is the same for my installation, which is vanilla, so I would assume the others have a specific config? Maybe mount fs or overlay.

@soichih soichih merged commit 8f7299f into brainlife:master Jun 30, 2022
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

Successfully merging this pull request may close these issues.

2 participants