Itamar, I concur with you.<br>I am aware of the dangers here (I edited metadata once already to test recovering a storage domain in a test setup).<br>It took me a few tries and looking through the code that generate and manipulates that data to get it right.<br>
<br>However perhaps as a feature request it would be prudent to allow for the ability to choose or change which domain is the master without taking down all the other domains. If you have a-lot of domains this really becomes problematic to play musical chairs with the domains to get the one you want to be master elected. This also requires you to take down VM&#39;s which makes it even more problematic. Can we get a &quot;make this domain the master&quot; feature added to the UI/Cli?<br>
<br> -DHC<br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 2:07 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 03:01 AM, Dead Horse wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is good info. Given that the metadata can be edited is 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 domain<br>
could not be reached and another storage domain was elected as master.<br>
Is there a way to force an election or edit the metadata to redesignate<br>
the original master domain back &quot;as master&quot; again?<br>
</blockquote>
<br></div>
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 reconstruct the master on another domain.<br>
(again, do *not* do it on your own via metadata)<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 Wed, Oct 31, 2012 at 12:43 PM, 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 10/31/2012 07:36 PM, Simon Grinberg wrote:<br>
<br>
<br>
<br>
        ----- Original Message -----<br>
<br></div>
            From: &quot;Itamar Heim&quot; &lt;<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;<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;&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;<div><div class="h5"><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 convert a<br>
                data<br>
                domain to<br>
                an export domain in order to recover virtual guests from a<br>
                corrupted<br>
                ovirt/rhevm instance into a new ovirt/rhevm 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 import<br>
                as an export<br>
                domain.  This procedure works for both RHEV-M 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 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></div></div>
                ------------------------------<u></u>__--------------------<div class="im"><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></div>
                POOL_DOMAINS=dd8bc200-6e28-__<u></u>4185-bfe0-f0affb94f283:Active,<u></u>__ddefdf6c-ef68-419c-9f72-__<u></u>76d27bf7d788:Active,66b3b243-_<u></u>_6cc6-465f-b130-6f2cd0b70514:_<u></u>_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>
                _SHA_CKSUM=__<u></u>009fa538321ac56749669127f43cc7<u></u>__54aa59d398<div class="im"><br>
<br>
                Diff between Original DD Metadata File and ED Metadata File<br>
<br></div>
                ------------------------------<u></u>__--------------------<div class="im"><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></div>
                -POOL_DOMAINS=dd8bc200-6e28-__<u></u>4185-bfe0-f0affb94f283:Active,<u></u>__ddefdf6c-ef68-419c-9f72-__<u></u>76d27bf7d788:Active,66b3b243-_<u></u>_6cc6-465f-b130-6f2cd0b70514:_<u></u>_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>
                -_SHA_CKSUM=__<u></u>009fa538321ac56749669127f43cc7<u></u>__54aa59d398<br>
<br>
                Thanks,<br>
<br>
                Michael<br>
<br>
                ------------------------------<u></u>__-------<div class="im"><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> &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> &lt;mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>&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>
<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;<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>
<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;<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>
<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;<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>
<br>
</blockquote>
<br>
<br>
</blockquote></div><br>