Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To perform maintenance on Ceph that brings Ceph down, all VMs must be stopped beforehand and restarted after maintenance has been finished.

Prerequisite

Have the following command line tools available:

  • bash
  • curl
  • jq
  • xargs

As an admin user, create an API key and store it to ADMIN_APIKEY environment variable. E.g. export ADMIN_APIKEY=x4g...

Store the API hostname to API_HOST environment variable. E.g. export API_HOST=api.pilw.io

Step by Step Guide

Mark all hypervisors as not accepting workloads so no new resources can be created.

...

Code Block
languagebash
cat running_vms.json | jq -r '.[]|.uuid' | \
xargs -n 1 -I {} curl -X POST -H "apikey: $ADMIN_APIKEY" https://$API_HOST/v1/.../stop -d uuid={}

Not all VMs might agree to stop. These must be stopped forcefully.

Code Block
languagebash

It is now safe to perform maintenance and bring Ceph offline.

...