[slurm-users] slurm reboot node with spank plugin
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
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 :
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
> > 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",
> 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 Samuel : http://www.csamuel.org/ : Melbourne, VIC
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the slurm-users