安装验证过程中,Swift组件中“openstack-swift-object-replicator.service”服务和“openstack-swift-object-updater.service”服务运行时提示“ERROR:Unable to access /srv/node/sdb:[Errno 13] Permission denied: '/srv/node/sdb'”。
无法访问对象存储盘,在其他配置均正确的情况下,一般为端口权限,或者文件夹权限的问题。
sudo chown -R swift:swift /srv/node/ sudo restorecon -R /srv
sudo service openstack-swift-account start sudo service openstack-swift-container start sudo service openstack-swift-object start sudo chkconfig openstack-swift-account on sudo chkconfig openstack-swift-container on sudo chkconfig openstack-swift-object on
systemctl restart firewalld.service systemctl stop firewalld.service
systemctl status openstack-swift-object.service openstack-swift-object-auditor.service openstack-swift-object-replicator.service openstack-swift-object-updater.service
发现所有服务都可以正常运行: