Workaround Re: [torqueusers] Non-cummulative pbsnodes -o command
James J Coyle
jjc at iastate.edu
Thu Feb 14 11:32:48 MST 2008
John,
I don't get this behavior (version 2.1.2), but it world be quite annoying
if I did.
If you'd like a fairly easy workaround, put the following script
in a file ahead of /usr/local/bin in your PATH and name it pbsnodes,
E.g. call it /local/bin/pbsnodes
the issue chmod u+x /local/bin/pbsnodes
and then (if your in the csh or tcsh)
setenv PATH /local/bin:${PATH}
rehash
Now pbsnodes -o
should work as you want it to, as pbsnodes with no -o
passes unchanged to /usr/local/bin/pbsnodes
An easy mod makes this work with -d
once that becomes available.
#!/bin/ksh
PBSDIR=/usr/local/bin
OFLAG_PRESENT=`echo $* | grep '\-o'`
if [ -n "${OFLAG_PRESENT}" ] ; then
ALREADY_OFFLINE="`${PBSDIR}/pbsnodes -l | awk '/offline/ {print $1}'`"
${PBSDIR}/pbsnodes $* ${ALREADY_OFFLINE}
else
${PBSDIR}/pbsnodes $*
fi
--
James Coyle, PhD
SGI Origin, Alpha, Xeon and Opteron Cluster Manager
High Performance Computing Group
235 Durham Center
Iowa State Univ. phone: (515)-294-2099
Ames, Iowa 50011 web: http://jjc.public.iastate.edu
> --===============1795775752==
> Content-Type: multipart/alternative;
> boundary="----=_Part_2028_2637920.1203012677886"
>
> ------=_Part_2028_2637920.1203012677886
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> "It is important that all the nodes known to be down are given as arguments
> on the command line. This is because nodes which are not listed are
> assumed to be UP and will be indicated as such if they were previously
> marked DOWN."
>
> marking a node as down is different than marking a node as offline. Are you
> sure you see the problem with -o and you aren't using -d to mark them down?
>
> current versions of torque do not allow you to mark nodes down with the -d
> command
>
>
> I have been using torque for a long time (well before the versions you are
> using) and pbsnodes -o has always worked as expected for me.
>
> ------=_Part_2028_2637920.1203012677886
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> <br><font face="Verdana, Helvetica, Arial"><span style="font-size: 12px;">"It
> is important that all the nodes known to be down are given as arguments
> on the command line. This is because nodes which are not listed are
> assumed to be UP and will be indicated as such if they were previously
> marked DOWN."<br><br>marking a node as down is different than marking a node as offline. Are you sure you see the problem with -o and you aren't using -d to mark them down?<br><br>current versions of torque do not allow you to mark nodes down with the -d command<br>
> <br><br>I have been using torque for a long time (well before the versions you are using) and pbsnodes -o has always worked as expected for me.<br></span></font>
>
> ------=_Part_2028_2637920.1203012677886--
>
> --===============1795775752==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>
> --===============1795775752==--
>
More information about the torqueusers
mailing list