LSF提示userName <thesre>. getpwnam() failed:Bad user ID

报错:

LSF提示userName <thesre>. getpwnam() failed:Bad user ID

原因:

由于LDAP在LSF进程之后启动,LSF无法获取到LDAP用户信息。参考:Jobs stuck pending on newly provisioned or diskless nodes using LDAP for user authentication. icon-default.png?t=M3K6https://www.ibm.com/support/pages/jobs-stuck-pending-newly-provisioned-or-diskless-nodes-using-ldap-user-authentication

解决:

在出现这样问题的服务器,执行

badmin hrestart

摘抄,以防止源丢失:

Jobs stuck pending on newly provisioned or diskless nodes using LDAP for user authentication.

Troubleshooting

Problem

When provisioning diskless nodes via Xcat or the first time provisioning a diskfull node which are LDAP clients for user authentication, jobs may fail to start.

Symptom

Jobs fail to start with errors in the sbatchd log like:

acctMapTo: No valid user name found for job <240>, userName <username>. getpwnam() failed: Bad user ID

Cause

getpwnam() fails when LDAP client is started later in the startup process (after LSF).

Environment

Xcat provisioning of x86_64 machines that set up LDAP client for user authentication

Diagnosing The Problem

The aforementioned error message in the sbatchd log indicates the problem.

Resolving The Problem

For machines already experiencing the problem, restarting the sbatchd will resolve the issue:

badmin hrestart

Any stuck jobs will have to be killed and resubmitted.

To prevent the problem, LDAP client configuration needs to occur before LSF configuration in the startup sequence.

For example, if you are using the setupcnldaplient script to configure LDAP client and starting up using a postscript, then the setupcnldaplient script must be listed before the LSF startup script in the postbootscripts list. . In the following example the image profile is named "rhels7.1-x86_64-stateless-compute "and the only other postbootscipt being used is called KIT_phpc_lsf_config, which configures LSF.

# chdef -t osimage -o rhels7.1-x86_64-stateless-compute \ postbootscripts=setupcnldaplient,KIT_phpc_lsf_config



There are other ways of ensuring the sequencing as well. In those cases the startup and configuration of the LDAP client must happen before the startup of LSF.

Document Information

More support for:
IBM Spectrum LSF

Software version:
10.1

Document number:
630603

Modified date:
17 June 2018

Close

Need support?

Contact IBM Privacy Terms of use Accessibility

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

王万林 Ben

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值