Regarding the way to remove the old DC and move from local to iSCSI storage, you can:
1) deactivate the last domain in the DC (After detaching all other domains in the DC)
2) remove the DC (while there is still a host in the DC)
3) remove the domain regularly (which should clean the storage itself
4) move the host to the new DC
Regarding the fact that the other domain was removed cleanly and is still visible in the
metadata that is very strange. Do you happen to have logs from the creation/deletion of
that domain?
Gadi Ickowicz
----- Original Message -----
From: "Boyan Tabakov" <blade(a)alslayer.net>
To: "Gadi Ickowicz" <gickowic(a)redhat.com>
Cc: users(a)ovirt.org
Sent: Tuesday, February 25, 2014 2:48:30 PM
Subject: Re: [Users] Old storage domain ID left behind in master storage domain's
metadata
On 25.2.2014, 14:42, Boyan Tabakov wrote:
Hi,
On 25.2.2014, 14:00, Gadi Ickowicz wrote:
> Hi,
>
> How exactly did you delete the storage domain and dc?
>
> From the steps you are describing, since the host was not part of the DC when you
removed it you had to have used 'force remove' on the DC, which does indeed remove
the DC and the domain from the UI, but that is *all* it does.
> It only removes references to those objects from engine's DB, it does not remove
the actual storage domain (VG).
If I recall correctly (that was couple of months ago), I might have
really forced the removal. The issue was, that I wanted to get rid of
the default created local storage domain and datacenter, so that I can
create a proper iSCSI storage domain and later add other nodes (convert
the all-in-one to multinode setup).
The idea was to convert the all-in-one installation to one having
multiple nodes and one of those running the engine. Since in the
beginning there was only one host, the all-in-one one, it had to be
moved to a new DC. That left the default DC without any host.
Was there a better way to achieve this? Is it possible to manually
update the metadata or tell vdsmd to do so somehow?
Thanks,
Boyan
Additionally, one of the left out domains was a test iSCSI SD created in
the new SD, which was removed cleanly, afaik.