Hi, I'm trying to get some resource configurations in place during kickstart. I have the following in my kickstart file "replace-partition.xml". The file is run during kickstart: I can see output to text files when I add debugging info.
This code runs correctly if I run it in a shell once the node is up. The issue seems to be that qhost and qconf aren't outputting anything when they run. Is that to be expected? Here's what I have added: <post> <....snipped the default stuff for this post...> # Here's the code as I'd like it to work: # This code gets reached. I can output these env vars and the # values are correct. export SGEBIN=$SGE_ROOT/bin/$SGE_ARCH export NODE=$(/bin/hostname -s) export MEMFREE=`$SGEBIN/qhost -F mem_total -h $NODE|tail -n 1|cut -d: -f3 | cut -d= -f2` $SGEBIN/qconf -mattr exechost complex_values h_vmem=$MEMFREE $NODE 2>&1 > /root/qconf_complex_setup.log $SGEBIN/qconf -mattr exechost complex_values s_vmem=$MEMFREE $NODE 2>&1 >> /root/qconf_complex_setup.log </post> Thanks! -M
_______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users