[slurm-users] slurm reboot node with spank plugin

Tueur Volvo huitre39 at gmail.com
Wed May 9 05:16:37 MDT 2018


I would like to update the linux kernel then reboot the machine and run the
job

for example I would like this:

srun --chooskernel=4.1 hostname

I would like to install kernel 4.1 on my machine, then reboot the machine
and run hostname

if i use srun --reboot hostname, how to tell him to update the kernel
before rebooting ?
if I understand what you mean, I have to use a job-submit plugin ?

like this :
https://slurm.schedmd.com/job_submit_plugins.html

?


2018-05-09 11:44 GMT+02:00 Chris Samuel <chris at csamuel.org>:

> On Wednesday, 9 May 2018 7:09:12 PM AEST Tueur Volvo wrote:
>
> > Hello, i have question, it's possible to reboot slurm node in spank
> plugin
> > before execute job ?
>
> I don't know about that, but sbatch has a --reboot flag and you could use a
> submit filter to set it.    We do the opposite and always strip it out in
> our Lua
> submit filter.
>
> [...]
>         -- Users are not allowed to reboot nodes, silently clear the flag
> and log what we did.
>         if submit_uid ~= 0 and
>            job_desc.reboot ~= slurm.NO_VAL16 then
>                 job_desc.reboot = slurm.NO_VAL16
>                 slurm.log_info("clear reboot flag for user %d",
> submit_uid);
>         end
> [...]
>
> You can't log the job ID at that stage of course because it's not been
> accepted by slurmctld yet. :-)
>
> All the best,
> Chris
> --
>  Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180509/f48429c0/attachment.html>


More information about the slurm-users mailing list