This is a multipart message in MIME format.
------=_NextPart_000_018F_01CDB69A.3C5318B0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hey All,
I ran into this issue myself where I needed to convert a data domain to an
export domain in order to recover virtual guests from a corrupted
ovirt/rhevm instance into a new ovirt/rhevm instance. This wasn't
documented anywhere that I saw but with the help of Itamar Heim and an
well timed email to the list from Igor Lvovsky last night I was able to do
this and wanted to send to the list a documented procedure for how to
modify the metadata of the data domain prior to import as an export
domain. This procedure works for both RHEV-M and Ovirt. Let me know if
you have any questions.
Original Data Domain Metadata File
--------------------------------------------------
CLASS=Data
DESCRIPTION=vm-storage
IOOPTIMEOUTSEC=10
LEASERETRIES=3
LEASETIMESEC=60
LOCKPOLICY=
LOCKRENEWALINTERVALSEC=5
MASTER_VERSION=2
POOL_DESCRIPTION=MyPool
POOL_DOMAINS=dd8bc200-6e28-4185-bfe0-f0affb94f283:Active,ddefdf6c-ef68-419
c-9f72-76d27bf7d788:Active,66b3b243-6cc6-465f-b130-6f2cd0b70514:Active
POOL_SPM_ID=2
POOL_SPM_LVER=17
POOL_UUID=a207f052-f4bf-44a3-b637-c6d2020a7c41
REMOTE_PATH=nfsserver:/ovirt/vm-storage
ROLE=Master
SDUUID=66b3b243-6cc6-465f-b130-6f2cd0b70514
TYPE=NFS
VERSION=0
_SHA_CKSUM=009fa538321ac56749669127f43cc754aa59d398
Diff between Original DD Metadata File and ED Metadata File
--------------------------------------------------
--- metadata-data-storage 2012-10-30 12:24:52.484006958 -0700
+++ metadata-exp-storage 2012-10-30 12:14:59.043807789 -0700
@@ -1,5 +1,5 @@
-CLASS=Data
-DESCRIPTION=vm-storage
+CLASS=Backup
+DESCRIPTION=export-storage
IOOPTIMEOUTSEC=10
LEASERETRIES=3
LEASETIMESEC=60
@@ -7,13 +7,12 @@
LOCKRENEWALINTERVALSEC=5
MASTER_VERSION=2
POOL_DESCRIPTION=MyPool
-POOL_DOMAINS=dd8bc200-6e28-4185-bfe0-f0affb94f283:Active,ddefdf6c-ef68-41
9c-9f72-76d27bf7d788:Active,66b3b243-6cc6-465f-b130-6f2cd0b70514:Active
+POOL_DOMAINS=
POOL_SPM_ID=2
POOL_SPM_LVER=17
-POOL_UUID=a207f052-f4bf-44a3-b637-c6d2020a7c41
-REMOTE_PATH=nfsserver:/ovirt/vm-storage
-ROLE=Master
+POOL_UUID=
+REMOTE_PATH=nfsserver:/ovirt/export-storage
+ROLE=Regular
SDUUID=66b3b243-6cc6-465f-b130-6f2cd0b70514
TYPE=NFS
VERSION=0
-_SHA_CKSUM=009fa538321ac56749669127f43cc754aa59d398
Thanks,
Michael
-------------------------------------
Michael J. Ayers
Red Hat Inc.
Solutions Architect
e: <mailto:ayersmj@redhat.com> ayersmj(a)redhat.com
w: <
http://www.redhat.com/> www.redhat.com
------=_NextPart_000_018F_01CDB69A.3C5318B0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US
link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Hey =
All,<o:p></o:p></p><p
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>I ran into this issue myself where I needed to convert =
a data domain to an export domain in order to recover virtual guests =
from a corrupted ovirt/rhevm instance into a new ovirt/rhevm =
instance. This wasn’t documented anywhere that I saw but =
with the help of Itamar Heim and an well timed email to the list from =
Igor Lvovsky last night I was able to do this and wanted to send to the =
list a documented procedure for how to modify the metadata of the data =
domain prior to import as an export domain. This procedure works =
for both RHEV-M and Ovirt. Let me know if you have any =
questions.<o:p></o:p></p><p
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>Original Data Domain =
Metadata File<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-------------------------=
-------------------------<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>CLASS=3DData<o:p></o:p></=
span></p><p class=3DMsoNormal style=3D'margin-left:.5in'><span
=
style=3D'font-size:10.0pt;font-family:Consolas'>DESCRIPTION=3Dvm-storage<=
o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>IOOPTIMEOUTSEC=3D10<o:p><=
/o:p
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>LEASERETRIES=3D3<o:p></o:=
p
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>LEASETIMESEC=3D60<o:p></o=
:p
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>LOCKPOLICY=3D<o:p></o:p><=
/span></p><p class=3DMsoNormal style=3D'margin-left:.5in'><span
=
style=3D'font-size:10.0pt;font-family:Consolas'>LOCKRENEWALINTERVALSEC=3D=
5<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>MASTER_VERSION=3D2<o:p></=
o:p
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>POOL_DESCRIPTION=3DMyPool=
<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>POOL_DOMAINS=3Ddd8bc200-6=
e28-4185-bfe0-f0affb94f283:Active,ddefdf6c-ef68-419c-9f72-76d27bf7d788:Ac=
tive,66b3b243-6cc6-465f-b130-6f2cd0b70514:Active<o:p></o:p></span></p><p
=
class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>POOL_SPM_ID=3D2<o:p></o:p=
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>POOL_SPM_LVER=3D17<o:p></=
o:p
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>POOL_UUID=3Da207f052-f4bf=
-44a3-b637-c6d2020a7c41<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>REMOTE_PATH=3Dnfsserver:/=
ovirt/vm-storage<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>ROLE=3DMaster<o:p></o:p><=
/span></p><p class=3DMsoNormal style=3D'margin-left:.5in'><span
=
style=3D'font-size:10.0pt;font-family:Consolas'>SDUUID=3D66b3b243-6cc6-46=
5f-b130-6f2cd0b70514<o:p></o:p></span></p><p class=3DMsoNormal
=
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>TYPE=3DNFS<o:p></o:p></sp=
an></p><p class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>VERSION=3D0<o:p></o:p></s=
pan></p><p class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>_SHA_CKSUM=3D009fa538321a=
c56749669127f43cc754aa59d398<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'><o:p> </o:p></span><=
/p><p class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'><o:p> </o:p></span><=
/p><p class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>Diff between Original DD =
Metadata File and ED Metadata File<o:p></o:p></span></p><p =
class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-------------------------=
-------------------------<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>--- =
metadata-data-storage
2012-10-30 =
12:24:52.484006958 -0700<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>+++ =
metadata-exp-storage =
2012-10-30 12:14:59.043807789
-0700<o:p></o:p></span></p><p =
class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>@@ -1,5 +1,5 =
@@<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-CLASS=3DData<o:p></o:p><=
/span></p><p class=3DMsoNormal style=3D'margin-left:.5in'><span
=
style=3D'font-size:10.0pt;font-family:Consolas'>-DESCRIPTION=3Dvm-storage=
<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>+CLASS=3DBackup<o:p></o:p=
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>+DESCRIPTION=3Dexport-sto=
rage<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
IOOPTIMEOUTSEC=3D10<o:p></o:p></span></p><p class=3DMsoNormal
=
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
LEASERETRIES=3D3<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
LEASETIMESEC=3D60<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>@@ -7,13 +7,12 =
@@<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
LOCKRENEWALINTERVALSEC=3D5<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
MASTER_VERSION=3D2<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
POOL_DESCRIPTION=3DMyPool<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-POOL_DOMAINS=3Ddd8bc200-=
6e28-4185-bfe0-f0affb94f283:Active,ddefdf6c-ef68-419c-9f72-76d27bf7d788:A=
ctive,66b3b243-6cc6-465f-b130-6f2cd0b70514:Active<o:p></o:p></span></p><p=
class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>+POOL_DOMAINS=3D<o:p></o:=
p
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
POOL_SPM_ID=3D2<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
POOL_SPM_LVER=3D17<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-POOL_UUID=3Da207f052-f4b=
f-44a3-b637-c6d2020a7c41<o:p></o:p></span></p><p
class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-REMOTE_PATH=3Dnfsserver:=
/ovirt/vm-storage<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-ROLE=3DMaster<o:p></o:p>=
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>+POOL_UUID=3D<o:p></o:p><=
/span></p><p class=3DMsoNormal style=3D'margin-left:.5in'><span
=
style=3D'font-size:10.0pt;font-family:Consolas'>+REMOTE_PATH=3Dnfsserver:=
/ovirt/export-storage<o:p></o:p></span></p><p class=3DMsoNormal
=
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>+ROLE=3DRegular<o:p></o:p=
</span></p><p class=3DMsoNormal
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
SDUUID=3D66b3b243-6cc6-465f-b130-6f2cd0b70514<o:p></o:p></span></p><p
=
class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
TYPE=3DNFS<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'> =
VERSION=3D0<o:p></o:p></span></p><p class=3DMsoNormal =
style=3D'margin-left:.5in'><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-_SHA_CKSUM=3D009fa538321=
ac56749669127f43cc754aa59d398<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'><o:p> </o:p></span><=
/p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>Thanks,<o:p></o:p></span>=
</p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'><o:p> </o:p></span><=
/p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>Michael<o:p></o:p></span>=
</p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>-------------------------=
------------<o:p></o:p></span></p><p
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>Michael J. =
Ayers<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>Red Hat =
Inc.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>Solutions =
Architect<o:p></o:p></span></p><p class=3DMsoNormal><span
=
style=3D'font-size:10.0pt;font-family:Consolas'>e: <a =
href=3D"mailto:ayersmj@redhat.com"><span =
style=3D'color:blue'>ayersmj@redhat.com</span></a><o:p></o:p></span></p><=
p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'>w: <a =
href=3D"http://www.redhat.com/"><span =
style=3D'color:blue'>www.redhat.com</span></a><o:p></o:p></span></p><p
=
class=3DMsoNormal><o:p> </o:p></p><p
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Consolas'><o:p> </o:p></span><=
/p></div></body></html>
------=_NextPart_000_018F_01CDB69A.3C5318B0--