Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
98faee1d
Commit
98faee1d
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
Minor tweaks to `flock` docs.
parent
a4966227
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/docs/basic_usage.rst
+22
-9
22 additions, 9 deletions
lib/spack/docs/basic_usage.rst
with
22 additions
and
9 deletions
lib/spack/docs/basic_usage.rst
+
22
−
9
View file @
98faee1d
...
@@ -1246,13 +1246,30 @@ several variants:
...
@@ -1246,13 +1246,30 @@ several variants:
spack deactivate -a python
spack deactivate -a python
A word of warning
Filesystem requirements
-----------------------
-----------------------
---
If you run `spack find` and you get an error similar to the following:
Spack currently needs to be run from a filesystem that supports
``flock`` locking semantics. Nearly all local filesystems and recent
versions of NFS support this, but parallel filesystems may be mounted
without ``flock`` support enabled. You can determine how your
filesystems are mounted with ``mount -p``. The output for a Lustre
filesystem might look like this:
.. code-block:: sh
.. code-block:: sh
$ mount -l | grep lscratch
pilsner-mds1-lnet0@o2ib100:/lsd on /p/lscratchd type lustre (rw,nosuid,noauto,_netdev,lazystatfs,flock)
porter-mds1-lnet0@o2ib100:/lse on /p/lscratche type lustre (rw,nosuid,noauto,_netdev,lazystatfs,flock)
Note the ``flock`` option on both Lustre mounts. If you do not see
this or a similar option for your filesystem, you may need ot ask your
system administrator to enable ``flock``.
This issue typically manifests with the error below:
.. code-block:: sh
$ ./spack find
$ ./spack find
Traceback (most recent call last):
Traceback (most recent call last):
File "./spack", line 176, in <module>
File "./spack", line 176, in <module>
...
@@ -1273,11 +1290,7 @@ If you run `spack find` and you get an error similar to the following:
...
@@ -1273,11 +1290,7 @@ If you run `spack find` and you get an error similar to the following:
fcntl.lockf(self._fd, op | fcntl.LOCK_NB)
fcntl.lockf(self._fd, op | fcntl.LOCK_NB)
IOError: [Errno 38] Function not implemented
IOError: [Errno 38] Function not implemented
A nicer error message is TBD in future versions of Spack.
it most likely means that you are trying to run spack in a shared
network filesystem without support for lockf/flock. Currently this is not
supported, and you should ask your system administrator to enable lockf/flock.
Getting Help
Getting Help
-----------------------
-----------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment