How to re-add the RHEV- Hypervisor in RHEV-M

Latest response

Hi,

 

I have removed all the datacenter information from the RHEV-M manager and not i have created new Datacenter but i am not able to add the RHEV-H hosts "Name must be Unique", how to flush old host information from RHEV-M and the server in new cluster.

Responses

Have you actually removed the host? Each host has a unique ID, and that Id is held in the database. 

yes, so how to remove host id from the database.

If the host ID is recognized by RHEV Manager it means it's still defined, it may be floating though if you removed the data center first.

 

Please do the following:

On the tree pan please click the system object (if you have a data center selected instead you can't see floating hosts)

Then go to the host tab.

 

If the host is still defined in the system you should find it there.

Then you can just add it to the new data center or 'remove' it from the system.

Both operations should be done after placing the host into maintenance.

 

I hope this helps and I understood your system status correctly.

 

Simon

Hi,

 

I have already deleted the datacenter, and i created the new datacenter and cluster. and now i am not able to add the Host in a cluster, so i think we have to remove host id from the RHEV-M, so you have any idea about how to remove the host id from RHEV-m 

But if RHEV Manager still recognizes this host it means it is a floating host (Data center removed before the host)

You should be able to see it as I've said before - by looking at the hosts tab while the system object is selected in the tree pan on the left hand side of the screen (The top level of the host).

 

Please try it.

 

If it does not work, can you please show the output of

https://<rhevm-site>:8443/api/hosts

Is the hosts listed there?

 

(user:admin@internal , password is your admin password)

Hi Simon,

 

Thanks for resolving my issue, all the hosts were listed under System-->Host tabe, i removed from the System and now i am able to add the hosts under new cluster.

 

But now i am not able to see the storage under hosts, all the 3 storage are showing uder system-->Storage tabe as a unattached. my VMs are stored in these storage. 

 

how i can attach these storage with my cluser hosts, below the is the screen shot of the storage tab and out put of (https://10.0.0.69:8443/api/hosts)

 

Hi Simon,

 

Thanks for resolving my issue, all the hosts were listed under System-->Host tabe, i removed from the System and now i am able to add the hosts under new cluster.

 

But now i am not able to see the storage under hosts, all the 3 storage are showing under system-->Storage tabe as a unattached. and when i am trying to remove the storage "Failed to remove Storage Domain ISCSI-SAN. (User: admin@internal)" this message is coming usder event. My VMs are stored in these storage. 

 

How i can re-attach these storage with my cluster hosts, belwo is the out put of (https://10.0.0.69:8443/api/hosts)

 

 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <hosts>
- <host id="d90850b4-2cb9-11e1-8192-000c29d3bdf2" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2">
  <name>rcl1.srinfotec.com</name>
- <actions>
  <link rel="install" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/install" />
  <link rel="fence" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/fence" />
  <link rel="activate" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/activate" />
  <link rel="deactivate" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/deactivate" />
  <link rel="approve" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/approve" />
  <link rel="iscsilogin" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/iscsilogin" />
  <link rel="iscsidiscover" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/iscsidiscover" />
  <link rel="commitnetconfig" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/commitnetconfig" />
  </actions>
  <link rel="storage" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/storage" />
  <link rel="nics" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/nics" />
  <link rel="tags" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/tags" />
  <link rel="permissions" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/permissions" />
  <link rel="statistics" href="/api/hosts/d90850b4-2cb9-11e1-8192-000c29d3bdf2/statistics" />
  <address>10.0.0.71</address>
- <status>
  <state>up</state>
  </status>
  <cluster id="62b1ce18-2bb5-11e1-a2f4-000c29d3bdf2" href="/api/clusters/62b1ce18-2bb5-11e1-a2f4-000c29d3bdf2" />
  <port>54321</port>
  <type>rhev-h</type>
  <storage_manager>false</storage_manager>
- <power_management>
  <enabled>false</enabled>
  <options />
  </power_management>
- <ksm>
  <enabled>true</enabled>
  </ksm>
- <transparent_hugepages>
  <enabled>true</enabled>
  </transparent_hugepages>
- <iscsi>
  <initiator>iqn.1994-05.com.redhat:7772dabe13a9</initiator>
  </iscsi>
- <cpu>
  <topology cores="1" />
  <name>Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz</name>
  <speed>3392</speed>
  </cpu>
- <summary>
  <active>0</active>
  <migrating>0</migrating>
  <total>0</total>
  </summary>
  </host>
- <host id="662ca864-2cba-11e1-a021-000c29d3bdf2" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2">
  <name>rcl3.srinfotec.com</name>
- <actions>
  <link rel="install" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/install" />
  <link rel="fence" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/fence" />
  <link rel="activate" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/activate" />
  <link rel="deactivate" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/deactivate" />
  <link rel="approve" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/approve" />
  <link rel="iscsilogin" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/iscsilogin" />
  <link rel="iscsidiscover" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/iscsidiscover" />
  <link rel="commitnetconfig" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/commitnetconfig" />
  </actions>
  <link rel="storage" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/storage" />
  <link rel="nics" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/nics" />
  <link rel="tags" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/tags" />
  <link rel="permissions" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/permissions" />
  <link rel="statistics" href="/api/hosts/662ca864-2cba-11e1-a021-000c29d3bdf2/statistics" />
  <address>10.0.0.73</address>
- <status>
  <state>up</state>
  </status>
  <cluster id="62b1ce18-2bb5-11e1-a2f4-000c29d3bdf2" href="/api/clusters/62b1ce18-2bb5-11e1-a2f4-000c29d3bdf2" />
  <port>54321</port>
  <type>rhev-h</type>
  <storage_manager>false</storage_manager>
- <power_management>
  <enabled>false</enabled>
  <options />
  </power_management>
- <ksm>
  <enabled>false</enabled>
  </ksm>
- <transparent_hugepages>
  <enabled>true</enabled>
  </transparent_hugepages>
- <iscsi>
  <initiator>iqn.1994-05.com.redhat:4087e3b71ee0</initiator>
  </iscsi>
- <cpu>
  <topology cores="1" />
  <name>Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz</name>
  <speed>3392</speed>
  </cpu>
- <summary>
  <active>0</active>
  <migrating>0</migrating>
  <total>0</total>
  </summary>
  </host>
  </hosts>

 

Hello Rohit,

 

Did you detach the Storage Domains from the Data Center? I would like to retrace the steps of what you did exactly, so I can understand the state you are in. Thing is, if you attach an unattached domain to a new Data Center, the data on the domain will be wiped.

 

Thanks,

Dan

yes, i have removed the storage domain from the system tree, so is there any way to get my vm data back

Can you tell me the steps exactly the way you took them? Removing a storage domain, or detaching it from a data center, while there are VMs on it should not be possible.