LSF client安装

在master01节点添加:

[root@master01 conf]# pwd
/share01/app/lsf/conf
[root@master01 conf]# ls
cshrc.lsf  lsf.cluster.nju_cluster1  lsf.shared      perl.lsf
ego        lsf.conf                  lsf.shared.old  profile.lsf
lsbatch    lsf.entitlement           lsf.task        resource_connector
[root@master01 conf]# vi lsf.cluster.nju_cluster1
# $Revision$Date$
#-----------------------------------------------------------------------
# Copyright IBM Corp. 1992, 2016. All rights reserved. 
# 
# After editing this file, run "lsadmin reconfig" and 
# "badmin mbdrestart" to apply your changes.
#
# T H I S   I S   A    O N E   P E R   C L U S T E R    F I L E
#
# This is a sample cluster definition file.  There is a cluster
# definition file for each cluster.  This file's name should be 
# lsf.cluster.<cluster-name>.  
# See lsf.cluster(5) and the "Administering IBM Spectrum LSF".
#

Begin   ClusterAdmins
Administrators = lsfadmin
End    ClusterAdmins 

Begin	Host
HOSTNAME  model    type        server  RESOURCES    #Keywords
#apple    Sparc5S  SUNSOL       1     (sparc bsd)   #Example
#peach    DEC3100  DigitalUNIX  1     (alpha osf1)
#banana   HP9K778  HPPA         1     (hp68k hpux)
#mango    HP735    HPPA         1     (hpux cs)
#grape    SGI4D35  SGI5         1     (irix)
#lemon    PC200    LINUX        1     (linux)
#pear	  IBM350   IBMAIX4      1     (aix cs)
#plum     PENT_100 NTX86        1     (nt)
#berry    DEC3100  !            1     (ultrix fs bsd mips dec)
#orange   !	   SUNSOL       1     (sparc bsd)   #Example
#prune	  !	   !            1     (convex)
master01   !   !   1   (mg)   
node02    !    !   1   (linux)
End     Host

Begin Parameters
# LSF_HOST_ADDR_RANGE=*.*.*.*
# FLOAT_CLIENTS_ADDR_RANGE=*.*.*.*
# FLOAT_CLIENTS=10
End Parameters

# Begin ResourceMap
# RESOURCENAME  LOCATION
# tmp2	        [default]
# nio	        [all]
# console	[default]
# osname        [default]
# osver         [default]
# cpuarch       [default]
# cpuspeed      [default]
# bandwidth     [default]
# availcpufreqs [default]
# currcpufreqs  [default]
# End ResourceMap

[root@master01 conf]# lsadmin reconfig     #让配置生效

client 服务器操作:

[root@node02 conf]# lsf_daemons start

[root@node02 conf]# lsf_daemons status
Show status of the LSF subsystem
lim (pid 13094) is running...
res (pid 13096) is running...
sbatchd (pid 13098) is running...
[root@node02 conf]# bhosts
Failed in an LSF library call: Slave LIM configuration is not ready yet
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             closed          -     24      0      0      0      0      0
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             closed          -     24      0      0      0      0      0
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             closed          -     24      0      0      0      0      0
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             closed          -     24      0      0      0      0      0
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             unavail         -     24      0      0      0      0      0
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             unavail         -     24      0      0      0      0      0
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             unavail         -     24      0      0      0      0      0
[root@node02 conf]# bhosts
HOST_NAME          STATUS       JL/U    MAX  NJOBS    RUN  SSUSP  USUSP    RSV 
master01           ok              -      4      0      0      0      0      0
node02             ok              -     24      0      0      0      0      0

注:

[root@master01 init.d]# which lsf_daemons    #查看绝对路径
/share01/app/lsf/10.1/linux3.10-glibc2.17-x86_64/etc/lsf_daemons
[root@master01 init.d]# psh all "/share01/app/lsf/10.1/linux3.10-glibc2.17-x86_64/etc/lsf_daemons restart"

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值