1. Swift安装部署(与keystone依赖包有冲突,需要安装不同版本eventlet)

    参考:http://www.server110.com/openstack/201402/6662.html

    https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/openstack-icehouse-for-centos65.md

    http://www.server110.com/openstack/201402/6662.html

    1. 源码下载
      1. git clone -b stable/icehouse https://github.com/openstack/swift.git
    2. 安装
      1. pip install -r requirements.txt
      2. python setup.py install
    3. 准备工作
      1. 安装xfs:yum install xfsprogs xinetd –y
      2. 新磁盘数据存储:

        mkfs.xfs /dev/sdb1

        echo "/dev/sdb1 /srv/node/sdb1 xfs noatime,nodiratime,nobarrier,logbufs=8 0 0" >> /etc/fstab

        mkdir -p /srv/node/sdb1

        mount /srv/node/sdb1

        chown -R root:root /srv/node

      3. 配置文件修改

        cp account-server.conf-sample account-server.conf

        cp container-server.conf-sample container-server.conf

        cp object-server.conf-sample object-server.conf

      4. 设置rsync

        参考(注意账号):

        https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/openstack-icehouse-for-centos65.md

      5. 安装proxy服务
        1. 参考:

          https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/openstack-icehouse-for-centos65.md

        2. 安装memcached:yum install memcached –y
      6. Swift的日志配置

        参考:https://lists.launchpad.net/openstack/msg20224.html

        http://blog.csdn.net/robberboyboy/article/details/8639021

      7. 启动proxy:./bin/swift-proxy-server /etc/swift/proxy-server.conf(需要权限)

        swift-init proxy-server start,开启8080端口。

      8. 启动object、container、account服务。参考:

        https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/openstack-icehouse-for-centos65.md

        swift-init all start,依次占用6000、6001、6002端口。

      9. 安装python-swiftclient

        git clone https://github.com/openstack/python-swiftclient.git

        问题可以在openstack官网论坛搜索:

        https://ask.openstack.org/en/question/42545/use-swift-stat-to-vertify-but-get-http-return-401-unauthorized/

        https://ask.openstack.org/en/question/57608/proxy-server-error-insufficient-storage-10001556002sdb1/

      10. 简单测试

        Stat、container、文件上传、下载、删除等

  2. 与Glance对接
    1. 参考

      http://ericzhong.github.io/2013/09/04/install-openstack-from-source/

      http://longgeek.com/2012/07/18/use-swift-as-a-glance-back-end-storage/

      http://mobile.51cto.com/hot-448613.htm

      http://www.ylzx8.cn/zonghe/operating-system/251849.html

      http://www.ylzx8.cn/zonghe/operating-system/251877.html

    2. Glance对接swift

      glance image-create --progress --name="CirrOS 0.3.0" --disk-format=qcow2 --container-format=ovf --is-public=true < image-dir/cirros-0.3.0-x86_64-disk.img

      glance image-create --name "cirros-0.3.3-x86_64" --file image-dir/cirros-0.3.3-x86_64-disk.img --disk-format qcow2 --container-format ovf --is-public=true --progress

      glance image-list

      swift list

  3. Swift源码分析
    1. http://my.oschina.net/zhouxingxing/blog/83295

      http://longgeek.com/2012/07/18/use-swift-as-a-glance-back-end-storage/

  4. Swift存储节点扩减容
    1. 参考:

      https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/openstack-icehouse-for-centos65.md

    2. 架构

      架构与高性能部署:http://os.51cto.com/art/201207/347656.htm

      http://www.th7.cn/Program/IOS/201408/256657.shtml

【OpenStack】OpenStack系列3之Swift详解的更多相关文章

  1. 【OpenStack】OpenStack系列4之Glance详解

    下载安装 参考:http://www.linuxidc.com/Linux/2012-08/68964.htm http://www.it165.net/os/html/201402/7246.htm ...

  2. ASP.NET MVC深入浅出系列(持续更新) ORM系列之Entity FrameWork详解(持续更新) 第十六节:语法总结(3)(C#6.0和C#7.0新语法) 第三节:深度剖析各类数据结构(Array、List、Queue、Stack)及线程安全问题和yeild关键字 各种通讯连接方式 设计模式篇 第十二节: 总结Quartz.Net几种部署模式(IIS、Exe、服务部署【借

    ASP.NET MVC深入浅出系列(持续更新)   一. ASP.NET体系 从事.Net开发以来,最先接触的Web开发框架是Asp.Net WebForm,该框架高度封装,为了隐藏Http的无状态模 ...

  3. Hexo系列(三) 常用命令详解

    Hexo 框架可以帮助我们快速创建一个属于自己的博客网站,熟悉 Hexo 框架提供的命令有利于我们管理博客 1.hexo init hexo init 命令用于初始化本地文件夹为网站的根目录 $ he ...

  4. Signalr系列之虚拟目录详解与应用中的CDN加速实战

    目录 对SignalR不了解的人可以直接移步下面的目录 SignalR系列目录 前言 前段时间一直有人问我 在用SignalR 2.0开发客服系统[系列1:实现群发通讯]这篇文章中的"/Si ...

  5. 转载爱哥自定义View系列--文字详解

    FontMetrics FontMetrics意为字体测量,这么一说大家是不是瞬间感受到了这玩意的重要性?那这东西有什么用呢?我们通过源码追踪进去可以看到FontMetrics其实是Paint的一个内 ...

  6. 转载爱哥自定义View系列--Paint详解

    上图是paint中的各种set方法 这些属性大多我们都可以见名知意,很好理解,即便如此,哥还是带大家过一遍逐个剖析其用法,其中会不定穿插各种绘图类比如Canvas.Xfermode.ColorFilt ...

  7. kubernetes系列07—Pod控制器详解

    本文收录在容器技术学习系列文章总目录 1.Pod控制器 1.1 介绍 Pod控制器是用于实现管理pod的中间层,确保pod资源符合预期的状态,pod的资源出现故障时,会尝试 进行重启,当根据重启策略无 ...

  8. Swift详解之NSPredicate

    言:谓词在集合过滤以及CoreData中有着广泛的应用.本文以Playground上的Swift代码为例,讲解如何使用NSPredicate. 准备工作 先在Playground上建立一个数组,为后文 ...

  9. Cobaltstrike系列教程(三)-beacon详解

    0x000--前文 Cobaltstrike系列教程(一)-简介与安装 Cobaltstrike系列教程(二)-Listner与Payload生成 heatlevel 0x001-Beacon详解 1 ...

随机推荐

  1. 0505-NABCD模型、视频

    1.确定选题. 应用NABCD模型,分析你们初步选定的项目,充分说明你们选题的理由. 录制为演说视频,上传到视频网站,并把链接发到团队博客上. 截止日期:2016.5.6日晚10点 NABCD模型: ...

  2. 【CodeForces 227A】Where do I Turn?叉积

    题意 ABC的位置关系只有三种可能: 1.在一条直线上,输出TOWARDS A--B--C 2.AB 和BC垂直,B为直角顶点,AB左侧是C,输出LEFT C--B | A 3.AB 和BC垂直,B为 ...

  3. 【POJ 1416】Shredding Company

    题 题意 给你一个target number,和一个最多六位的数num,让你把数分段,使总和最接近但不大于target number. 如果只有一种方法就输出总和.分段,如果有多种方法,输出rejec ...

  4. JAVA开发之Eclipse常用的快捷键

    Eclipse是我们常用的java开发编辑器,它支持很多有用但又不太为人所知的快捷键组合.通过这些组合快捷键我们可以更加容易的浏览源代码,使得整体的开发效率和质量得到提升.甚至有一次笔者去参加一个IT ...

  5. Day4_计算器

    read me 1.构造三个函数,乘除(mad),加减(aas),去括号(par): 2.获取表达式字符串之后,判断是否包含“+-*/()”等字符,包含则下一步3:不包含,返回字符串: 3.par 函 ...

  6. (Beta)Let's-Beta阶段展示博客

    康家华:http://www.cnblogs.com/AmazingMax/ 马阿姨:http://www.cnblogs.com/oushihuahua/ 刘彦熙:http://www.cnblog ...

  7. POJ1065 Area

    Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 18499   Accepted: 5094 Description You ...

  8. UVa 1025 A Spy in the Metro

    http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=35913 预处理出每个时间.每个车站是否有火车 为了方便判断是否可行,倒推处理 ...

  9. NOIP2014 day2 T2 洛谷P2296 寻找道路

    题目描述 在有向图G 中,每条边的长度均为1 ,现给定起点和终点,请你在图中找一条从起点到终点的路径,该路径满足以下条件: 1 .路径上的所有点的出边所指向的点都直接或间接与终点连通. 2 .在满足条 ...

  10. ajax提交特殊字符的处理

    前台页面用encodeURIComponent()这个js方法 rule=encodeURIComponent(rule);//对特殊字符编码 后台页面 java.net.URLDecoder url ...