This is good info. Given that the metadata can be edited is there a way to redesignate which storage domain should be the master? I have run into a couple of times in which for various reasons the master domain could not be reached and another storage domain was elected as master. Is there a way to force an election or edit the metadata to redesignate the original master domain back "as master" again?<br>
<br>- DHC <br><br><div class="gmail_quote">On Wed, Oct 31, 2012 at 12:43 PM, Itamar Heim <span dir="ltr"><<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 10/31/2012 07:36 PM, Simon Grinberg wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
----- Original Message -----<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: "Itamar Heim" <<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>><br>
To: "Michael Ayers" <<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>><br>
Cc: <a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a><br>
Sent: Tuesday, October 30, 2012 10:57:52 PM<br>
Subject: Re: [Users] Documentation: Storage Domain conversion from Data Domain to Export Domain<br>
<br>
On 10/30/2012 09:29 PM, Michael Ayers wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey All,<br>
<br>
I ran into this issue myself where I needed to convert a 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. This wasn’t<br>
documented anywhere that I saw but with the help of Itamar Heim and<br>
an<br>
well timed email to the list from Igor Lvovsky last night I was<br>
able to<br>
do this and wanted to send to the list a documented procedure for<br>
how to<br>
modify the metadata of the data domain prior to import as an export<br>
domain. This procedure works for both RHEV-M and Ovirt. Let me<br>
know if<br>
you have any questions.<br>
</blockquote>
<br>
glad it worked.<br>
</blockquote>
<br>
Will this work if the recovered storage domain was not the master?<br>
</blockquote>
<br></div></div>
no. only for nfs storage domain, only if it was master.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
care to wikify for others?<br>
<br>
thanks,<br>
Itamar<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Original Data Domain Metadata File<br>
<br>
------------------------------<u></u>--------------------<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>
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<br>
<br>
Diff between Original DD Metadata File and ED Metadata File<br>
<br>
------------------------------<u></u>--------------------<br>
<br>
--- metadata-data-storage 2012-10-30 12:24:52.484006958 -0700<br>
<br>
+++ metadata-exp-storage 2012-10-30 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>
-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>-------<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> <mailto:<a href="mailto:ayersmj@redhat.com" target="_blank">ayersmj@redhat.com</a>><br>
<br>
w: <a href="http://www.redhat.com" target="_blank">www.redhat.com</a> <<a href="http://www.redhat.com/" target="_blank">http://www.redhat.com/</a>><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
<br>
</blockquote></blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>