24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1965  |  回复: 1

weitong

金虫 (正式写手)

[求助] 作业管理torque和maui使用问题:error while loading shared libraries: libimf.so

尝试组建一个集群,按照网上的安装过程http://blog.csdn.net/educast/article/details/7168467,安装了Torque2.5.13和Maui3.3.1,并且参考了南开大学张鋆的集群构建教程,安了了mpiexec 0.84替代pbs_sched.
在主机root下将pbs_server,pbs_mom,maui都正常启动了,子节点上pbs_mon也正常启动了。 pbsnodes可以看到各个节点的情况。
但是测试一个任务时$ qsub submit.pbs, terminal下没有出错信息,但是result文件是空的。查看了first_task.o0,发现里面有出错信息
/usr/local/sbin/pbs_iff: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
mpiexec: Error: get_hosts: pbs_connect: Unauthorized Request .
查找libimf.so,发现在/opt/intel/composer_xe_2013.3.163/compiler/lib/intel64,/opt/intel/composer_xe_2013.3.163/compiler/lib/ia32,/opt/intel/composer_xe_2013.3.163/compiler/lib/mic里面都有,尝试将他们都在/etc/profile和/etc/bashrc里面添到到LD_LIBRARY_PATH,并且source了一下。但是仍然没决决问题。

其实这 个libimf.so找到到,还发生在$sudo /etc/init.d/pbs_server start时。只有在su登录后,才能正常启动。
[root@magnetics weitong]# /etc/init.d/pbs_server start
/var/spool/torque/server_priv/serverdb
Starting TORQUE Server:                                    [确定]

[weitong@magnetics ~]$ sudo /etc/init.d/pbs_server start
[sudo] password for weitong:
/var/spool/torque/server_priv/serverdb
Starting TORQUE Server: /usr/local/sbin/pbs_server: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
                                                           [失败]


*附***submit.pbs*****
#!/bin/sh
#PBS -l nodes=mag02:ppn=8+magnetics:ppn=8 (使用mag02上8个CPU和magnetics上8个CPU)
#PBS -q batch
#PBS -j oe
#PBS -N first_task  (任务名字,随便取)
cd /home/weitong
/usr/local/mpitorque/bin/mpiexec  ./Work/Computing/hellocluster > result
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

weitong

金虫 (正式写手)

问题解决,根本原因是计算节点slave上的so文件路径不全,要修改补充计算节点上/etc/ld.so.conf,以及/etc/ld.so.conf.d/里面的conf文件。 附上解决过程:
主机上:
[root@magnetics ld.so.conf.d]# scp torque.conf mag02:/etc/ld.so.conf.d/

在计算节点mag02机子上:
[weitong@mag02 etc]$ sudo /sbin/ldconfig /etc/ld.so.conf   (新新so路径)               

在主机上:
[weitong@magnetics Computing]$ qsub submit.pbs
61.magnetics
出现新的错误first_task.o61, 说明上面通过conf文件添加so路径的方法奏效了。
/usr/local/sbin/pbs_iff: error while loading shared libraries: libtorque.so.2: cannot open shared object file: No such file or directory
mpiexec: Error: get_hosts: pbs_connect: Unauthorized Request .

查找发现libtorque.so.2在/usr/local/lib里面

在计算节点mag02机子上:
[weitong@mag02 etc]$ sudo vim ld.so.conf,加入/usr/local/lib
include ld.so.conf.d/*.conf
/usr/local/lib

主上上:
[root@magnetics ld.so.conf.d]# scp mpitorque.conf mag02:/etc/ld.so.conf.d/

在计算节点mag02机子上:

[weitong@mag02 etc]$ sudo /sbin/ldconfig /etc/ld.so.conf
      
*************Done,解决问题。原来要将找不到的so文件路径加入到conf文件中。 *************
2楼2014-03-23 00:09:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 weitong 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 295材料工程专硕求调剂 +5 1428151015 2026-03-27 5/250 2026-03-27 22:17 by 无际的草原
[考研] 070300求调剂306分 +3 26要上岸 2026-03-27 3/150 2026-03-27 17:57 by arrow8852
[考研] 化学调剂 +4 爱吃番茄的旭 2026-03-24 5/250 2026-03-27 17:50 by kiokin
[考研] 考研调剂 +10 呼呼?~+123456 2026-03-24 10/500 2026-03-27 11:46 by wangjy2002
[考研] 359求调剂 +4 王了个楠 2026-03-25 4/200 2026-03-27 08:43 by 不吃魚的貓
[硕博家园] 招收生物学/细胞生物学调剂 +3 IceGuo 2026-03-26 4/200 2026-03-27 05:35 by user003
[考研] 317求调剂 +7 蛋黄咸肉粽 2026-03-26 7/350 2026-03-27 02:29 by fmesaito
[考研] 一志愿郑州大学,080500学硕,总分317分求调剂 +4 举个栗子oi 2026-03-24 5/250 2026-03-26 23:15 by 不吃魚的貓
[考研] 333求调剂 +6 wfh030413@ 2026-03-23 6/300 2026-03-26 22:45 by 学员8dgXkO
[考研] 一志愿北化求调剂 +3 Jsman 2026-03-22 3/150 2026-03-26 21:06 by ajpv风雷
[考研] 求调剂 +8 Auroracx 2026-03-22 8/400 2026-03-26 19:55 by 不吃魚的貓
[考研] 一志愿河工大 081700 276求调剂 +4 地球绕着太阳转 2026-03-23 4/200 2026-03-26 14:27 by zzll406
[考研] 寻找调剂 +5 倔强芒? 2026-03-21 8/400 2026-03-26 13:25 by 0906ljy
[考研] 材料与化工304求B区调剂 +3 邱gl 2026-03-25 3/150 2026-03-25 19:03 by Ainin_
[考研] 材料专硕 335 分求调剂 +4 拒绝冷暴力 2026-03-25 4/200 2026-03-25 18:45 by haxia
[考研] 284求调剂 +15 Zhao anqi 2026-03-22 15/750 2026-03-25 12:51 by wht0531
[考研] 300分,材料,求调剂,英一数二 +5 超赞的 2026-03-24 5/250 2026-03-24 21:07 by 星空星月
[考研] 305分求调剂(食品工程) +5 Sxy112 2026-03-21 7/350 2026-03-24 12:27 by 544594351
[考研] 315分,诚求调剂,材料与化工085600 +3 13756423260 2026-03-22 3/150 2026-03-22 20:11 by edmund7
[考研] 330求调剂0854 +3 assdll 2026-03-21 3/150 2026-03-21 13:01 by 搏击518
信息提示
请填处理意见