我是Lustre文件系统的新手,我希望在Ubuntu 12.10上安装它,Lustre网站上没有这方面的信息。
这是可能的,我将如何安装在Ubuntu Ubuntu的Lustre?
读取磁盘inode到内存中
为什么Linux内核3.0+取消了super_operations.read_inode? 请求新的参考〜
*。* in argv in C
设备文件是由Linux中的特定文件系统还是虚拟文件系统实现的?
Lustre是一个透明的全局文件系统,客户端可以透明地访问集群文件系统数据,而不必知道数据的实际存储位置。 客户端通过网络读取服务器上的数据,存储服务器负责实际的文件系统的读写操作。 由元数据服务器对象元数据服务器定位的Lustre文件引导对存储服务器的实际文件I / O请求,即在磁盘组上的基于对象的物理存储中的存储服务器管理。
由于元数据和存储数据相分离技术可以完全分离计算和存储资源,使客户端计算机可以专注于用户和应用程序的请求。
有很多光彩的文章,但很少有关于ubuntu的文章 ,因为光泽编译器的安装确实够麻烦了,但是只要明白,就没有什么更难的了!
mds: 192.168.6.6 ost1: 192.168.6.119 ost2: 192.168.6.137 client: 192.168.6.137 because the resource problem,I put in ost2 client machines operate.
一个在mds 内核 下载linux-2.6.22内核 ,因为luster-1.6.5支持linux-2.6.22
apt-get install quilt linux-patch-lustre libncurses5-dev module-assistant dpatch lustre-utils shell $> cd / usr / src shell $> ls kernel-patches linux-2.6.22.tar.bz2 shell $> tar jxvf linux-2.6.22.tar.bz2 shell $> cd linux-2.6.22 shell $> ln-s / usr/src/kernel-patches/lustre/series/2.6.22-vanilla.series series shell $> ln-s / usr / src / kernel-patches / lustre / patches / patches shell $> quilt setup series-d patches # Patch for the kernel to fight lustre shell $> quilt push-av shell $> quilt refresh shell $> make clean shell $> make mrproper shell $> cp / boot/config-2.6.27.7-server. config shell $> make menuconfig # Compile the kernel,I believe we all kNow what they need,and here I will use the default does not make any changes ! shell $> make-kpkg - added-patches = lustre - initrd - append-to-version "-lustre" - revisionn ludy.1 kernel_image # version and revision followed by the version number ! shell $> dpkg-i linux-image-2.6.22-lustre_2.6.22-lustre-ludy.1_amd64.deb shell $> reboot # From the start after the selection of the newly compiled kernel shell $> uname-r 2.6.22-lustre shell $> ma auto-install lustre # Install kernel module containing lustre # After a long wait finally finished compiling !
将lustre-modules-2.6.22-lustre_1.6.5_amd64.deb linux-image-2.6.22-lustre_2.6.22-luster-ludy.1_amd64.deb复制到客户机上,用两个ost选择安装内核2.6。 22入系统!
去测试:
1.修改三个服务器/ etc / hosts
192.168.6.6 mds 192.168.6.119 ost 192.168.6.137 cls
2.在md服务器上执行以下操作
modprobe lustre modprobe ldiskfs modprobe lnet 'network = "tcp0 (eth0)"' mkfs.lustre - reformat - fsname = testfs - mdt - mgs / dev/sda5 # If the hard disk is not formatted,or there are data,then need to add - reformat parameter formatting ! mkdir-p / opt / mds mount-t lustre / dev/sda5 / opt / mds
3.在两个主机上执行以下操作
modprobe lustre modprobe ldiskfs modprobe lnet 'network = "tcp0 (eth0)"' mkfs.lustre - fsname = testfs - ost - mgsnode = mds @ tcp0 / dev/sdb1 # Similarly,if sdb1 is not formatted or the data must be added - reformat parameters mount-t lustre / dev/sdb1 / opt
4.在客户端服务器实现(即ost2)
mount-t lustre mds @ tcp0 :/ testfs / mnt Good three servers have even made it ! We have a large file tests to establish
5.在客户端服务器上执行
dd if = / dev / zero of = test1 bs = 1024 count = 40000 40000 +0 records in 40000 +0 records out 40960000 bytes (41 MB) copied,2.85257 s,14.4 MB / s
在ost1服务器执行df-lh查看
/ dev/sdb1 1004M 57M 897M 6% / opt
在ost2服务器执行df-lh查看
/ dev/sdb1 1004M 17M 897M 2% / opt
显然ost1现在写了40M的数据ost2在第二次执行
dd if = / dev / zero of = test2 bs = 1024 count = 40000 40000 +0 records in 40000 +0 records out 40960000 bytes (41 MB) copied,4.66784 s,8.8 MB / s
在ost1服务器执行df-lh查看
/ dev/sdb1 1004M 57M 897M 6% / opt
没有改变在ost2服务器执行df-lh查看
/ dev/sdb1 1004M 57M 897M 6% / opt ost2 data is written to the 40M !
6.停止光泽文件系统
umount-f / opt
我为光泽作品做了一个简单的解释!
mds大概是一个存放元数据文件列表的地方,是一样的东西,他知道存放在服务器上的文件,其中台湾的ost ost文件存放在服务器上
我只是无法学习光泽准确的说什么。 希望高手们多多指教!
注意:启动后mds ost跳过mkfs.lustre不是新创建的文件系统只需mount -t光泽挂在文件系统即可! 这个帮助来自“linuxer”博客
你也可以试试这个光泽的客户端Ubuntu的… 在这里 ..
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。