On 04/05/2012 01:30 AM, Andrey Falko wrote:
Hi everyone,
I have one more question:
I want to use local storage, but I want to register the same template on each node. I am
working on a mechanism right now where I detach and remove the Export domain, add it for a
target dc/cluster/host, import the template, deactivate+detach+remove the export domain
and repeat for the next host. Is this mechanism the only choice I have? Is there a better
way?
you need the template on each DC (until you would be able to mix types
of storage domains and use a shared NFS for the template for example).
this feature should allow you to import it more than once, but not
implemented yet:
http://www.ovirt.org/wiki/Features/ImportMoreThanOnce
that hints your current solution will not work, since you cannot import
the same object today more than once (even to another DC).
since this is local storage, you can hack it a bit and just create a
template with the disk on all DCs, then dd/rsync the real one to
override the created disk in all local storage.