Versions Compared

Key

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

...

Code Block
# Friendly one liner
for a in adminlb apimon cache cinder glance heatapi heatengine horizon kanin keystone munin neutronapi novaapi novaservices puppetdb redis sensu servicelb; do for b in $(seq 0 2); do ssh $a$b "halt" ; done ; done

# Broken down for readability
for a in adminlb apimon cache cinder glance heatapi heatengine horizon kanin keystone munin neutronapi novaapi novaservices puppetdb redis sensu servicelb;
  do for b in $(seq 0 2);do
    ssh $a$b "halt"
  done
done

3 - Storage noder

Verify on a cephmon 0 i/o

Shut down storage01 to 05.

Code Block
for a in $(seq 1 5); do ssh storage0$a halt ; done

4 - postgres

Find the master. Use ip addr show and note the one with two interfaces

...

Shut down the non masters

Shut down the master

4 5 - mysql

5 Verify no io on cephmon

Shut down one by one.

Code Block
for a in $(seq 0 2); do ssh mysql$a halt; sleep 60 ; done

6 - Kanin6 Shut down storage nodes

Code Block
for a in $(seq 10 52); do ssh kanin$a storage0$ahalt; hostnamesleep 15; done

7 Shut down cephmon

Code Block
for a in $(seq 0 2); do ssh cephmon$a halt; done