Install the packages required only on CentOS:
$ sudo yum -y install python-webob1.0 python-paste-deploy1.5 python-sphinx10 redhat-rpm-config
6.1.4 Preparation steps for RHEL 6.x (only)
$ sudo yum -y install `[`http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm`](http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm)
$ sudo yum -y --enablerepo=rhel-6-server-optional-rpms install python-webob1.0 \\
6.2 Common Steps
6.2.1 step 1 below:
If you're on RHEL/CentOS 5.x and get a message about lvm2-devel not being available, it's ok. You can ignore it. :)
If you're on RHEL/CentOS 6.x and get any messages about python-eventlet, python-netifaces, python-sphinx and/or pyxattr not being available, it's ok. You can ignore them. :) Install the needed packages
$ sudo yum -y --disablerepo=rhs* --enablerepo=*optional-rpms install git autoconf \\ automake bison dos2unix flex fuse-devel glib2-devel libaio-devel \\
libattr-devel libibverbs-devel librdmacm-devel libtool libxml2-devel lvm2-devel make \\ openssl-devel pkgconfig pyliblzma python-devel python-eventlet python-netifaces \\ python-paste-deploy python-simplejson python-sphinx python-webob pyxattr readline-devel \\ rpm-build systemtap-sdt-devel tar libcmocka-devel Clone the GlusterFS git repository
$ git clone `[`git://git.gluster.org/glusterfs`](git://git.gluster.org/glusterfs) $ cd glusterfs
Choose which branch to compile
$ git branch -a | grep release remotes/origin/release-2.0
remotes/origin/release-3.0 remotes/origin/release-3.1 remotes/origin/release-3.2 remotes/origin/release-3.3 remotes/origin/release-3.4
石家庄众毅信息技术有限公司共47页第30页
remotes/origin/release-3.5
$ git checkout release-3.4 $ ./autogen.sh
$ ./configure --enable-fusermount $ make dist
$ cd extras/LinuxRPM $ make glusterrpms
That should complete with no errors, leaving you with a directory containing the RPMs. $ ls -l *rpm
-rw-rw-r-- 1 jc jc 3966111 Mar 2 12:15 glusterfs-3git-1.el5.centos.src.rpm -rw-rw-r-- 1 jc jc 1548890 Mar 2 12:17 glusterfs-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 66680 Mar 2 12:17 glusterfs-api-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 20399 Mar 2 12:17 glusterfs-api-devel-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 123806 Mar 2 12:17 glusterfs-cli-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 7850357 Mar 2 12:17 glusterfs-debuginfo-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 112677 Mar 2 12:17 glusterfs-devel-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 100410 Mar 2 12:17 glusterfs-fuse-3git-1.el5.centos.x86_64.rpm
-rw-rw-r-- 1 jc jc 187221 Mar 2 12:17 glusterfs-geo-replication-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 299171 Mar 2 12:17 glusterfs-libs-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 44943 Mar 2 12:17 glusterfs-rdma-3git-1.el5.centos.x86_64.rpm
-rw-rw-r-- 1 jc jc 123065 Mar 2 12:17 glusterfs-regression-tests-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 16224 Mar 2 12:17 glusterfs-resource-agents-3git-1.el5.centos.x86_64.rpm -rw-rw-r-- 1 jc jc 654043 Mar 2 12:17 glusterfs-server-3git-1.el5.centos.x86_64.rpm
石家庄众毅信息技术有限公司共47页第31页
第7章 Swift对象存储
原来称为gluster-swift或者UFO(Unified File and Object)现在已经废弃。称为SwiftOnFile。新旧版本区别如下:
Gluster-Swift 只支持一个 Swift 账户. 挂载层次结构:container/object Over-rides account server, container server and object server. We need to keep in sync with upstream Swift and often may need code changes or workarounds to support new Swift features Does not use DBs for accounts and container.A container listing involves a filesystem crawl.A HEAD on account/container gives inaccurate or stale results without FS crawl. SwiftOnFile 一个GlusterFS 卷或 XFS 分区可以有多个账户挂载层次结构: acc/container/object Implements only object-server. Very less need to catch-up to Swift as new features at proxy,container and account level would very likely be compatible with SwiftOnFile as it's just a storage policy. Uses Swift's DBs to store account and container information. An account or container listing does not involve FS crawl. Accurate info on HEAD to account/container – ability to support account quotas. GET on a container and account only lists objects GET on a container and account lists actual files in filesystem. PUT over Swift. Files created over filesystem interface do not appear in container and object listings. Standalone deployment required and does not integrate with existing Swift cluster. Integrates with any existing Swift deployment as a Storage Policy.
石家庄众毅信息技术有限公司共47页第32页
第8章 Gluster命令参考
8.1 语法
gluster gluster [--xml]
#交互方式运行命令 #直接运行命令 #直接运行命令
gluster [commands] [options] [--xml]
8.2 命令
8.2.1 Volume卷管理命令
volume info [all|
[stripe
#显示卷信息或特定卷信息 #条带化数量 #复制数量 #分散数量 # #冗余数量 #传输协议 # #删除卷 #启动卷 #设置卷选项 #获取卷选项信息 #卷管理命令帮助信息
volume create
#创建新的卷
[replica
[transport
volume set
8.2.2 Brick管理命令
volume add-brick
#使用新Brick替换卷使用的Brick #在Brick重新分布卷的数据 #查看在Brick重新分布卷的数据状态
#停止在Brick重新分布卷的数据
8.2.3 Log Commands
volume log filename
#设置相应的卷/brick的日志文件名
石家庄众毅信息技术有限公司共47页第33页
#找出相应的卷/brick的日志文件名 #Rotate相应的卷/brick的日志文件名
8.2.4 Peer 存储池管理命令
peer probe
#将一个节点加入到本机的可信存储池
peer detach
#显示存储池信息.
#显示peer帮助命令
8.2.5 Tier 层命令
volume tier
Attach to an existing volume a tier of specified type using the specified bricks. volume tier
Display statistics on data migration between the hot and cold tiers. volume tier
Begin detaching the hot tier from the volume. Data will be moved from the hot tier to the cold tier.
volume tier
Commit detaching the hot tier from the volume. The volume will revert to its original state before the hot tier was attached.
volume tier
Check status of data movement from the hot to cold tier. volume tier
Stop detaching the hot tier from the volume.
8.2.6 Geo-replication 区域复制命令
system:: execute gsec_create
Generates pem keys which are required for push-pem
volume geo-replication
Create a new geo-replication session from
geo-replication
石家庄众毅信息技术有限公司共47页第34页
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库GlusterFS学习笔记(翻译by 张文超)(7)在线全文阅读。
相关推荐: