To offline the nodes
# mnodectl -m state=drained node1
To flush the nodes
# mnodectl -m state=flush node1
To reserve the nodes
# mnodectl -m state=reserved node1
To delete nodes
# mnodectl -d node1
Linux Toolkits Blog is a scratch-pad of tips and findings on Linux
# mnodectl -m state=drained node1
# mnodectl -m state=flush node1
# mnodectl -m state=reserved node1
# mnodectl -d node1
# mjobctl -c job_id
# mjobctl -c -w state=USERHOLD
# mjobctl -c -w user=user1 -w acct=acct1
# mjobctl -h user job1045
# mjobctl -u all job1045
# mjobctl -u user,system job1045
# mjobctl -x job1045
# mjobctl -x -w flags=ignorepolicies job1046
# mjobctl -r job1045
# mjobctl -R job1045
# mjobctl -s job1045
# mjobctl -S job1045
# mjobctl -p +1000 job1045
# mjobctl -p 1000 job1045 --flags=relative
# mjobctl -q diag job1045
# mjobctl -q starttime job1045
# mdiag -j -w user=user1
# mdiag -j -w state=Idle,Running
# mdiag -j --xml job_idIn the XML, the master job element contains a child element called ArraySubJobs that contains the subjobs in the array.
# mdiag -j -v --xml job_id
Name State Procs Memory Disk Swap Speed Opsys Arch Par Load Res Classes Network Features Node-c00 Idle 8:8 32161:32161 1:1 62862:64158 2.10 linux [NONE] DEF 0.00 000 [rambutan_8:8][queue_8:8][lemo [DEFAULT] ..... ..... Node-c03 Busy 0:8 32161:32161 1:1 62735:64158 2.10 linux [NONE] DEF 8.00 001 [rambutan_8:8][queue_0:8][queue [DEFAULT] ..... .....
# mdiag -n |grep Busy # mdiag -n|grep Idle
Happy viewing.....