77范文网 - 专业文章范例文档资料分享平台

GlusterFS学习笔记(翻译by 张文超)(7)

来源:网络收集 时间:2019-04-23 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

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 [arbiter ]] [disperse []] [redundancy ] [disperse-data ]

[transport ] volume delete volume start

?... [force]

volume set volume get volume help

8.2.2 Brick管理命令

volume add-brick #为卷增加新的Brick,添加后需rebalance volume remove-brick #从卷中移出Brick. volume replace-brick volume rebalance

#使用新Brick替换卷使用的Brick #在Brick重新分布卷的数据 #查看在Brick重新分布卷的数据状态

commit force volume rebalance stop volume rebalancestatus

#停止在Brick重新分布卷的数据

8.2.3 Log Commands

volume log filename

#设置相应的卷/brick的日志文件名

石家庄众毅信息技术有限公司共47页第33页

[BRICK] volume log locate [BRICK] volume log rotate[BRICK]

#找出相应的卷/brick的日志文件名 #Rotate相应的卷/brick的日志文件名

8.2.4 Peer 存储池管理命令

peer probe

#将一个节点加入到本机的可信存储池

peer detach #将一个节点移出到本机的可信存储池 peer status peer help

#显示存储池信息.

#显示peer帮助命令

8.2.5 Tier 层命令

volume tierattach [] ...

Attach to an existing volume a tier of specified type using the specified bricks. volume tierstatus

Display statistics on data migration between the hot and cold tiers. volume tierdetach start

Begin detaching the hot tier from the volume. Data will be moved from the hot tier to the cold tier.

volume tier detach commit [force]

Commit detaching the hot tier from the volume. The volume will revert to its original state before the hot tier was attached.

volume tier detach status

Check status of data movement from the hot to cold tier. volume tier detach stop

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 [push-pem] [force]

Create a new geo-replication session from to host machine having. Use push-pem to push the keysautomatically. volume [force]

geo-replication::{start|stop}

石家庄众毅信息技术有限公司共47页第34页

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库GlusterFS学习笔记(翻译by 张文超)(7)在线全文阅读。

GlusterFS学习笔记(翻译by 张文超)(7).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/622405.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: