Chinaunix

标题: lustre 1.6.5安装问题 求助! [打印本页]

作者: bigkevinwong    时间: 2009-01-04 10:09
标题: lustre 1.6.5安装问题 求助!
各位专家:

我们的测试环境:

1台虚拟机(1GB内存,40GB硬盘,以太网,Rocks 5.0 ,kernel: 2.6.18-53.1.14.el5):MGS(MDT)

1台虚拟机(1GB内存,80GB硬盘,以太网,Rocks 5.0 ,kernel: 2.6.18-53.1.14.el5):OSS(OST)



安装的lustre版本:

lustre 1.6.5



安装步骤:

           MGS:rpm  -ivh  --nodeps e2fsprogs-1.40.7.sun3-0redhat.x86_64

                        rpm –ivh  kernel-lustre-smp-2.6.18-53.1.14.el5_lustre.1.6.5.x86_64.rpm

                        rpm –ivh  lustre-1.6.5-2.6.18_53.1.14.el5_lustre.1.6.5smp.x86_64.rpm

                        rpm –ivh  lustre-modules-1.6.5-2.6.18_53.1.14.el5_lustre.1.6.5smp.x86_64.rpm

                        rpm –ivh  lustre-ldiskfs-3.0.4-2.6.18_53.1.14.el5_lustre.1.6.5smp.x86_64.rpm



                OSS:rpm  -ivh  --nodeps e2fsprogs-1.40.7.sun3-0redhat.x86_64

                        rpm –ivh  kernel-lustre-smp-2.6.18-53.1.14.el5_lustre.1.6.5.x86_64.rpm

                        rpm –ivh  lustre-1.6.5-2.6.18_53.1.14.el5_lustre.1.6.5smp.x86_64.rpm

                        rpm –ivh  lustre-modules-1.6.5-2.6.18_53.1.14.el5_lustre.1.6.5smp.x86_64.rpm

                        rpm –ivh  lustre-ldiskfs-3.0.4-2.6.18_53.1.14.el5_lustre.1.6.5smp.x86_64.rpm

(在安装e2fsprogs时提示了很多文件冲突,诸如:file /lib64/libblkid.so.1.0 from install of e2fsprogs-1.40.7.sun3-0redhat conflicts with file from package e2fsprogs-libs-1.39-10.el5_1.1)



配置过程:

1、在MGS,OSS上,向  /etc/modprobe.conf中添加 “options lnet networks=tcp”

2、确认  grub.conf中的启动内核为:CentOS (2.6.18-53.1.14.el5_lustre.1.6.5smp)

3、在MGS上运行 mkfs.lustre  --fsname testfs  --mdt  --mgs  /dev/sda6  回显如下:



[root@mds 1.6.5_rpm]# mkfs.lustre --fsname testfs --mdt --mgs /dev/sda6



   Permanent disk data:

Target:     testfs-MDTffff

Index:      unassigned

Lustre FS:  testfs

Mount type: ldiskfs

Flags:      0x75

              (MDT MGS needs_index first_time update )

Persistent mount opts: errors=remount-ro,iopen_nopriv,user_xattr

Parameters: mdt.group_upcall=/usr/sbin/l_getgroups



checking for existing Lustre data: not found

device size = 9083MB

WARNING: The e2fsprogs package currently installed on your system does not suppo

rt "uninit_groups" feature.

Please install the latest version of e2fsprogs from http://www.clusterfs.com/dow

nloads/public/Lustre/Tools/e2fsprogs/

to enable this feature.

Feature will not be enabled until e2fsprogs is updated and 'tune2fs -O uninit_gr

oups %{device}' is run.



2 6 18

formatting backing filesystem ldiskfs on /dev/sda6

        target name  testfs-MDTffff

        4k blocks     0

        options        -J size=360 -i 4096 -I 512 -q -O dir_index -F

mkfs_cmd = mkfs.ext2 -j -b 4096 -L testfs-MDTffff  -J size=360 -i 4096 -I 512 -q

-O dir_index -F /dev/sda6

mkfs.lustre: Unable to mount /dev/sda6: No such device      ### /dev/sda6 是专门为MDT留的空闲分区

Is the ldiskfs module available?



mkfs.lustre FATAL: failed to write local files

mkfs.lustre: exiting with 19 (No such device)


运行 modprobe ldiskfs,提示“FATAL: Module ldiskfs not found.”
运行 depmod -a 后再运行modprobe ldiskfs,提示仍然是:FATAL: Module ldiskfs not found。
我在安装ldiskfs rpm的时候没有任何报错,为什么装不上呢?
请各位帮忙想想办法,万分感谢!!!!
作者: kns1024wh    时间: 2009-01-04 12:16
标题: 回复 #1 bigkevinwong 的帖子
FATAL: Module ldiskfs not found 内核模块没有加载,或者已经安装没有生效,reboot可以试一试。
可以参考一下NNTP的文章
http://linux.chinaunix.net/bbs/viewthread.php?tid=783629
用VMWare 实现4节点的Lustre 并行文件系统集群
作者: bigkevinwong    时间: 2009-01-04 13:46
标题: 回复 #2 kns1024wh 的帖子
kns1024wh 你好!
从安装到现在,我重启很多次了,可是问题仍然存在。
NNTP的文章我已经读过了,他安装得lustre版本与我现在安装得不一样(他安装得版本要老一些),安装得方法也不太一样。
不知道跟我得rpm包得安装顺序是不是有关系?
lustre方面我实在是很菜,请大侠指点迷津!
作者: maluyao    时间: 2009-01-04 20:30
我在CentOS 5.2上装Lustre 1.6.6,没有任何问题。
如果可能,你可以考虑这个组合。
作者: molecar    时间: 2009-01-05 17:46
:wink: 呵呵看我的文章
作者: bigkevinwong    时间: 2009-01-06 12:29
标题: 回复 #4 maluyao 的帖子
你好!
lustre 1.6.6要求的内核版本是:2.6.18-92.1.10.el5。 而CentOS 5.2 的内核版本好像是2.6.18-92.1.18.el5 ,
安装的话是不是会有问题啊?
作者: bigkevinwong    时间: 2009-01-06 15:58
标题: 回复 #1 bigkevinwong 的帖子
问题解决了!刚刚一位大侠给我指点了迷津。
我犯了一个很初级得错误,lustre内核安装之后,默认启动值为1,也就是说lustre内核根本没有启动,启动的仍是打补丁之前得内核。把default值调成0就可以了。
看来还得加强基础~




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2