發表文章

目前顯示的是 1月, 2013的文章

在ubuntu上安裝openstack的swift組件-installing openstack object storage

圖片
這幾天正在自己搭建一個swift的環境。看了一些資料,結合自己的實踐,寫下了它: 1.物理環境說明: [html] view plain copy Linux系統版本:Ubuntu Server 12.04 Proxy Server IP: 10.214.0.181 Storage Server One: 10.214.0.179 Storage Server Two: 10.214.0.180 Storage Server three: 10.214.0.182 2.重要組件說明: node:運行一個或多個object storage service proxy node:運行proxy services auth node:運行Auth service storage:運行account,container,and object services Ring:是Openstack object storage 到物理設備的映射集合 在所有節點上的準備工作: 安裝服務 [html] view plain copy apt-get install swift openssh-server rsync memcached python-netifaces python-xattr python-memcache 配置路徑 [html] view plain copy mkdir -p /etc/swift chown -R swift:swift /etc/swift/ 新建文件vim /etc/swift/swift.conf [html] view plain copy [swift-hash] # random unique string that can never change (DO NOT LOSE) swift_hash_path_suffix = fLIbertYgibbitZ 3.安裝和配置storage nodes 安裝:Storage node packages,所有storage都要進行操作。 [html] view plain copy aptitude install swift-account swift-container swift-object xfsprogs