在您要设置的每个对象控制器节点上重复此过程。
storage-node # pkg install swift swiftclient
storage-node # /usr/sbin/zfs create -o mountpoint=none rpool/export/swift storage-node # /usr/sbin/zfs create -o mountpoint=/srv rpool/export/swift/srv storage-node # /usr/sbin/zfs create -p rpool/export/swift/srv/node/disk0 storage-node # /usr/bin/chown -R swift:swift /srv
account.ring.gz
container.ring.gz
object.ring.gz
storage-node # svcadm enable swift-replicator-rsync
storage-node # chown -R swift:swift /etc/swift
storage-node # for x in `svcs -a -o SVC | fgrep swift | \ egrep "account|container|object" | sort` \ do \ echo Starting $x \ svcadm enable $x \ done
controller# export OS_USERNAME=swift controller# export OS_PASSWORD=service-password controller# export OS_PROJECT_NAME=service controller# export OS_AUTH_URL=http://$CONTROLLER_ADMIN_NODE:5000/v2.0
controller# openstack role create --name swiftoperator
controller# openstack user role add --user user-name \ --role swiftoperator --project tenant-ID
接下来的步骤
要使用户可以使用云,请完成安装后和配置任务中所述的准备工作。