On 12/11/14 06:38, Bob Moench wrote:
> Does anyone know if /tmp is guaranteed to be writable on the
> cluster nodes under SLURM?
If they wish to comply with the FHS (Filesystem Hierarchy Standard) or
the LSB (Linux Standards Base which uses the FHS) then yes, it must be.
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html
# /tmp : Temporary files
#
# Purpose
#
# The /tmp directory must be made available for programs that require
# temporary files.
#
# Programs must not assume that any files or directories in /tmp are
# preserved between invocations of the program.
#
# Rationale
#
# IEEE standard P1003.2 (POSIX, part 2) makes requirements that are
# similar to the above section.
Oh yes, the small matter of POSIX.. The old (1992) version of POSIX is here:
http://www.oldlinux.org/Linux.old/Ref-docs/POSIX/all.pdf
and says:
# 2.7 Required Files
#
# [...]
# The following directory shall exist on conforming systems and
# shall be used as described.
#
# /tmp
#
# A directory made available for programs that need a place to
# create temporary files. Applications shall be allowed to create
# files in this directory, but shall not assume that such files
# are preserved between invocations of the application.
The current version (2013) is basically the same, only a single word
changed, and says:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap10.html
# The following directory shall exist on conforming systems and shall
# be used as described:
#
# /tmp
# A directory made available for applications that need a place to
# create temporary files. Applications shall be allowed to create
# files in this directory, but shall not assume that such files are
# preserved between invocations of the application.
So there you go! If /tmp isn't writeable then it's a bug, not a feature.
All the best,
Chris
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email:
sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci