P. Larry Nelson wrote on 7/18/16 12:15 PM:

        [snip...]

Well, it looks like one can choose which directories for StateSaveLocation
and SlurmdSpoolDir in the configurator.  And it *does* say that they should
be writeable by the SlurmUser.  So, I missed that when I ran the easy
configurator.  All I did was choose the ControlMachine, NodeName, and
PartitionName and left everything else to default - assuming defaults
would work.  They don't always....

Looks like /tmp is just fine for StateSaveLocation and SlurmdSpoolDir.

- Larry

Actually, it's /var/spool/slurmctld/clustername and yes, that file is just
a text file with the cluster name I provided in slurm.conf - only it reduced
it to all lowercase - i.e. from SlurmCluster to slurmcluster.  Whatever...

The error I was getting (failed to create file /var/spool/clustername) was
because SlurmUser (slurm) does not have permissions to write to /var/spool.
When I changed SlurmUser to root, then it worked and I finally got slurmctld
to at least start and keep running and it created /var/spool/slurmctld and
/var/spool/slurmd.

Then I stopped slurmd and slurmctld, went to /var/spool and did a
'chown -R slurm: slurm*' to make it all owned by slurm.
Then change SlurmUser in slurm.conf back to slurm from root and restarted slurmd
and slurmctld.  Seems to be happy now.

I am annotating my notes to indicate that one probably needs to mkdir
slurmd and slurmctld in /var/spool first and then do the chown recursively
to one's SlurmUser name before starting slurmd and slurmctld.

- Larry


--
P. Larry Nelson (217-244-9855) | IT Administrator
457 Loomis Lab                 | High Energy Physics Group
1110 W. Green St., Urbana, IL  | Physics Dept., Univ. of Ill.
MailTo: lnel...@illinois.edu   | http://hep.physics.illinois.edu/home/lnelson/
------------------------------------------------------------------------------
 "Information without accountability is just noise."  - P.L. Nelson

Reply via email to