Even better ;)<br>I thought I saw mention on the mailing lists of some notion of storage domain import/export is that also in the works?<br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 9:47 AM, Itamar Heim <span dir="ltr">&lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/01/2012 04:45 PM, Dead Horse wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Itamar, I concur with you.<br>
I am aware of the dangers here (I edited metadata once already to test<br>
recovering a storage domain in a test setup).<br>
It took me a few tries and looking through the code that generate and<br>
manipulates that data to get it right.<br>
<br>
However perhaps as a feature request it would be prudent to allow for<br>
the ability to choose or change which domain is the master without<br>
taking down all the other domains. If you have a-lot of domains this<br>
really becomes problematic to play musical chairs with the domains to<br>
get the one you want to be master elected. This also requires you to<br>
take down VM&#39;s which makes it even more problematic. Can we get a &quot;make<br>
this domain the master&quot; feature added to the UI/Cli?<br>
</blockquote>
<br></div>
the plan is to remove the need for a master domain to begin with (SDM feature)<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
  -DHC<br>
<br>
On Thu, Nov 1, 2012 at 2:07 AM, Itamar Heim &lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a><br></div><div class="im">
&lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;&gt; wrote:<br>
<br>
    On 11/01/2012 03:01 AM, Dead Horse wrote:<br>
<br>
        This is good info. Given that the metadata can be edited is<br>
        there a way<br>
        to redesignate which storage domain should be the master? I have run<br>
        into a couple of times in which for various reasons the master<br>
        domain<br>
        could not be reached and another storage domain was elected as<br>
        master.<br>
        Is there a way to force an election or edit the metadata to<br>
        redesignate<br>
        the original master domain back &quot;as master&quot; again?<br>
<br>
<br>
    i heartly suggest to not try and mess with that on your own.<br>
    you can move other storage domains to maint, to force engine to<br>
    reconstruct the master on another domain.<br>
    (again, do *not* do it on your own via metadata)<br>
<br>
<br>
        - DHC<br>
<br>
        On Wed, Oct 31, 2012 at 12:43 PM, Itamar Heim &lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a><br>
        &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;<br></div><div class="im">
        &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a> &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;&gt;&gt; wrote:<br>
<br>
             On 10/31/2012 07:36 PM, Simon Grinberg wrote:<br>
<br>
<br>
<br>
                 ----- Original Message -----<br>
<br>
                     From: &quot;Itamar Heim&quot; &lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a><br></div>
        &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt; &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a><div class="im"><br>
        &lt;mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;&gt;&gt;<br>
                     To: &quot;Michael Ayers&quot; &lt;<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a><br>
        &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>&gt;<br></div>
                     &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a><div class="im"><br>
        &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>&gt;&gt;&gt;<br>
                     Cc: <a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a> &lt;mailto:<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>&gt;<br></div>
        &lt;mailto:<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a> &lt;mailto:<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>&gt;&gt;<div><div class="h5"><br>
<br>
                     Sent: Tuesday, October 30, 2012 10:57:52 PM<br>
                     Subject: Re: [Users] Documentation: Storage Domain<br>
                     conversion from Data Domain to Export Domain<br>
<br>
                     On 10/30/2012 09:29 PM, Michael Ayers wrote:<br>
<br>
                         Hey All,<br>
<br>
                         I ran into this issue myself where I needed to<br>
        convert a<br>
                         data<br>
                         domain to<br>
                         an export domain in order to recover virtual<br>
        guests from a<br>
                         corrupted<br>
                         ovirt/rhevm instance into a new ovirt/rhevm<br>
        instance.<br>
                           This wasn’t<br>
                         documented anywhere that I saw but with the help of<br>
                         Itamar Heim and<br>
                         an<br>
                         well timed email to the list from Igor Lvovsky last<br>
                         night I was<br>
                         able to<br>
                         do this and wanted to send to the list a documented<br>
                         procedure for<br>
                         how to<br>
                         modify the metadata of the data domain prior to<br>
        import<br>
                         as an export<br>
                         domain.  This procedure works for both RHEV-M<br>
        and Ovirt.<br>
                           Let me<br>
                         know if<br>
                         you have any questions.<br>
<br>
<br>
                     glad it worked.<br>
<br>
<br>
                 Will this work if the recovered storage domain was not<br>
        the master?<br>
<br>
<br>
             no. only for nfs storage domain, only if it was master.<br>
<br>
<br>
<br>
<br>
                     care to wikify for others?<br>
<br>
                     thanks,<br>
                          Itamar<br>
<br>
<br>
                         Original Data Domain Metadata File<br>
<br>
<br></div></div>
        ------------------------------<u></u>____--------------------<div class="im"><br>
<br>
<br>
                         CLASS=Data<br>
<br>
                         DESCRIPTION=vm-storage<br>
<br>
                         IOOPTIMEOUTSEC=10<br>
<br>
                         LEASERETRIES=3<br>
<br>
                         LEASETIMESEC=60<br>
<br>
                         LOCKPOLICY=<br>
<br>
                         LOCKRENEWALINTERVALSEC=5<br>
<br>
                         MASTER_VERSION=2<br>
<br>
                         POOL_DESCRIPTION=MyPool<br>
<br>
<br></div>
        POOL_DOMAINS=dd8bc200-6e28-___<u></u>_4185-bfe0-f0affb94f283:<u></u>Active,____ddefdf6c-ef68-419c-<u></u>9f72-____76d27bf7d788:Active,<u></u>66b3b243-____6cc6-465f-b130-<u></u>6f2cd0b70514:____Active<br>
<br>
                         POOL_SPM_ID=2<br>
<br>
                         POOL_SPM_LVER=17<br>
<br>
                         POOL_UUID=a207f052-f4bf-44a3-_<u></u>___b637-c6d2020a7c41<br>
<br>
                         REMOTE_PATH=nfsserver:/ovirt/_<u></u>___vm-storage<br>
<br>
                         ROLE=Master<br>
<br>
                         SDUUID=66b3b243-6cc6-465f-____<u></u>b130-6f2cd0b70514<br>
<br>
                         TYPE=NFS<br>
<br>
                         VERSION=0<br>
<br>
<br>
        _SHA_CKSUM=____<u></u>009fa538321ac56749669127f43cc7<u></u>____54aa59d398<div class="im"><br>
<br>
<br>
                         Diff between Original DD Metadata File and ED<br>
        Metadata File<br>
<br>
<br></div>
        ------------------------------<u></u>____--------------------<div class="im"><br>
<br>
<br>
                         --- metadata-data-storage       2012-10-30<br>
                         12:24:52.484006958 -0700<br>
<br>
                         +++ metadata-exp-storage        2012-10-30<br>
                         12:14:59.043807789 -0700<br>
<br>
                         @@ -1,5 +1,5 @@<br>
<br>
                         -CLASS=Data<br>
<br>
                         -DESCRIPTION=vm-storage<br>
<br>
                         +CLASS=Backup<br>
<br>
                         +DESCRIPTION=export-storage<br>
<br>
                         IOOPTIMEOUTSEC=10<br>
<br>
                         LEASERETRIES=3<br>
<br>
                         LEASETIMESEC=60<br>
<br>
                         @@ -7,13 +7,12 @@<br>
<br>
                         LOCKRENEWALINTERVALSEC=5<br>
<br>
                         MASTER_VERSION=2<br>
<br>
                         POOL_DESCRIPTION=MyPool<br>
<br>
<br></div>
        -POOL_DOMAINS=dd8bc200-6e28-__<u></u>__4185-bfe0-f0affb94f283:<u></u>Active,____ddefdf6c-ef68-419c-<u></u>9f72-____76d27bf7d788:Active,<u></u>66b3b243-____6cc6-465f-b130-<u></u>6f2cd0b70514:____Active<br>
<br>
                         +POOL_DOMAINS=<br>
<br>
                         POOL_SPM_ID=2<br>
<br>
                         POOL_SPM_LVER=17<br>
<br>
                         -POOL_UUID=a207f052-f4bf-44a3-<u></u>____b637-c6d2020a7c41<br>
<br>
                         -REMOTE_PATH=nfsserver:/ovirt/<u></u>____vm-storage<br>
<br>
                         -ROLE=Master<br>
<br>
                         +POOL_UUID=<br>
<br>
                         +REMOTE_PATH=nfsserver:/ovirt/<u></u>____export-storage<br>
<br>
                         +ROLE=Regular<br>
<br>
                         SDUUID=66b3b243-6cc6-465f-____<u></u>b130-6f2cd0b70514<br>
<br>
                         TYPE=NFS<br>
<br>
                         VERSION=0<br>
<br>
<br>
        -_SHA_CKSUM=____<u></u>009fa538321ac56749669127f43cc7<u></u>____54aa59d398<br>
<br>
                         Thanks,<br>
<br>
                         Michael<br>
<br>
                         ------------------------------<u></u>____-------<div class="im"><br>
<br>
<br>
                         Michael J. Ayers<br>
<br>
                         Red Hat Inc.<br>
<br>
                         Solutions Architect<br>
<br>
                         e: <a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a><br>
        &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>&gt; &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a><br>
        &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>&gt;&gt;<br>
                         &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a><br>
        &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>&gt; &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a><br>
        &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>&gt;&gt;&gt;<br>
<br>
                         w: <a href="http://www.redhat.com" target="_blank">www.redhat.com</a> &lt;<a href="http://www.redhat.com" target="_blank">http://www.redhat.com</a>&gt;<br>
        &lt;<a href="http://www.redhat.com" target="_blank">http://www.redhat.com</a>&gt;<br></div>
                         &lt;<a href="http://www.redhat.com/" target="_blank">http://www.redhat.com/</a>&gt;<br>
<br>
<br>
<br>
                         ______________________________<u></u>_____________________<br>
                         Users mailing list<br>
        <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>&gt; &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>

        &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>&gt;&gt;<br>
        <a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
        &lt;<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>&gt;<br>
<br>
        &lt;<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a><br>
        &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>&gt;&gt;<br>
<br>
<br>
<br>
                     ______________________________<u></u>_____________________<br>
                     Users mailing list<br>
        <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>&gt; &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>

        &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>&gt;&gt;<br>
        <a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
        &lt;<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>&gt;<br>
                     &lt;<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a><br>
        &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>&gt;&gt;<br>
<br>
<br>
<br>
             ______________________________<u></u>_____________________<br>
             Users mailing list<br>
        <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>&gt; &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>

        &lt;mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>&gt;&gt;<br>
        <a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
        &lt;<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>&gt;<br>
             &lt;<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a><br>
        &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>&gt;&gt;<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote></div><br>