Stopping and starting OpenStack Object Storage

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.

Getting ready

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

How to do it...

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.

How it works...

The OpenStack Object Storage services are simply started, stopped, and restarted using the following syntax:

sudo swift-init all {start, stop, restart}
sudo swift-init swift-proxy {start, stop, restart}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset