meta data de esta página
  •  

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
virtualizacion:vmware:vcenter:eliminar_host_manualmente [2011/06/10 11:47] lcvirtualizacion:vmware:vcenter:eliminar_host_manualmente [2023/01/18 14:46] (actual) – editor externo 127.0.0.1
Línea 1: Línea 1:
 +===== Eliminar manualmente un host del Vcenter =====
 Recientemente he tenido un problema al intentar eliminar un host del vcenter al que previamente le había cambiado los permisos.  Recientemente he tenido un problema al intentar eliminar un host del vcenter al que previamente le había cambiado los permisos. 
  
Línea 18: Línea 19:
 Nos da un identificador que será el usaremos para los siguientes pasos Nos da un identificador que será el usaremos para los siguientes pasos
  
-<ocde sql>delete from vpx_ds_assignment where entity_id in (select id from vpx_vm where host_id = 3761);+<code sql>delete from vpx_ds_assignment where entity_id in (select id from vpx_vm where host_id = 3761);
  
 delete from vpx_nw_assignment where entity_id in (select id from vpx_vm where host_id = 3761);</code> delete from vpx_nw_assignment where entity_id in (select id from vpx_vm where host_id = 3761);</code>
Línea 25: Línea 26:
 <code sql>select id from vpx_vm where host_id = 3761;</code> <code sql>select id from vpx_vm where host_id = 3761;</code>
 <note warning>y apuntamos en un papel su identificador que usaremos más adelante</note> <note warning>y apuntamos en un papel su identificador que usaremos más adelante</note>
-<code>delete from vpx_vm where host_id = 3761;</code>+<code sql>delete from vpx_vm where host_id = 3761;</code>
 Borramos las máquinas virtuales asociadas a este host que habiamos anotado previamente Borramos las máquinas virtuales asociadas a este host que habiamos anotado previamente
 <code sql>delete from vpx_entity where id in (724,717,4837,5259);</code> <code sql>delete from vpx_entity where id in (724,717,4837,5259);</code>
 <code sql>delete from vpx_host where id = 3761; <code sql>delete from vpx_host where id = 3761;
 delete from vpx_entity where id = 3761; delete from vpx_entity where id = 3761;
- 
 delete from vpx_entity where parent_id = 3761; delete from vpx_entity where parent_id = 3761;
 +delete from vpx_entity where id = 3761;</code>
  
-delete from vpx_entity where id = 3761; +Reiniciamos el servicio VMware Vcenter
- +
-select * from VPX_ENTITY where name like '%vpre%';+
  
-select * from vpx_vm; 
  
  
  
  
-Referencias+==== Referencias ====
   * http://www.douglaspsmith.com/home/2011/1/6/manually-removing-a-host-from-inventory.html   * http://www.douglaspsmith.com/home/2011/1/6/manually-removing-a-host-from-inventory.html