[slurm-dev] Confusion with init/systemd files

0 views
Skip to first unread message

Jeff White

unread,
Feb 3, 2016, 1:33:02 PM2/3/16
to slurm-dev

I installed SLURM by compiling RPMs from slurm-15.08.7.tar.bz2. I then
installed every package that it created. I noticed the following
systemd unit files are included:

/usr/lib/systemd/system/slurmd.service
/usr/lib/systemd/system/slurmdbd.service
/usr/lib/systemd/system/slurmctld.service

... but also comes with:

/etc/rc.d/init.d/slurmdbd
/etc/rc.d/init.d/slurm

I'm confused by this. Why are there both init and systemd files?

Also: slurm, slurmd, slurmctld, slurmdbd... Who does what? Who needs
to run on what machines (head, login, and compute)?

--
Jeff White
HPC Systems Engineer
Information Technology Services - WSU

Novosielski, Ryan

unread,
Feb 3, 2016, 2:23:01 PM2/3/16
to slurm-dev

http://slurm.schedmd.com/quickstart.html

--
____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
|| \\UTGERS |---------------------*O*---------------------
||_// Biomedical | Ryan Novosielski - Senior Technologist
|| \\ and Health | novo...@rutgers.edu - 973/972.0922 (2x0922)
|| \\ Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark
`'
________________________________________
From: Jeff White [jeff....@wsu.edu]
Sent: Wednesday, February 03, 2016 1:32 PM
To: slurm-dev
Subject: [slurm-dev] Confusion with init/systemd files

Cooper, Trevor

unread,
Feb 3, 2016, 2:26:05 PM2/3/16
to slurm-dev

Jeff,

You might want to start with the Slurm overview page[1] and quick start admin guide[2].

We use CentOS 6.7 so we use init files. The slurm service script starts the appropriate daemon (slurmctld or slurmd) depending on the contents of slurm.conf.

slurmdbd is optional (but useful) and runs on your head node or 'other' service node (may be outside your cluster and used for multiple clusters).

Hope that helps...

Trevor

[1] - http://slurm.schedmd.com/overview.html
[2] - http://slurm.schedmd.com/quickstart_admin.html

Felip Moll

unread,
Feb 4, 2016, 8:42:23 AM2/4/16
to slurm-dev
If you have a systemd capable OS:
-----------------------------------------------
/usr/lib/systemd/system/slurmd.service      --> Start slurmd client, so exec it in compute nodes
/usr/lib/systemd/system/slurmdbd.service --> Slurm db script, if you use accounting through a database (most cases), on accounting node (maybe same than head node)
/usr/lib/systemd/system/slurmctld.service --> Slurm controller, exec it in head nodes

Maybe you will have to tune systemd scripts accordingly to slurm.conf file depending on your OS.


If you still use an OS with rc scripts:
------------------------------------------------
/etc/rc.d/init.d/slurmdbd -->Slurm db script, if you use accounting through a database (most cases), on accounting node (maybe same than head node)
/etc/rc.d/init.d/slurm --> Detects if you are compute or head node and starts slurmd or both slurmd and slurmctld daemons.



Regards,
Felip M


--
Felip Moll Marquès

Computer Science Engineer
E-Mail - lip...@gmail.com
WebPage - http://lipix.ciutadella.es

Reply all
Reply to author
Forward
0 new messages