<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:9.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:ZH-CN;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Century Gothic","sans-serif";
        color:blue;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
p.a, li.a, div.a
        {mso-style-name:\6279\6CE8\6846\6587\672C;
        mso-style-link:"\6279\6CE8\6846\6587\672C Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
span.Char
        {mso-style-name:"\6279\6CE8\6846\6587\672C Char";
        mso-style-priority:99;
        mso-style-link:\6279\6CE8\6846\6587\672C;
        font-family:"Calibri","sans-serif";}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Century Gothic","sans-serif";
        color:blue;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'>In my case I actually have a spare server (physical) that I keep patched and up-to-date, the engine backups are automatically transferred there. If my hosted-engine goes down I restore the engine database on the physical spare and run like that until I can get the hosted-engine back up.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'>I’ve never tried restoring onto a newly deployed hosted-engine VM using hosted-engine --deploy, but I can’t see why that wouldn’t work (maybe someone else knows if this is possible?). I’ll give it a try too.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left'><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Xie, Chao [mailto:xiec.fnst@cn.fujitsu.com] <br><b>Sent:</b> September-05-14 3:23 AM<br><b>To:</b> Groten, Ryan; users@ovirt.org<br><b>Subject:</b> </span><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>答复</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>: How to backup/restore the rhevm-VM in hosted-engine ?<o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi, Ryan<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> Thanks for replying. I know your meaning and engine-backup command. But I have some questions with your way: “</span><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'>If the hosted-engine needs to be restored for some reason I will just recreate the OS and restore the engine database</span><span lang=EN-US style='color:#1F497D'>”.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> Do you recreate the Guest using original host? And the host needn’t to be fresh installed and just excute hosted-engine –deployed again, we can recreate another OS?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left'><b><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>发件人</span></b><b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'>:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'> Groten, Ryan [<a href="mailto:Ryan.Groten@stantec.com">mailto:Ryan.Groten@stantec.com</a>] <br></span><b><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>发送时间</span></b><b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'>:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'> 2014</span><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>年</span><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'>9</span><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>月</span><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'>5</span><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>日</span><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'> 4:29<br></span><b><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>收件人</span></b><b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'>:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'> Xie, Chao/</span><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>谢 超</span><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'>; <a href="mailto:users@ovirt.org">users@ovirt.org</a><br></span><b><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>主题</span></b><b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'>:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:SimSun'> RE: How to backup/restore the rhevm-VM in hosted-engine ?<o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'>In 3.4 there is a backup/restore utility called engine-backup. You can use this to backup the RHEV-M database(s) as well as restore. Of course this won’t backup the Guest OS itself.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'>My DR strategy is to simply copy off these engine-backup files to another location. If the hosted-engine needs to be restored for some reason I will just recreate the OS and restore the engine database.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'>Check this link for documentation:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'><a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Administration_Guide/chap-Backups.html">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Administration_Guide/chap-Backups.html</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:blue'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal align=left style='text-align:left'><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:users-bounces@ovirt.org">users-bounces@ovirt.org</a> [<a href="mailto:users-bounces@ovirt.org">mailto:users-bounces@ovirt.org</a>] <b>On Behalf Of </b><a href="mailto:xiec.fnst@cn.fujitsu.com">xiec.fnst@cn.fujitsu.com</a><br><b>Sent:</b> September-03-14 9:54 PM<br><b>To:</b> <a href="mailto:users@ovirt.org">users@ovirt.org</a><br><b>Subject:</b> [ovirt-users] How to backup/restore the rhevm-VM in hosted-engine ?<o:p></o:p></span></p></div></div><p class=MsoNormal align=left style='text-align:left'><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Hi,All<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> As the mauual, I can’t find anyway to backup/restore the rhevm-VM in the hosted-engine. The I just try to backup the storage of rhevm-VM (using cp –prf to make a copy of folder). Then I make some change and replace the origin RHEVM-VM content with my backup folder (of course I shutdown the rhevm-vm first). At last the vm can be up,but the status is <b>NOT</b> health but as below:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>====================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Status up-to-date : False<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Hostname : 193.168.195.248<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Host ID : 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Engine status : unknown stale-data<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Score : 2400<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Local maintenance : False<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Host timestamp : 1409743461<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Extra metadata (valid at timestamp):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> metadata_parse_version=1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> metadata_feature_version=1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> timestamp=1409743461 (Wed Sep 3 07:24:21 2014)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> host-id=1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> score=2400<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> maintenance=False<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> state=EngineUp<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>=============================<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>So are there some proper way to backup the rhevm-vm? <o:p></o:p></span></p></div></body></html>