- 论坛徽章:
- 0
|
各位好:
小弟手头有一个4个节点的集群,使用ROCKS 5.1管理。
最近弄了1套mellanox 的交换机和卡,我使用rocks提供的PVFS2 Roll安装得非常顺利,但是从rocks的 mail list得知pvfs2 roll不支持 ib协议,只能使用tcp协议。
所以我下载了pvfs2的安装文件,并按照quickstart进行安装。安装过程遇到几个问题,安装过程如下
1.
[root@perahpc pvfs2]# ./configure --with-kernel=/usr/src/kernels/2.6.18-92.1.13.el5-x86_64/
***** Displaying PVFS2 Configuration Information *****
------------------------------------------------------
PVFS2 configured to build karma gui : yes
PVFS2 configured to use epoll : yes
PVFS2 configured to perform coverage analysis : no
PVFS2 configured for aio threaded callbacks : yes
PVFS2 configured for the 2.6.x kernel module : yes
PVFS2 configured for the 2.4.x kernel module : no
PVFS2 configured for using the mmap-ra-cache : no
PVFS2 configured for using trusted connections : no
PVFS2 configured for a thread-safe client library : yes
PVFS2 will use workaround for redhat 2.4 kernels : no
PVFS2 will use workaround for buggy NPTL : no
PVFS2 server will be built : yes
PVFS2 version string: 2.7.1
2.
[root@perahpc pvfs2]# make install
install -d /usr/local/share/man/man1
install -d /usr/local/share/man/man5
install -m 644 ./doc/man/*.1 /usr/local/share/man/man1
install -m 644 ./doc/man/*.5 /usr/local/share/man/man5
install -d /usr/local/include
install -m 644 ./include/pvfs2.h /usr/local/include
install -m 644 ./include/pvfs2-request.h /usr/local/include
install -m 644 ./include/pvfs2-debug.h /usr/local/include
install -m 644 ./include/pvfs2-sysint.h /usr/local/include
install -m 644 ./include/pvfs2-mgmt.h /usr/local/include
install -m 644 ./include/pvfs2-types.h /usr/local/include
install -m 644 ./include/pvfs2-util.h /usr/local/include
install -m 644 ./include/pvfs2-encode-stubs.h /usr/local/include
install -d /usr/local/lib
for i in libpvfs2.a ; do \
install -m 755 lib/$i /usr/local/lib ;\
done
install -d /usr/local/bin
install -m 755 src/apps/admin/pvfs2-check-config src/apps/admin/pvfs2-set-debugmask src/apps/admin/pvfs2-set-mode src/apps/admin/pvfs2-set-eventmask src/apps/admin/pvfs2-set-sync src/apps/admin/pvfs2-ls src/apps/admin/pvfs2-lsplus src/apps/admin/pvfs2-ping src/apps/admin/pvfs2-rm src/apps/admin/pvfs2-stat src/apps/admin/pvfs2-statfs src/apps/admin/pvfs2-perf-mon-example src/apps/admin/pvfs2-event-mon-example src/apps/admin/pvfs2-mkdir src/apps/admin/pvfs2-chmod src/apps/admin/pvfs2-chown src/apps/admin/pvfs2-fs-dump src/apps/admin/pvfs2-fsck src/apps/admin/pvfs2-validate src/apps/admin/pvfs2-cp src/apps/admin/pvfs2-viewdist src/apps/admin/pvfs2-xattr src/apps/admin/pvfs2-touch src/apps/admin/pvfs2-remove-object src/apps/admin/pvfs2-ln src/apps/admin/pvfs2-perror src/apps/admin/pvfs2-check-server /usr/local/bin
install -m 755 src/apps/admin/pvfs2-config /usr/local/bin
install -m 755 ./src/apps/admin/pvfs2-genconfig /usr/local/bin
install -m 755 ./src/apps/admin/pvfs2-config-convert /usr/local/bin
install -m 755 src/apps/karma/karma /usr/local/bin
install -d /usr/local/sbin
install -m 755 src/apps/admin/pvfs2-mkspace src/apps/admin/pvfs2-migrate-collection src/apps/admin/pvfs2-change-fsid src/apps/admin/pvfs2-showcoll /usr/local/bin
install -m 755 src/server/pvfs2-server /usr/local/sbin
3.
[root@perahpc usr]# /usr/local/bin/pvfs2-genconfig /etc/pvfs2-fs.conf
**********************************************************************
Welcome to the PVFS2 Configuration Generator:
This interactive script will generate configuration files suitable
for use with a new PVFS2 file system. Please see the PVFS2 quickstart
guide for details.
**********************************************************************
You must first select the network protocol that your file system will use.
The only currently supported options are "tcp", "gm", "mx", "ib", and "portals".
(For multi-homed configurations, use e.g. "ib,tcp".)
* Enter protocol type [Default is tcp]: ib
Choose a TCP/IP port for the servers to listen on for IB communications. Note that this
script assumes that all servers will use the same port number.
* Enter port number [Default is 3335]:
Choose a directory for each server to store data in.
* Enter directory name: [Default is /pvfs2-storage-space]:
Choose a file for each server to write log messages to.
* Enter log file location [Default is /tmp/pvfs2-server.log]:
Next you must list the hostnames of the machines that will act as
I/O servers. Acceptable syntax is "node1, node2, ..." or "node{#-#,#,#}".
* Enter hostnames [Default is localhost]: perahpc
Now list the hostnames of the machines that will act as Metadata
servers. This list may or may not overlap with the I/O server list.
* Enter hostnames [Default is localhost]: perahpc
Configured a total of 1 servers:
1 of them are I/O servers.
1 of them are Metadata servers.
* Would you like to verify server list (y/n) [Default is n]?
Writing fs config file... done //问题首先出现在这个地方,文档上写着,配置文件生成之后,最后一行回显应该为:‘Configuration complete!’
[root@perahpc usr]#
4.
剩下的配置完全按照quickstart的步骤进行
5.测试
[root@perahpc usr]# pvfs2-ping -m /mnt/pvfs2/
(1) Parsing tab file...
(2) Initializing system interface...
(3) Initializing each file system found in tab file: /etc/fstab...
PVFS2 servers: ib://perahpc:3335
Storage name: pvfs2-fs
Local mount point: /mnt/pvfs2
[E 21:31:32.925688] PVFS_isys_fs_add: Failed to initialize any appropriate BMI methods for addresses:
[E 21:31:32.925813] ib://perahpc:3335
[E 21:31:32.925868] PVFS_isys_fs_add call: Protocol not available
/mnt/pvfs2: FAILURE!
Failure: could not initialze at least one of the target file systems.
(4) Searching for /mnt/pvfs2/ in pvfstab...
[E 21:31:32.926001] Error: /mnt/pvfs2// resides on a PVFS2 file system that has not yet been initialized.
Failure: could not find filesystem for /mnt/pvfs2/ in pvfs2tab /etc/fstab
Entry 0: /mnt/pvfs2
小弟接触linux和并行文件系统的时间很短,但是手头的项目很急,请大家帮忙看看应该怎么解决,多谢了!!!
[ 本帖最后由 bigkevinwong 于 2008-12-23 13:18 编辑 ] |
|