配置提交节点

方法一:配置lsf.cluster.<clustername>

到$LSF_TOP/conf目录,编辑lsf.cluster.<clustername>文件。将下面配置中的server列设置成0,此节点就会作为Login节点。此方法通过bhosts不可以查看到这个节点。

bash 复制代码
# cd $LSF_ENVDIR

# vim lsf.cluster.cluster1

Begin   Host

HOSTNAME  model    type        server  RESOURCES    #Keywords

master   !   !   1   (mg)

node02  !       !       1       ()

node01  !       !  0       ()

End     Host



# su - lsfadmin

$ lsadmin reconfig

$ badmin mbdrestart

如果使用lshosts查看lsf client的type、model是UNKNOWN,可以手动在lsf.cluster.<clustername>文件里为这个机子配置一个type。在type那列,将 !改为具体的type值,可运行lshosts -w查看type值。

配置如下所示:

bash 复制代码
[lsfadmin@master ~]$ lshosts -w

HOST_NAME       type       model  cpuf ncpus maxmem maxswp server RESOURCES

master          X86_64    Intel_E5  12.5     4   3.6G   3.8G    Yes (mg)

node02          X86_64    Intel_E5  12.5     4   3.6G   3.8G    Yes ()

node01          UNKNOWN UNKNOWN_    12.5     4   3.6G   3.8G    Yes ()

复制上面的type类型到lsf.cluster.<clustername>文件中。

bash 复制代码
# vim $LSF_ENVDIR/lsf.cluster.cluster1



Begin   Host

HOSTNAME  model    type        server  RESOURCES    #Keywords

master   !   !   1   (mg)

node02  !       !       1       ()

node01   Intel_E5    X86_64  0       ()

End     Host



# su - lsfadmin

$ lsadmin reconfig

$ badmin mbdrestart

方法二:配置lsb.hosts

将lsb.hosts文件中的 MXJ设置为0,代表此节点无资源,不接收作业。此方法通过bhosts可以查看到这个节点。

bash 复制代码
[root@master conf]# cd lsbatch/cluster1/configdir/
[root@master configdir]# vim lsb.hosts 
[root@master configdir]# grep -w 'Begin Host' lsb.hosts -A 10
Begin Host
HOST_NAME MXJ   r1m     pg    ls    tmp mem ut  DISPATCH_WINDOW  AFFINITY  # Keywords
default    !    ()      ()    ()     ()  ()  ()    ()		  (Y)   # Example
master    32    ()      ()    ()     ()   ()  ()  ()		  (Y)   # Example
node1   32    ()      ()    ()     ()  ()  ()   ()		  (Y)   # Example
node2   0    ()      ()    ()     ()   ()  ()  ()		  (Y)   # Example


[root@master configdir]# su - lsfadmin
[lsfadmin@master ~]$ badmin reconfig
相关推荐
weixin_428498495 天前
解决 Ubuntu 下 VTune 无法收集 CPU 硬件时间计数数据的问题
hpc
weixin_428498498 天前
CFD中的动量方程非守恒形式详解
hpc
weixin_428498498 天前
在OpenFOAM中自定义动态变化的边界条件
c++·hpc
weixin_428498498 天前
在AMGCL中使用多个GPU和多个计算节点求解大规模稀疏矩阵方程
hpc
weixin_4284984912 天前
在Fortran程序中嵌入Lua解释器
lua·hpc
weixin_4284984912 天前
使用MPI-IO并行读写HDF5文件
hpc
weixin_4284984914 天前
AMGCL库的Backends及使用示例
hpc
weixin_4284984914 天前
在AMGX中使用MPI加载自定义分布式矩阵和向量
hpc
_考不上研究生不改名15 天前
【完美解决】VSCode连接HPC节点,已配置密钥却还是提示需要输入密码
linux·服务器·vscode·远程连接·hpc·超算集群
FS_Marking1 个月前
飞速(FS)InfiniBand解决方案助力领先科技公司网络升级
hpc·400g·800g