Re: [slurm-users] question about configuration in slurm.conf
On Tue, Sep 26, 2023 at 03:04:34PM +0200, Ole Holm Nielsen wrote: > On 9/26/23 14:50, Groner, Rob wrote: > > There's a builtin slurm command, I can't remember what it is and google > > is failing me, that will take a compacted list of nodenames and return > > their full names, and I'm PRETTY sure it will do the opposite as well > > (what you're asking for). > > > > It's probably sinfo or scontrolmaybe an sutil if that exists. > > The command would be: > > scontrol show hostname awn-0[01-32,46-77,95-99] Wondering, why [...] is allowed as a suffix, only. Historical reasons? Or: Why is not a trailing string like foo_[000-999]_bar or even char sequences like foo_[a..z]_bar allowed? Thanx a lot, jel. > /Ole > > > -- > > *From:* slurm-users on behalf of > > Felix > > *Sent:* Tuesday, September 26, 2023 7:22 AM > > *To:* Slurm User Community List > > *Subject:* [slurm-users] question about configuration in slurm.conf > > hello > > > > I have at my site the following work nodes > > > > awn001 ... awn099 > > > > and then it continues awn100 ... awn199 > > > > How can I configure this line > > > > PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] Default=YES > > MaxTime=INFINITE State=UP > > > > so that it can contain the nodes from 001 to 199 > > > > can I write: > > > > PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] awn-1[00-99] > > Default=YES MaxTime=INFINITE State=UP > > > > is this correct? -- Otto-von-Guericke University http://www.cs.uni-magdeburg.de/ Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2 39106 Magdeburg, Germany Tel: +49 391 67 52768
Re: [slurm-users] question about configuration in slurm.conf
Yes! Thanks. I'll try to remember it for next time.
Re: [slurm-users] question about configuration in slurm.conf
Hi, you are talking about scontrol hostlist scontrol hostlistsorted and scontrol hostnames find it here: https://slurm.schedmd.com/scontrol.html#OPT_hostlist Best. Am 26.09.23 um 14:50 schrieb Groner, Rob: There's a builtin slurm command, I can't remember what it is and google is failing me, that will take a compacted list of nodenames and return their full names, and I'm PRETTY sure it will do the opposite as well (what you're asking for). It's probably sinfo or scontrolmaybe an sutil if that exists. Sorry, that's all the help I can give. *From:* slurm-users on behalf of Felix *Sent:* Tuesday, September 26, 2023 7:22 AM *To:* Slurm User Community List *Subject:* [slurm-users] question about configuration in slurm.conf hello I have at my site the following work nodes awn001 ... awn099 and then it continues awn100 ... awn199 How can I configure this line PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] Default=YES MaxTime=INFINITE State=UP so that it can contain the nodes from 001 to 199 can I write: PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] awn-1[00-99] Default=YES MaxTime=INFINITE State=UP is this correct? Thank you Felix -- Herbert Steininger Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Wissenschaftliches Rechnen | bwHPC 78457 Konstanz Tel: +49 7531 882103 smime.p7s Description: S/MIME Cryptographic Signature
Re: [slurm-users] question about configuration in slurm.conf
On 9/26/23 14:50, Groner, Rob wrote: There's a builtin slurm command, I can't remember what it is and google is failing me, that will take a compacted list of nodenames and return their full names, and I'm PRETTY sure it will do the opposite as well (what you're asking for). It's probably sinfo or scontrolmaybe an sutil if that exists. The command would be: scontrol show hostname awn-0[01-32,46-77,95-99] /Ole -- *From:* slurm-users on behalf of Felix *Sent:* Tuesday, September 26, 2023 7:22 AM *To:* Slurm User Community List *Subject:* [slurm-users] question about configuration in slurm.conf hello I have at my site the following work nodes awn001 ... awn099 and then it continues awn100 ... awn199 How can I configure this line PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] Default=YES MaxTime=INFINITE State=UP so that it can contain the nodes from 001 to 199 can I write: PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] awn-1[00-99] Default=YES MaxTime=INFINITE State=UP is this correct?
Re: [slurm-users] question about configuration in slurm.conf
There's a builtin slurm command, I can't remember what it is and google is failing me, that will take a compacted list of nodenames and return their full names, and I'm PRETTY sure it will do the opposite as well (what you're asking for). It's probably sinfo or scontrolmaybe an sutil if that exists. Sorry, that's all the help I can give. From: slurm-users on behalf of Felix Sent: Tuesday, September 26, 2023 7:22 AM To: Slurm User Community List Subject: [slurm-users] question about configuration in slurm.conf hello I have at my site the following work nodes awn001 ... awn099 and then it continues awn100 ... awn199 How can I configure this line PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] Default=YES MaxTime=INFINITE State=UP so that it can contain the nodes from 001 to 199 can I write: PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] awn-1[00-99] Default=YES MaxTime=INFINITE State=UP is this correct? Thank you Felix -- Dr. Eng. Farcas Felix National Institute of Research and Development of Isotopic and Molecular Technology, IT - Department - Cluj-Napoca, Romania Mobile: +40742195323
Re: [slurm-users] question about configuration in slurm.conf
Felix writes: > I have at my site the following work nodes > > awn001 ... awn099 > > and then it continues awn100 ... awn199 I presume you meant awn-001 etc, not awn001. If not, replace "awn-" with "awn" below. > How can I configure this line > > PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] Default=YES > MaxTime=INFINITE State=UP > > so that it can contain the nodes from 001 to 199 > PartitionName=debug Nodes=awn-0[01-32,46-77,95-99],awn-1[00-99] ... or PartitionName=debug Nodes=awn-[001-032,046-077,095-199] ... should work. I'd personally use the second one. -- Regards, Bjørn-Helge Mevik, dr. scient, Department for Research Computing, University of Oslo signature.asc Description: PGP signature
Re: [slurm-users] question about configuration in slurm.conf
Hi, try ... Nodes=awn-[001-032,046-077,095-099,100-199] ... but haven't tested that right now. Best, Herbert Am 26.09.23 um 13:22 schrieb Felix: hello I have at my site the following work nodes awn001 ... awn099 and then it continues awn100 ... awn199 How can I configure this line PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] Default=YES MaxTime=INFINITE State=UP so that it can contain the nodes from 001 to 199 can I write: PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] awn-1[00-99] Default=YES MaxTime=INFINITE State=UP is this correct? Thank you Felix -- Herbert Steininger Universität Konstanz Kommunikations-, Informations-, Medienzentrum (KIM) Wissenschaftliches Rechnen | bwHPC 78457 Konstanz Tel: +49 7531 882103 smime.p7s Description: S/MIME Cryptographic Signature
[slurm-users] question about configuration in slurm.conf
hello I have at my site the following work nodes awn001 ... awn099 and then it continues awn100 ... awn199 How can I configure this line PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] Default=YES MaxTime=INFINITE State=UP so that it can contain the nodes from 001 to 199 can I write: PartitionName=debug Nodes=awn-0[01-32,46-77,95-99] awn-1[00-99] Default=YES MaxTime=INFINITE State=UP is this correct? Thank you Felix -- Dr. Eng. Farcas Felix National Institute of Research and Development of Isotopic and Molecular Technology, IT - Department - Cluj-Napoca, Romania Mobile: +40742195323