[ English | русский | Deutsch | Indonesia | English (United Kingdom) ]

Mematikan host Compute

Jika host Compute perlu dimatikan:

  1. Nonaktifkan biner nova-compute:

    # nova service-disable --reason "Hardware replacement" HOSTNAME nova-compute
    
  2. Daftar semua instance yang berjalan pada host Compute:

    # nova list --all-t --host <compute_name> | awk '/ACTIVE/ {print $2}' > \
    /home/user/running_instances && for i in `cat /home/user/running_instances`; do nova stop $i ; done
    
  3. Gunakan SSH untuk terhubung ke host Compute.

  4. Konfirmasikan semua instance tidak aktif:

    # virsh list --all
    
  5. Matikan host Compute:

    # shutdown -h now
    
  6. Setelah Compute hos kembali online, konfirmasi semuanya sudah berfungsi dan mulai instance pada host. Sebagai contoh:

    # cat /home/user/running_instances
    # do nova start $instance
      done
    
  7. Aktifkan layanan nova-compute di lingkungan:

    # nova service-enable HOSTNAME nova-compute