步骤如下所示:
[root@master ~]# bqueues //目前root无权限
User permission denied
[root@master ~]# cd $LSF_ENVDIR
[root@master conf]# vim lsf.conf
[root@master conf]# grep LSF_ROOT_USER lsf.conf
LSF_ROOT_USER=Y
[root@master conf]# su - lsfadmin
[lsfadmin@master ~]$ lsadmin reconfig
Checking configuration files ...
No errors found.
Restart only the master candidate hosts? [y/n] y
Restart LIM on <master> ...... done
[lsfadmin@master ~]$ badmin mbdrestart
Checking configuration files ...
No errors found.
mbatchd parallel restart initiated
[lsfadmin@master ~]$ exit
logout
[root@master conf]# bqueues //root已有权限
QUEUE_NAME PRIO STATUS MAX JL/U JL/P JL/H NJOBS PEND RUN SUSP
myqueue 80 Open:Active - - - - 0 0 0 0
admin 50 Open:Active - - - - 20 0 20 0
owners 43 Open:Active - - - - 1 0 1 0
priority 43 Open:Active - - - - 42 4 38 0
night 40 Open:Inact - - - - 0 0 0 0
short 35 Open:Active - - - - 6 0 6 0
normal 30 Open:Active - - - - 196 171 25 0
interactive 30 Open:Active - - - - 0 0 0 0
idle 20 Open:Active - - - - 19 19 0 0
[root@master conf]#
参考链接:https://www.ibm.com/docs/zh/spectrum-lsf/10.1.0?topic=cluster-temporarily-enable-root-privileges