XtreemFS Internet部署
XtreemFS简介(摘自:http://www.xtreemfs.org/xtfs-guide-1.5/index.html)
If you consider using XtreemFS, you may be a system administrator in search of a better and more flexible alternative to your current data management solution. Or you may be a private user in need of a file system that can be easily set up and accessed from any machine in the world. You might also be someone looking for an open-source solution to manage large amounts of data distributed across multiple sites. In any case, you will wonder if XtreemFS fulfills your requirements. As a basis for your decision, the following two paragraphs point out the characteristics of XtreemFS.
XtreemFS is ...
- ... an open source file system. It is distributed freely and can be used by anyone without limitations.
- ... a POSIX file system. Users can mount and access XtreemFS like any other common file system. Application can access XtreemFS via the standard file system interface, i.e. without having to be rebuilt against a specialized API. XtreemFS supports a POSIX-compliant access control model.
- ... a multi-platform file system. Server and client modules can be installed and run on different platforms, including most Linux distributions, Solaris, Mac OS X and Windows.
- ... a globally distributed file system. Unlike cluster file systems, an XtreemFS installation is not restricted to a single administrative domain or cluster. It can span the globe and may comprise servers in different administrative domains.
- ... a failure-tolerant file system. As stated in the previous section, replication can keep the system alive and the data safe. In this respect, XtreemFS differs from most other open-source file systems.
- ... a secure file system. To ensure security in an untrusted, worldwide network, all network traffic can be encrypted with SSL connections, and users can be authenticated with X.509 certificates.
- ... a customizable file system. Since XtreemFS can be used in different environments, we consider it necessary to give administrators the possibility of adapting XtreemFS to the specific needs of their users. Customizable policies make it possible change the behavior of XtreemFS in terms of authentication, access control, striping, replica placement, replica selection and others. Such policies can be selected from a set of predefined policies, or implemented by administrators and plugged in the system.
XtreemFS is not ...
- ... a high-performance cluster file system. Even though XtreemFS reaches acceptable throughput rates on a local cluster, it cannot compete with specialized cluster file systems in terms of raw performance numbers. Most such file systems have an optimized network stack and protocols, and a substantially larger development team. If you have huge amounts of data on a local cluster with little requirements but high throughput rates to them, a cluster file system is probably the better alternative.
- ... a replacement for a local file system. Even though XtreemFS can be set up and mounted on a single machine, the additional software stack degrades the performance, which makes XtreemFS a bad alternative.
部署环境:
系统:ubuntu 16.04.6
服务器:2台,XtreemFS server和client(server和client分属不同Internet网络)
server(dir/mrc/osd在同一台服务器上,也可以分离):
DIR:dir.xtreemfs.org
MRC:mrc.xtreemfs.org
OSD:osd1.xtreemfs.org
client:用于挂载XtreemFS
网络环境:Server需要将端口32638、32636、32640映射指定公网端口;否则client无法正常访问server
开始安装
Server:
$ sudo echo "deb http://download.opensuse.org/repositories/home:/xtreemfs/xUbuntu_16.04 ./" >> /etc/apt/sources.list
$ sudo wget -q http://download.opensuse.org/repositories/home:/xtreemfs/xUbuntu_16.04/Release.key -O - | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install xtreemfs-server
Client:
$ sudo echo "deb http://download.opensuse.org/repositories/home:/xtreemfs/xUbuntu_16.04 ./" >> /etc/apt/sources.list
$ sudo wget -q http://download.opensuse.org/repositories/home:/xtreemfs/xUbuntu_16.04/Release.key -O - | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install xtreemfs-client
配置XtreemFS
Server:
- 编辑/etc/xos/xtreemfs/mrcconfig.properties并将hostname = mrc.xtreemfs.org、dir_service.host=DIR_IP(DIR服务器IP)
- 编辑/etc/xos/xtreemfs/osdconfig.properties并将行hostname = osd1.xtreemfs.org、dir_service.host=DIR_IP(DIR服务器IP)
- 启动dir服务:sudo /etc/init.d/xtreemfs-dir start
- 启动mrc服务:sudo /etc/init.d/xtreemfs-mrc start
- 启动osd服务器:sudo /etc/init.d/xtreemfs-osd start
- 加载FUSE内核模块:modprobe fuse
Client:
- 加载FUSE内核模块:modprobe fuse
- 编辑/etc/hosts并添加:serverIP mrc.xtreemfs.org和serverIP osd1.xtreemfs.org(如果mrc/osd分离部署,则serverIP修改成指定的mrc和osd的映射的公网IP)
- 创建卷:mkfs.xtreemfs mrc.xtreemfs.org/myVolume
- 创建挂载点:mkdir~ / xtreemfs
- 挂载XtreemFs:mount.xtreemfs dir.xtreemfs.org/myVolume~ / xtreemfs
- 卸载XtreemFs:umount.xtreemfs~ / xtreemfs

浙公网安备 33010602011771号