After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 145 of 317

Chapter 6 135 How it works... Manually removing a node from our OpenStack Storage cluster is done in three steps: 1. Setting the node's weight to be 0, so data isn't being replicated to it, by using the swift-ring-builder set_weight command. 2. Rebalancing the rings to update the data replication. 3. Removing the node from the OpenStack Storage cluster, using the swift-ring-builder remove command. Once done, we are then free to decommission that node. We repeat this for each node (or device) in the zone. Detecting and replacing failed hard drives OpenStack Storage won't be of much use if it can't access the hard drives where our data is stored; so being able to detect and replace failed hard drives is essential. Getting ready Log in to an OpenStack Storage node as well as the proxy server. How to do it... To detect a failing hard drive, carry out the following: Storage node 1. We first need to configure a cron job that monitors /var/log/kern.log for failed disk errors on our storage nodes. To do this, we create a configuration file named / etc/swift/swift-drive-audit.conf, as follows: [drive-audit] log_facility=LOG_LOCAL0 log_level=INFO device_dir=/srv/node minutes=60 error_limit=1 2. We then add a cron job that executes swift-drive-audit hourly, as follows: echo '/usr/bin/swift-drive-audit /etc/swift/swift-drive-audit. conf' | sudo tee -a /etc/cron.hourly/swift-drive-audit www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook