-
安装xfs:yum install xfsprogs xinetd –y
-
新磁盘数据存储:
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
-
配置文件修改
cp account-server.conf-sample account-server.conf
cp container-server.conf-sample container-server.conf
cp object-server.conf-sample object-server.conf
-
设置rsync
参考(注意账号):
https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/openstack-icehouse-for-centos65.md
-
安装proxy服务
-
参考:
https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/openstack-icehouse-for-centos65.md
-
安装memcached:yum install memcached –y
-
Swift的日志配置
参考:https://lists.launchpad.net/openstack/msg20224.html
http://blog.csdn.net/robberboyboy/article/details/8639021
-
启动proxy:./bin/swift-proxy-server /etc/swift/proxy-server.conf(需要权限)
swift-init proxy-server start,开启8080端口。
-
启动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端口。
-
安装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/
-
简单测试
Stat、container、文件上传、下载、删除等
请发表评论