After OpenStack Object Storage services has been installed across all our nodes, it's time to start our services for storing objects and images in our OpenStack environment.
Ensure that you are logged in to all of the nodes and have the relevant packages installed and configured for running Swift. If you created this environment with vagrant
, you can execute the following commands to access all the nodes:
vagrant ssh swift-proxy vagrant ssh swift-01 vagrant ssh swift-02 vagrant ssh swift-03 vagrant ssh swift-04 vagrant ssh swift-05
Controlling OpenStack Object Storage services is achieved using the tool called swift-init
. We can start, stop, and restart the various services on that node using this tool.
On the Object Storage nodes, we can start, stop, and restart all the services with the following commands:
sudo swift-init all start sudo swift-init all stop sudo swift-init all restart
On the proxy server node, we can start, stop, and restart the proxy service with the following commands:
sudo swift-init proxy-server start sudo swift-init proxy-server stop sudo swift-init proxy-server restart
On all the nodes, ensure that the services have all started with the start
command.