GNU/Linux >> Linux Esercitazione >  >> Cent OS

Come reimpostare una macchina virtuale sconosciuta nel database del motore RHV

Su AdminPortal, vedi che lo stato della macchina virtuale diventa sconosciuto con un punto interrogativo nero e tutte le operazioni diventano grigie e nessuna operazione può essere eseguita su questa macchina virtuale come segue:

Questo post ti mostrerà come ripristinare lo stato della vm nel database del motore ed eseguire nuovamente la VM.

1. Segui i passaggi seguenti per connetterti al database del motore Postgres.

Utili query di database PostgreSQL del motore RHV

2. Verifica lo stato della VM in Databse:

# select a.vm_guid,a.vm_name,b.status,c.vds_name from vm_static a, vm_dynamic b,vds_static c where a.vm_guid=b.vm_guid and b.run_on_vds=c.vds_id ;

Ad esempio:

engine=# select a.vm_guid,a.vm_name,b.status,c.vds_name from vm_static a, vm_dynamic b,vds_static c where a.vm_guid=b.vm_guid and b.run_on_vds=c.vds_id ;
vm_guid | vm_name | status | vds_name
----------------------------+---------+--------+--------------------------
xxx-xxx-xxx-xxx-xxx | VM1 | 1 | KVM Host1
xxx-xxx-xxx-xxx-xxx | VM2 | 1 | KVM Host2
xxx-xxx-xxx-xxx-xxx | VM3 | 7 | KVM Host3         >>>>>>>>>> Status 7 indicates that the VM is in unknown.
(3 rows)

3. Fai un backup del database corrente seguendo il seguente post:

Come eseguire il backup e il ripristino di RHEV Manager Engine

4. Aggiorna lo stato della VM nel database:

# update vm_dynamic set status = 0 where vm_guid =(select vm_guid from vm_static where vm_name = '');

Ad esempio:

engine=# update vm_dynamic set status = 0 where vm_guid =(select vm_guid from vm_static where vm_name = 'VM3');
UPDATE 1

5. Controlla lo stato attuale della VM in AdminPortal e diventerà "Down".

6. Ora puoi fare clic sul pulsante "Esegui" per avviare questa VM.


Cent OS
  1. Come installare wordpress su CentOS 6

  2. Come installare AIDE su CentOS 7

  3. Come creare database in cPanel

  4. Come reimpostare la password di root di MySQL

  5. Utili query di database PostgreSQL del motore RHV

Come ripristinare Ubuntu

Come installare Moodle su CentOS 8

Come installare WordPress

Come creare un database in MySQL

Come riparare un database

Come reimpostare una password del database all'interno di cPanel