{"id":541,"date":"2022-06-15T10:40:17","date_gmt":"2022-06-15T02:40:17","guid":{"rendered":"http:\/\/www.rchen.top\/?p=541"},"modified":"2022-06-15T10:40:18","modified_gmt":"2022-06-15T02:40:18","slug":"ibm-spectrum-lsf-10-2%e7%a4%be%e5%8c%ba%e7%89%88%e6%90%ad%e5%bb%ba%e7%ac%94%e8%ae%b0%ef%bf%bc","status":"publish","type":"post","link":"https:\/\/www.rchen.top\/?p=541","title":{"rendered":"IBM Spectrum LSF 10.2\u793e\u533a\u7248\u642d\u5efa\u7b14\u8bb0\ufffc"},"content":{"rendered":"<p style=\"margin: 0in; font-family: \u5b8b\u4f53; font-size: 12.0pt;\"><strong>\u8f6f\u4ef6\u8bf4\u660e\uff1a<\/strong><\/p>\n<p style=\"margin: 0in; font-family: \u5b8b\u4f53; font-size: 12.0pt;\">LSF Suit Community Edition\uff08\u793e\u533a\u7248\uff09\uff0c\u6700\u591a\u652f\u630110\u8282\u70b9\uff0c\u514d\u8d39\u4f7f\u7528\uff1b<\/p>\n<p style=\"margin: 0in; font-family: \u5b8b\u4f53; font-size: 12.0pt;\"><span lang=\"zh-CN\">LSF<\/span> <span lang=\"zh-CN\">\u6b63\u5f0f\u7248\u4e3a\u6536\u8d39\u4ea7\u54c1\uff1b<\/span><\/p>\n<h3>1\u3001\u57fa\u7840\u914d\u7f6e<\/h3>\n<p>\u64cd\u4f5c\u7cfb\u7edfredhat6.9<\/p>\n<p>\u4fee\u6539\u4e3b\u673a\u540d,test1 test2 test3<\/p>\n<p>\u4fee\u6539\/etc\/hosts\u6587\u4ef6(hosts\u9700\u8981\u4e0e\u4e3b\u673a\u540d\u5bf9\u5e94)<\/p>\n<p>\u5173\u95ed\u9632\u706b\u5899\uff0c\u5173\u95edselinux<\/p>\n<p>service iptables \u00a0firewalld stop<\/p>\n<p>chkconfig iptables off<\/p>\n<p>vi \/etc\/selinux\/config<\/p>\n<h3>2\u3001\u5b89\u88c5NFS<\/h3>\n<p>\u5b89\u88c5\u914d\u7f6e\u6b65\u9aa4\u7565\uff0c\u5c06<\/p>\n<p>\/cadtools<\/p>\n<p>\/home<\/p>\n<p>\u76ee\u5f55\u8bbe\u7f6e\u6210\u5171\u4eab\u76ee\u5f55<\/p>\n<h3>3\u3001\u5b89\u88c5NIS<\/h3>\n<p>\u7ba1\u7406\u8282\u70b9\u901a\u8fc7NFS\u5c06\/home\u76ee\u5f55\u5171\u4eab\u7ed9\u5176\u4ed6\u8282\u70b9\uff0c\u518d\u4f7f\u7528NIS\u7ba1\u7406\u96c6\u7fa4\u7684\u5bc6\u7801\u7b49\u8ba4\u8bc1\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6240\u6709\u8282\u70b9\u4e0b\u7684\u7528\u6237\u76f8\u540c\u4e14\u53ef\u4ee5\u65e0\u9700\u5bc6\u7801\u76f4\u63a5\u767b\u9646\u3002\u5982\u679c\u53ea\u901a\u8fc7NFS\u5c06\/home\u5171\u4eab\uff0c\u5728\u767b\u9646\u666e\u901a\u7528\u6237\u65f6\u4f1a\u63d0\u793a\u7528\u6237\u4e0d\u5b58\u5728\uff0c\u56e0\u4e3a\u6ca1\u6709\u5bc6\u7801\u8ba4\u8bc1<\/p>\n<p>service rpcbind start<\/p>\n<p>service yppasswdd start<\/p>\n<p>service ypserv start<\/p>\n<p>chkconfig rpcbind on<\/p>\n<p>chkconfig ypserv on<\/p>\n<p>chkconfig yppasswdd on<\/p>\n<p>\u5ba2\u6237\u7aef<\/p>\n<p>service rpcbind start<\/p>\n<p>service ypbind start<\/p>\n<p>chkconfig rpcbind on<\/p>\n<p>chkconfig ypbind on<\/p>\n<h3>4\u3001\u5b89\u88c5LSF<\/h3>\n<h4>4.1\u4e0b\u8f7d<\/h4>\n<p><strong>LSF<\/strong><strong>\u793e\u533a\u724810.2(\u793e\u533a\u7248\u9ed8\u8ba4\u53ea\u80fd\u8fd0\u884c2cpu)<\/strong><\/p>\n<p>\u4e0b\u8f7d\u94fe\u63a5<\/p>\n<p><a href=\"https:\/\/www.ibm.com\/search?lang=zh&amp;cc=cn&amp;q=lsf&amp;tabType%5b0%5d=downloads\">https:\/\/www.ibm.com\/search?lang=zh&amp;cc=cn&amp;q=lsf&amp;tabType[0]=downloads<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-542\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206151.png\" alt=\"\" width=\"708\" height=\"445\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-543\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206152.png\" alt=\"\" width=\"1260\" height=\"882\" \/><\/p>\n<p>\u4e0b\u8f7d\u597d\u4f20\u5230\u670d\u52a1\u5668<\/p>\n<h4>4.2\u89e3\u538b<\/h4>\n<p>\uff08\u4ee5\u4e0b\u90fd\u662f\u4e3b\u8282\u70b9master\u4e0a\u7684\u64cd\u4f5c\uff09<\/p>\n<p><strong>tar -zxvf lsfsce10.2.0.6-x86_64.tar.gz<\/strong><\/p>\n<p>\u6709\u4e09\u4e2a\u6587\u4ef6\u5939\uff0c\u6709lsf\u5b89\u88c5\u5305\u3001lsf\u5e94\u7528\u4e2d\u5fc3\u548cmpi\u7684\u7ec4\u4ef6<\/p>\n<p>tar \u2013zxvf \/lsf\/lsf10.1_lsfinstall_linux_x86_64.tar.Z<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-544\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206153.png\" alt=\"\" width=\"473\" height=\"87\" \/><\/p>\n<p>\u5c06\u89e3\u538b\u7684lsf10.1_lsfinstall\u6587\u4ef6\u5939\u62f7\u8d1d\u5230\/cadtools\/share\/<\/p>\n<p><strong>mkdir \/cadtools\/share\/<\/strong><\/p>\n<p><strong>cp -r lsf10.1_lsfinstall \/cadtools\/share\/<\/strong><\/p>\n<p><strong>cp lsf10.1_linux2.6-glibc2.3-x86_64.tar.Z \/cadtools\/share\/ <\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-545\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206154.png\" alt=\"\" width=\"671\" height=\"93\" \/><\/p>\n<p><strong>lsf10.1_linux2.6-glibc2.3-x86_64.tar.Z<\/strong>\u8fd9\u4e2a\u538b\u7f29\u5305\u4e0d\u8981\u89e3\u538b\uff0c\u5b98\u65b9\u6587\u6863\u662f\u8fd9\u6837\u5199\u7684\uff0c\u5728\u5f15\u5bfc\u7a0b\u5e8f\u5b89\u88c5\u524d\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u6307\u5b9a\u6b64\u538b\u7f29\u5305\u7684\u4f4d\u7f6e\uff0c\u5b89\u88c5\u65f6\u4f1a\u81ea\u52a8\u89e3\u538b<\/p>\n<h4>4.3\u914d\u7f6e<\/h4>\n<p><strong>\u4fee\u6539\/cadtools\/share\/lsf10.1_lsfinstall\/install.config\u6587\u4ef6<\/strong>\uff0c\u9700\u8981\u5728\u8fd9\u91cc\u6307\u5b9a\u597d\u4e3b\u8282\u70b9\u548c\u4ece\u8282\u70b9\u3002\u5b89\u88c5\u65f6\u6309\u7167\u8fd9\u4e2a\u6587\u6863\u81ea\u52a8\u914d\u7f6e\u96c6\u7fa4\u7684\u62d3\u6251\u5173\u7cfb\uff08\u91cd\u8981\uff09\u3002\u6211\u662f2\u4e2a\u8282\u70b9\u5206\u522b\u53ebtest1,test2<\/p>\n<p>\u9700\u8981\u8fd9\u6837\u6539<\/p>\n<p>LSF_TOP=&#8221;\/cadtools\/share\/lsf&#8221; <strong>\u8fd9\u4e2a\u662f\u6240\u6709\u96c6\u7fa4\u673a\u5668\u90fd\u53ef\u4ee5\u8bbf\u95ee\u7684\u5171\u4eab\u6587\u4ef6\u5939<\/strong>\uff08\u901a\u8fc7NFS\u5b9e\u73b0\u7684\uff09<\/p>\n<p>LSF_ADMINS=\u201clsfadmin\u201d \u524d\u9762\u521b\u5efa\u7684\u6240\u6709\u8282\u70b9\u90fd\u6709\u7684\u7528\u6237<\/p>\n<p>LSF_CLUSTER_NAME=\u201ccluster1\u201d<\/p>\n<p>\u81ea\u5df1\u547d\u540d\uff0c\u6ce8\u610f\u4e00\u5b9a\u4e0d\u8981\u4e0e\u96c6\u7fa4\u5185\u7684\u7528\u6237\u7ec4\u6216\u7528\u6237\u540d\u91cd\u540d\u4e86\uff08\u91cd\u8981\uff09<\/p>\n<p>LSF_MASTER_LIST=\u201ctest1\u201d<\/p>\n<p>\u96c6\u7fa4\u7ba1\u7406\u8282\u70b9\u7684\u540d\u79f0\u5c31\u662f\u4e0a\u9762\u5b9a\u4e49\u7684\uff0c\u8981\u6c42\u53ef\u4ee5\u6839\u636e\u8fd9\u4e2a\u540d\u5b57\u627e\u5230\u673a\u5668\u7684IP\uff0c\u5373\u8981\u6309\u7167\u524d\u9762\u6b65\u9aa4\u5148\u5b9a\u4e49\u597d\/etc\/hosts\u6587\u4ef6\u3002<\/p>\n<p>LSF_TARDIR=&#8221;\/cadtools\/share\/&#8221;<\/p>\n<p>\u6307\u5b9a\u538b\u7f29\u5305\uff0c\u8fd9\u662f\u5b89\u88c5\u7684\u6a21\u5f0f\uff0c\u5b98\u7f51\u4e0a\u4e0b\u8f7d\u65f6\u6709\u597d\u591a\u4e0d\u540c\u7cfb\u7edf\u7684\u5b89\u88c5\u5305\uff0c\u5982\u679c\u96c6\u7fa4\u662f\u4e0d\u540c\u57fa\u7840\u67b6\u6784\u7684\u9700\u8981\u4e0b\u8f7d\u4e0d\u540c\u7684\u8fd9\u4e2a\u5305\uff0c\u7136\u540e\u5728\u8fd9\u4e2a\u6587\u4ef6\u91cc\u9762\u6307\u5b9a\uff0c\u6211\u8fd9\u91cc\u90fd\u662famd_64\u7684\u5c31\u4e0d\u9700\u8981\u4e0b\u8f7d\u90a3\u4e48\u591a\u4e86<\/p>\n<p>LSF_ADD_SERVERS=\u201ctest1 test2\u201d<\/p>\n<p>\u8fd9\u662f\u670d\u52a1\u8282\u70b9\uff08\u5b98\u65b9\u79f0\u547c\uff0c\u5c31\u662f\u5de5\u4f5c\u8282\u70b9\uff09\uff0c\u9ed8\u8ba4master\u4e5f\u662f\u5de5\u4f5c\u8282\u70b9\uff0c\u5e94\u8be5\u662f\u53ef\u4ee5\u6539\uff0c\u53ef\u4ee5\u53bb\u5b98\u7f51\u627e\u6587\u6863\u7136\u540e\u8bbe\u7f6e\uff0c\u8fd9\u91cc\u6211\u6ca1\u6709\u7ba1\u5b83\u3002<\/p>\n<p><strong>LSF_TOP=&#8221;\/cadtools\/share\/lsf&#8221; <\/strong><\/p>\n<p><strong>LSF_ADMINS=<\/strong><strong>\u201clsfadmin\u201d <\/strong><\/p>\n<p><strong>LSF_CLUSTER_NAME=<\/strong><strong>\u201ccluster1\u201d<\/strong><\/p>\n<p><strong>LSF_MASTER_LIST=<\/strong><strong>\u201ctest1\u201d<\/strong><\/p>\n<p><strong>LSF_TARDIR=&#8221; \/cadtools\/share&#8221;<\/strong><\/p>\n<p><strong>LSF_ADD_SERVERS=<\/strong><strong>\u201ctest1 test2\u201d<\/strong><\/p>\n<h4>4.4\u5b89\u88c5<\/h4>\n<p>\uff08\u6839\u636e\u914d\u7f6e\u6587\u4ef6\u5b89\u88c5lsf\u670d\u52a1\uff0c\u9ed8\u8ba4\u672c\u6587\u6240\u6709\u90fd\u662froot\u7528\u6237\u64cd\u4f5c\uff0c\u652f\u6301\u975eroot\u5b89\u88c5\u4f46\u662f\u9700\u8981\u8bfb\u8005\u53bb\u770b\u5b98\u65b9\u6587\u6863\u518d\u505a\u51fa\u6539\u53d8\uff09<\/p>\n<p>cd \/cadtools\/share\/lsf10.1_lsfinstall<\/p>\n<p><strong>.\/lsfinstall -f install.config<\/strong><\/p>\n<p>\u6267\u884c\u540e\u4f1a\u9047\u5230\u4e0b\u9762\u7684session<\/p>\n<p>Press Enter to continue viewing the license agreement, or<\/p>\n<p>enter \u201c1\u201d to accept the agreement, \u201c2\u201d to decline it, \u201c3\u201d<\/p>\n<p>to print it, \u201c4\u201d to read non-IBM terms, or \u201c99\u201d to go back<\/p>\n<p>to the previous screen.<\/p>\n<p><strong>\u8f93\u51651<\/strong><\/p>\n<p>Searching LSF 10.1 distribution tar files in \/cadtools\/share\/lsf_distrib Please wait \u2026<\/p>\n<p>linux2.6-glibc2.3-x86_64<\/p>\n<p>Press 1 or Enter to install this host type: <strong>\u8f93\u51651<\/strong><\/p>\n<p>master\u8282\u70b9\u5b89\u88c5\u5b8c\u6210<\/p>\n<p>\u7531\u4e8e\u5b89\u88c5\u5b8c\u9ed8\u8ba4\u96c6\u7fa4\u95f4\u901a\u8fc7rsh\u901a\u4fe1\uff0c\u6211\u4eec\u9700\u8981\u4fee\u6539\u4e3assh<\/p>\n<p>\u4fee\u6539<strong>\/cadtools\/share\/lsf\/conf\/lsf.conf<\/strong><\/p>\n<p>\u5728\u91cc\u9762\u968f\u4fbf\u4e00\u884c\u52a0\u4e0a<\/p>\n<p><strong>LSF_RSH=ssh<\/strong> \u8981\u5c0f\u5199\u7684\u2018ssh\u2019\uff08\u91cd\u8981\uff09<\/p>\n<p>\u5728\u6267\u884c.\/lsfinstall -f install.config\u547d\u4ee4\u540e\uff0c\u4f1a\u6709\u4e2a\u63d0\u793a\uff0c\u5927\u6982\u662f\u8bf4\u60f3\u8981\u914d\u7f6e\u542f\u52a8\u96c6\u7fa4\u9700\u8981\u53bb\u770b\u4e24\u4e2ahtml\u6587\u4ef6\uff0c\u6709\u4e00\u4e2a\u662f(\/cadtools\/share\/lsf\/10.1\/lsf_quick_admin.html\uff0c\u53e6\u4e00\u4e2a\u8def\u5f84\u5fd8\u4e86\u3002\u4e24\u4e2a\u7f51\u9875\u7684\u540d\u5b57\u662flsf_quick_admin.html\u548clsf_getting_started.html\uff0c\u4e0b\u9762\u7684\u6b65\u9aa4\u662f\u8fd9\u4e24\u4e2a\u52a8\u6001\u751f\u6210\u7684html\u6587\u6863\u91cc\u9762\u7684\u3002\u5c31\u662f\u8ba9lsf\u73af\u5883\u7684\u6307\u4ee4\u751f\u6548\u5e76\u4e14\u8ba9\u8282\u70b9\u95f4\u4e92\u76f8\u77e5\u9053\u3002\uff08\u8fd9\u4e24\u4e2a\u6587\u6863\u5f88\u6709\u7528\uff0c\u4f1a\u6839\u636e\u4f60\u7684\u96c6\u7fa4\u60c5\u51b5\u6c47\u603b\u4f60\u7684\u96c6\u7fa4\u4fe1\u606f\uff0c\u544a\u8bc9\u4f60\u63a5\u4e0b\u6765\u600e\u4e48\u914d\u7f6e\u96c6\u7fa4\u548c\u9a8c\u8bc1\u96c6\u7fa4\u662f\u5426\u914d\u7f6e\u6b63\u786e\uff09<\/p>\n<h4>4.5\u8bbe\u7f6e\u96c6\u7fa4<\/h4>\n<p>\uff08<strong><u>\u6240\u6709\u8282\u70b9\u90fd\u8981\u505a\uff0c\u5426\u5219\u4e3b\u8282\u70b9\u65e0\u6cd5\u83b7\u53d6\u4ece\u8282\u70b9\u72b6\u6001<\/u><\/strong>\uff09<\/p>\n<p>\u6240\u6709\u673a\u5668\u4e0a\u767b\u9646root\u5e76\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\n<p><strong>\/cadtools\/share\/lsf\/10.1\/install\/hostsetup &#8211;top=&#8221;\/cadtools\/share\/lsf&#8221; &#8211;boot=&#8221;y&#8221;<\/strong><\/p>\n<p>This command sets up a host to use the cluster that is installed in the \/cadtools\/share\/lsf directory. It also configures the LSF daemons to start automatically<\/p>\n<p>\u542b\u4e49\u662f\u5728\u96c6\u7fa4\u7684\u8282\u70b9\u5f00\u673a\u548c\u5173\u673a\u65f6\u81ea\u52a8\u542f\u52a8\u548c\u5173\u95edLSF\u7684\u5b88\u62a4\u7a0b\u5e8f\uff0c\u5e76\u8ba9\u96c6\u7fa4\u8282\u70b9\u4f7f\u7528\u5171\u4eab\u7684\/cadtools\/share\/lsf\u6587\u4ef6\u5939\u7684\u914d\u7f6e<\/p>\n<p>\u767b\u9646lsfadmin\u7528\u6237\u6216root\u7528\u6237\u5747\u53ef\uff0c\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4<\/p>\n<p>\u5bf9\u4e8e\u4f7f\u7528csh\u6216tcsh\u7684\u7cfb\u7edf<\/p>\n<p>\u6267\u884c\u8fd9\u4e2a<\/p>\n<p><strong>source \/cadtools\/share\/lsf\/conf\/cshrc.lsf<\/strong><\/p>\n<p>\u5bf9\u4e8e\u4f7f\u7528sh\u3001ksh\u6216bash\u7684\u7cfb\u7edf\u6267\u884c\u8fd9\u4e2a\uff08\u672c\u6587\u662fubuntu1804\u6240\u4ee5\u7528\u7684\u8fd9\u4e2a\uff09<\/p>\n<p><strong>source \/cadtools\/share\/lsf\/conf\/profile.lsf<\/strong><\/p>\n<p>\u4f5c\u7528\uff1a\u8ba9LSF\u7684\u547d\u4ee4\u5728\u5f53\u524d\u4e3b\u673a\u751f\u6548<\/p>\n<p>\u767b\u9646master\u8282\u70b9\u7684root\u7528\u6237\uff0c\u5f00\u59cb\u542f\u52a8LSF\u96c6\u7fa4\uff0c<\/p>\n<p><strong><u>\u6ce8\u610f\uff0c<\/u><\/strong><strong><u>lsf<\/u><\/strong><strong><u>\u793e\u533a\u7248\u4e0d\u5141\u8bb8\u673a\u5668<\/u><\/strong><strong><u>cpu<\/u><\/strong><strong><u>\u6838\u6570\u8d85\u8fc7\u4e24\u4e2a\u6838\uff0c\u5426\u5219<\/u><\/strong><strong><u>lsfstartup<\/u><\/strong><strong><u>\u65e0\u6cd5\u542f\u52a8<\/u><\/strong><\/p>\n<p><strong>lsfstartup<\/strong><\/p>\n<p>\u542f\u52a8\u540e\u6267\u884clshosts\u6216\u8005lsload\u67e5\u770b\u96c6\u7fa4\u60c5\u51b5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-546\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206155.png\" alt=\"\" width=\"809\" height=\"219\" \/><\/p>\n<p>\u6700\u7b80\u964b\u7684\u96c6\u7fa4\u73b0\u5728\u5c31\u642d\u8d77\u6765\u4e86\uff0c\u4e0a\u9762\u7684\u4e24\u4e2ahtml\u6587\u6863\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u547d\u4ee4\u7684\u4f7f\u7528\u53ca\u548c\u5982\u4f55\u6dfb\u52a0\u548c\u5220\u9664\u8282\u70b9\u3002\u4e00\u4e9b\u914d\u7f6e\u4e2d\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u4e5f\u7ed9\u51fa\u4e86\u89e3\u51b3\u65b9\u6cd5\u3002<\/p>\n<h4>4.6\u6dfb\u52a0\u73af\u5883\u53d8\u91cf<\/h4>\n<p>\u5728\u767b\u9646\u8d26\u6237\u4e0b\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\u914d\u7f6e\uff0c\u4f7f\u767b\u9646\u81ea\u52a8\u542f\u7528lsf\u547d\u4ee4<\/p>\n<p>vi .bashrc<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-547\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206156.png\" alt=\"\" width=\"420\" height=\"168\" \/><\/p>\n<p>\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001<\/p>\n<p>[root@test1 ~]# <strong>\/etc\/init.d\/lsf status<\/strong><\/p>\n<p>Show status of the LSF subsystem<\/p>\n<p>lim (pid 1961) is running&#8230;<\/p>\n<p>res (pid 2043) is running&#8230;<\/p>\n<p>sbatchd (pid 2114) is running&#8230;<\/p>\n<p>\u4f7f\u7528tcsh\u60c5\u51b5\u4e0b \u914d\u7f6e.cshrc<\/p>\n<p>[rchen@test1 ~]$ cat .cshrc<\/p>\n<p>#!\/bin\/csh -f<\/p>\n<p>#setenv LSF &#8216;\/cadtools\/share\/lsf\/conf\/cshrc.lsf&#8217;<\/p>\n<p>#set path = ($path $LSF)<\/p>\n<p>#setenv \/cadtools\/share\/lsf\/conf\/profile.lsf<\/p>\n<p><strong>source \/cadtools\/share\/lsf\/conf\/cshrc.lsf<\/strong><\/p>\n<p><strong>alias b &#8216;bsub -Ip -q idle&#8217;\u00a0 #bsub<\/strong><strong>\u65f6\u53ea\u9700\u8981\u5728\u547d\u4ee4\u524d\u52a0\u4e2a<\/strong><strong>b<\/strong><strong>\u76f4\u63a5\u63d0\u4ea4\u4f5c\u4e1a\u65b9\u6cd5<\/strong><\/p>\n<p><strong>alias b &#8216;bsub -Ip -q idle&#8217; <\/strong><strong>\u9ed8\u8ba4\u63d0\u4ea4\u5230\u4f18\u5148\u7ea7\u6700\u5c0f\u7684\u7ec4<\/strong><\/p>\n<p>[rchen@test1 ~]$ bqueues<\/p>\n<p>QUEUE_NAME\u00a0\u00a0\u00a0\u00a0\u00a0 PRIO STATUS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 MAX JL\/U JL\/P JL\/H NJOBS\u00a0 PEND\u00a0\u00a0 RUN\u00a0 SUSP<\/p>\n<p>admin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 50\u00a0 Open:Active\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<\/p>\n<p>owners\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 43\u00a0 Open:Active\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0 \u00a0\u00a0\u00a00\u00a0\u00a0\u00a0\u00a0 0<\/p>\n<p>priority\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 43\u00a0 Open:Active\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<\/p>\n<p>night\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 40\u00a0 Open:Inact\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<\/p>\n<p>short\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 35\u00a0 Open:Active\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<\/p>\n<p>normal\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 30\u00a0 Open:Active\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<\/p>\n<p>interactive\u00a0\u00a0\u00a0\u00a0\u00a0 30\u00a0 Open:Active\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<\/p>\n<p><strong>idle\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 20\u00a0 Open:Active\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0 0<\/strong><\/p>\n<h3>5\u3001\u6dfb\u52a0\u4e3b\u673a\u5230\u96c6\u7fa4<\/h3>\n<p>\u4f8b\u5982\u6dfb\u52a0\u7684\u4e3b\u673a\u4e3atest3<\/p>\n<h4>\u5173\u95ed\u9632\u706b\u5899\uff0c\u5173\u95edselinux<\/h4>\n<p>service iptables stop<\/p>\n<p>chkconfig iptables off<\/p>\n<p>vi \/etc\/selinux\/config<\/p>\n<h4>\u914d\u7f6enfs<\/h4>\n<p>\u6302\u8f7dtest1\u7684\/cadtools,\/home \u76ee\u5f55<\/p>\n<p>mkdir \/cadtools<\/p>\n<p>mount -a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-548\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206157.png\" alt=\"\" width=\"762\" height=\"295\" \/><\/p>\n<h4>\u914d\u7f6ehosts<\/h4>\n<p>\u6240\u6709\u8282\u70b9\u90fd\u9700\u8981\u4fee\u6539<\/p>\n<p>vi \/etc\/hosts<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-549\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206158.png\" alt=\"\" width=\"593\" height=\"93\" \/><\/p>\n<h4>\u5b89\u88c5\u672c\u5730yum<\/h4>\n<h4>\u5b89\u88c5NIS<\/h4>\n<p>\u7528setup\u914d\u7f6enis\u670d\u52a1<\/p>\n<p>yum -y install ypbind*<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-550\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/202206159.png\" alt=\"\" width=\"589\" height=\"329\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-551\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/2022061510.png\" alt=\"\" width=\"300\" height=\"139\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-552\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/2022061511.png\" alt=\"\" width=\"581\" height=\"155\" \/><\/p>\n<h4>\u6dfb\u52a0\u4e3b\u673a\u5230\u96c6\u7fa4\u6709\u4ee5\u4e0b\u4e3b\u8981\u6b65\u9aa4\uff1a<\/h4>\n<p>1 \u5b89\u88c5\u8be5\u4e3b\u673a\u7c7b\u578b\u7684LSF binary \u6587\u4ef6<br \/>\n2 \u6dfb\u52a0\u4e3b\u673a\u4fe1\u606f\u5230lsf.cluster.cluster_name\u6587\u4ef6<br \/>\n3 \u914d\u7f6e\u65b0\u4e3b\u673a<\/p>\n<p>\u4e00\u3001\u5b89\u88c5\u8be5\u4e3b\u673a\u7c7b\u578b\u7684binary\u6587\u4ef6\u3002<\/p>\n<p>cd \/cadtools\/share\/lsf10.1_lsfinstall<\/p>\n<p>\u4fee\u6539install.config\u6587\u4ef6<\/p>\n<p><strong>.\/lsfinstall -f install.config<\/strong><\/p>\n<p>\u4e8c\u3001\u6dfb\u52a0\u4e3b\u673a\u4fe1\u606f\u5230lsf.cluster.cluster_name\u6587\u4ef6<\/p>\n<p>\u68c0\u67e5lsf\u7a0b\u5e8f\u662f\u5426\u8fd0\u884c<\/p>\n<p>[root@test3 conf]# cd \/etc\/init.d\/<\/p>\n<p>[root@test3 init.d]# <strong>.\/lsf status <\/strong><\/p>\n<p>Show status of the LSF subsystem<\/p>\n<p>lim is stopped&#8230;<\/p>\n<p>res is stopped&#8230;<\/p>\n<p>sbatchd is stopped&#8230;<\/p>\n<p>[root@test3 init.d]# <strong>.\/lsf start<\/strong><\/p>\n<p>\u91cd\u65b0\u914d\u7f6elim<\/p>\n<p>\u4f7f\u5f97\u65b0\u4e3b\u673a\u5728\u96c6\u7fa4\u4e2d\u53ef\u7528\u3002<\/p>\n<p>lsadmin reconfig\u547d\u4ee4\u68c0\u67e5\u914d\u7f6e\u9519\u8bef\u3002\u5982\u679c\u6ca1\u6709\u53d1\u73b0\u4e0d\u53ef\u6062\u590d\u7684\u9519\u8bef\uff0c\u5c06\u8981\u6c42\u60a8\u786e\u8ba4\u8981\u5728\u6240\u6709\u4e3b\u673a\u4e0a\u91cd\u65b0\u542f\u52a8lim\uff0c\u5e76\u91cd\u65b0\u914d\u7f6elim\u3002\u5982\u679c\u53d1\u73b0\u4e0d\u53ef\u6062\u590d\u7684\u9519\u8bef\uff0c\u5219\u9000\u51fa\u91cd\u65b0\u914d\u7f6e\u3002<\/p>\n<p>[root@test3 init.d]#<strong> lsadmin reconfig<\/strong><\/p>\n<p>Restart only the master candidate hosts? [y\/n] n<\/p>\n<p>Do you really want to restart LIMs on all hosts? [y\/n] y<\/p>\n<p>Restart LIM on &lt;test1&gt; &#8230;&#8230; done<\/p>\n<p>Restart LIM on &lt;test2&gt; &#8230;&#8230; done<\/p>\n<p>Restart LIM on &lt;test3&gt; &#8230;&#8230; done<\/p>\n<p>\u91cd\u65b0\u914d\u7f6embatchd<\/p>\n<p>[root@test3 init.d]# <strong>badmin reconfig<\/strong><\/p>\n<p>Checking configuration files &#8230;<\/p>\n<p>No errors found.<\/p>\n<p>Reconfiguration initiated<\/p>\n<p>badmin reconfig\u547d\u4ee4\u68c0\u67e5\u914d\u7f6e\u9519\u8bef\u3002\u5982\u679c\u6ca1\u6709\u53d1\u73b0\u4e0d\u53ef\u6062\u590d\u7684\u9519\u8bef\uff0c\u5c06\u8981\u6c42\u60a8\u786e\u8ba4\u91cd\u65b0\u914d\u7f6e\u3002\u5982\u679c\u53d1\u73b0\u4e0d\u53ef\u6062\u590d\u7684\u9519\u8bef\uff0c\u5219\u9000\u51fa\u91cd\u65b0\u914d\u7f6e\u3002<\/p>\n<p>\u914d\u7f6e\u5f00\u673a\u542f\u52a8<\/p>\n<p><strong>\/cadtools\/share\/lsf\/10.1\/install\/hostsetup &#8211;top=&#8221;\/cadtools\/share\/lsf&#8221; &#8211;boot=&#8221;y&#8221;<\/strong><\/p>\n<p>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p><strong>source \/cadtools\/share\/lsf\/conf\/profile.lsf<\/strong><\/p>\n<h4>\u9a8c\u8bc1<\/h4>\n<p>\u6700\u540e\u8fd0\u884cbhosts \u548clshosts\u6765\u9a8c\u8bc1\u66f4\u6539\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-553\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/2022061514.png\" alt=\"\" width=\"592\" height=\"102\" \/><\/p>\n<h3>6\u3001\u8bf4\u660e<\/h3>\n<h4>\u914d\u7f6e\u6587\u4ef6\u8bf4\u660e<\/h4>\n<p>\u76ee\u5f55\/etc\/init.d:<\/p>\n<p>\/etc\/init.s\/lsf\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u670d\u52a1\u81ea\u542f\u52a8\u811a\u672c<\/p>\n<p>\u76ee\u5f55\/apps\/platform\/9.1\/lsf\/conf:<\/p>\n<p>lsf.conf\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsf.cluster.cluster83\u00a0 \u96c6\u7fa4\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsf.shared\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u5171\u4eab\u8d44\u6e90\u5b9a\u4e49\u6587\u4ef6<\/p>\n<p>.\/lsbatch\/cluster83\/configdir\/lsb.*\u00a0 \u8c03\u5ea6\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsb.users\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u7528\u6237\u4e0e\u7528\u6237\u7ec4\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsb.queues\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u961f\u5217\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsb.params\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u8c03\u5ea6\u53c2\u6570\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsb.applications\u00a0 lsf\u5e94\u7528\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsb.hosts\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u673a\u5668\u4e0e\u673a\u5668\u7ec4\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsb.resources\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u8d44\u6e90\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>lsb.modules\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lsf\u6a21\u5757\u914d\u7f6e\u6587\u4ef6<\/p>\n<h4>\u5e38\u7528\u547d\u4ee4<\/h4>\n<p>bsub:\u63d0\u4ea4\u4f5c\u4e1a\uff1b<\/p>\n<p>bjobs:\u67e5\u770b\u4f5c\u4e1a\u4fe1\u606f\uff1b<\/p>\n<p>bhist:\u67e5\u770b\u4f5c\u4e1a\u5386\u53f2\uff1b<\/p>\n<p>lshosts:\u67e5\u770b\u8282\u70b9\u9759\u6001\u8d44\u6e90\uff1b<\/p>\n<p>bhosts\uff0clsload:\u67e5\u770b\u8282\u70b9\u72b6\u6001\u548c\u8d44\u6e90\u4fe1\u606f\uff1b<\/p>\n<p>bqueues \uff1a\u67e5\u770b\u961f\u5217\u914d\u7f6e\uff1b<\/p>\n<p>blimits\uff1a\u67e5\u770b\u9650\u5236limit\u4fe1\u606f\uff1b<\/p>\n<p>lsid:\u96c6\u7fa4\u7248\u672c\u548c\u4e3b\u8282\u70b9\uff1b<\/p>\n<p>bmod:\u4fee\u6539bsub option\uff1b<\/p>\n<h4>\u9650\u5236\u7528\u6237\u8fd0\u884c\u7684\u4f5c\u4e1a\u6570\u76ee<\/h4>\n<p>\u5728lsb.users\u6587\u4ef6\u4e2d\u6dfb\u52a0\uff1a<\/p>\n<p>Begin User<\/p>\n<p>USER_NAME\u00a0\u00a0\u00a0 MAX_JOBS\u00a0\u00a0\u00a0 JL\/P<\/p>\n<p>user1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;<\/p>\n<p>user2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1<\/p>\n<p>user3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2<\/p>\n<p>groupA\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;<\/p>\n<p>groupB@\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1<\/p>\n<p>Default\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8211;<\/p>\n<p>End User<\/p>\n<h4><a name=\"_Toc355736337\"><\/a>\u9650\u5236\u8282\u70b9\u8fd0\u884c\u4f5c\u4e1a\u6570\u76ee<\/h4>\n<p>vi \/cadtools\/lsf9.1\/etc\/lsb.hosts<a name=\"_Toc355736340\"><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-554\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/2022061515.png\" alt=\"\" width=\"598\" height=\"212\" \/><\/p>\n<h4>\u9650\u5236\u961f\u5217\u4f5c\u4e1a\u8fd0\u884c\u9650\u5236<\/h4>\n<p>lsb.queue<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-555\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2022\/06\/2022061516.png\" alt=\"\" width=\"421\" height=\"148\" \/><\/p>\n<h4>\u4f7f\u80fd\u914d\u7f6e<\/h4>\n<p>badmin reconfig<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6f\u4ef6\u8bf4\u660e\uff1a LSF Suit Community Edition\uff08\u793e\u533a\u7248\uff09\uff0c\u6700\u591a\u652f\u630110\u8282\u70b9\uff0c\u514d\u8d39\u4f7f\u7528\uff1b LS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[88],"tags":[107,106,108],"class_list":["post-541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hpc","tag-eda","tag-lsf","tag-108"],"_links":{"self":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=541"}],"version-history":[{"count":1,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/541\/revisions"}],"predecessor-version":[{"id":556,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/541\/revisions\/556"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/media\/472"}],"wp:attachment":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}