Issue link: https://read.uberflip.com/i/1334488
Administering OpenStack Storage 136 3. With this in place, when a drive has been detected as faulty, the script will unmount it, so that OpenStack Storage can work around the issue. Therefore, when a disk has been marked as faulty and taken offline, you can now replace it. Without swift-drive-audit taking care of this automatically, should you need to act manually, ensure the disk has been unmounted and removed from the ring. 4. Once the disk has been physically replaced, we can follow the instructions as described in the Managing capacity recipe to add our node or device back into our cluster. How it works... Detection of failed hard drives can be picked up automatically by the swift-drive-audit tool, which we set up as a cron job to run hourly. With this in place, it detects failures, unmounts the drive so it can't be used, and updates the ring, so that data isn't being stored or replicated to it. Once the drive has been removed from the rings, we can run maintenance on that device and replace the drive. With a new drive in place, we can then put the device back in service on the storage node by adding it back into the rings. We can then rebalance the rings by running the swift-ring-builder commands. Collecting usage statistics OpenStack Storage can report on usage metrics by using the swift-recon middleware added to our object-server configuration. By using a tool, also named swift-recon, we can then query these collected metrics. Getting ready Log in to an OpenStack Storage node as well as the proxy server. www.it-ebooks.info

