Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何在Ubuntu 12.10上安装Lustre文件系统?_Linux_Ubuntu_Filesystems_Cluster Computing - Fatal编程技术网

Linux 如何在Ubuntu 12.10上安装Lustre文件系统?

Linux 如何在Ubuntu 12.10上安装Lustre文件系统?,linux,ubuntu,filesystems,cluster-computing,Linux,Ubuntu,Filesystems,Cluster Computing,我是Lustre文件系统的新手,我希望在Ubuntu12.10上安装它,Lustre网站上没有这样做的信息 是否可能以及如何在Ubuntu中安装Lustre?是一个透明的全局文件系统,客户端可以透明地访问群集文件系统数据,而无需知道数据的实际存储位置。客户端通过网络读取服务器上的数据,存储服务器负责实际的文件系统读写操作。元数据服务器对象元数据服务器定位的Lustre文件将实际文件I/O请求引导到存储服务器,存储服务器管理磁盘组上基于对象的物理存储 由于元数据与存储数据相分离技术,可以将计算资源

我是Lustre文件系统的新手,我希望在Ubuntu12.10上安装它,Lustre网站上没有这样做的信息

是否可能以及如何在Ubuntu中安装Lustre?

是一个透明的全局文件系统,客户端可以透明地访问群集文件系统数据,而无需知道数据的实际存储位置。客户端通过网络读取服务器上的数据,存储服务器负责实际的文件系统读写操作。元数据服务器对象元数据服务器定位的Lustre文件将实际文件I/O请求引导到存储服务器,存储服务器管理磁盘组上基于对象的物理存储

由于元数据与存储数据相分离技术,可以将计算资源与存储资源完全分离,使客户端计算机可以专注于用户和应用程序的请求

有很多lustre文章,但很少有关于ubuntu的文章,因为lustre编译器的安装确实够麻烦的,但只要理解,就没有什么比这更困难的了

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中有一个,因为lustre-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 $> m-a auto-install lustre
# Install kernel module containing lustre
# After a long wait finally finished compiling !
使用两个ost复制到客户机的lustre-modules-2.6.22-lustre_1.6.5_amd64.deb linux-image-2.6.22-lustre_2.6.22-lustre-ludy.1_amd64.deb已选择将内核2.6.22安装到系统中

要测试:

1.修改三台服务器/etc/hosts

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.对两个ost执行以下操作

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)

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
/ dev/sdb1 1004M 17M 897M 2% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
ost2 data is written to the 40M !
在ost2中,服务器执行df lh视图

/ dev/sdb1 1004M 57M 897M 6% / opt
/ dev/sdb1 1004M 17M 897M 2% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
ost2 data is written to the 40M !
显然,ost1现在写入了4000万数据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
/ dev/sdb1 1004M 17M 897M 2% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
ost2 data is written to the 40M !
不变 在ost2中,服务器执行df lh视图

/ dev/sdb1 1004M 57M 897M 6% / opt
/ dev/sdb1 1004M 17M 897M 2% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
/ dev/sdb1 1004M 57M 897M 6% / opt
ost2 data is written to the 40M !
6.停止lustre文件系统

umount-f / opt
我对lustre作品做了一些简单的解释

mds可能是存储元数据文件列表的地方也是一样的,他知道存储在服务器上的文件在其中 ost文件存储在服务器中

我只是不能准确地说什么。希望专家们多多指教

注意:启动mds ost后跳过mkfs.lustre不是新创建的文件系统 只需将mount-t lustre挂在文件系统中即可! 这种帮助来自

你也可以在lustre客户端ubuntu上试试这个