[slurm-users] Issue with salloc

Michael Robbert mrobbert at mines.edu
Mon May 14 08:51:55 MDT 2018


Mahmood,

You need to put all the options to srun before the executable that you 
want to run, which in this case is /bin/bash. So, it should look more like:

srun -l -a em1 -p IACTIVE --mem=4GB --pty -u /bin/bash

The way you have it most of your srun options are being interpreted as 
bash arguments.

Mike

On 5/12/18 5:55 AM, Mahmood Naderan wrote:
> I tried the following command but it failed
>
> [mahmood at rocks7 ~]$ srun --pty -u /bin/bash -l -a em1 -p IACTIVE --mem=4GB
> srun: error: Unable to allocate resources: Invalid account or
> account/partition combination specified
> [mahmood at rocks7 ~]$ scontrol show partition IACTIVE
> PartitionName=IACTIVE
>     AllowGroups=ALL AllowAccounts=em1 AllowQos=ALL
>     AllocNodes=rocks7 Default=NO QoS=N/A
>     DefaultTime=NONE DisableRootJobs=NO ExclusiveUser=NO GraceTime=0 Hidden=NO
>     MaxNodes=UNLIMITED MaxTime=UNLIMITED MinNodes=1 LLN=NO
> MaxCPUsPerNode=UNLIMITED
>     Nodes=compute-0-[4-6]
>     PriorityJobFactor=1 PriorityTier=1 RootOnly=NO ReqResv=NO OverSubscribe=NO
>     OverTimeLimit=NONE PreemptMode=OFF
>     State=UP TotalCPUs=144 TotalNodes=3 SelectTypeParameters=NONE
>     DefMemPerNode=UNLIMITED MaxMemPerNode=UNLIMITED
>
>
>
> Regards,
> Mahmood
>
>
>
>
> On Sat, May 12, 2018 at 11:10 AM, Chris Samuel <chris at csamuel.org> wrote:
>> salloc doesn't do that.
>>
>> We use a 2 line script called "sinteractive" to do this, it's really simple.
>>
>> #!/bin/bash
>> exec srun $* --pty -u ${SHELL} -l
>>
>> That's it..
>>
>> Hope that helps!
>> Chris
>> --
>>   Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC
>>
>>



More information about the slurm-users mailing list