<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:#070040;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:#070040;}
span.HTML-voorafopgemaaktChar
        {mso-style-name:"HTML - vooraf opgemaakt Char";
        mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt";
        font-family:"Consolas","serif";
        color:#070040;}
span.E-mailStijl19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.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 bgcolor="white" lang="NL-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="NL" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">Van:</span></b><span lang="NL" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> libvirt-users-bounces@redhat.com
 [mailto:libvirt-users-bounces@redhat.com] <b>Namens </b>Firat KÜÇÜK<br>
<b>Verzonden:</b> donderdag 17 maart 2016 15:58<br>
<b>Aan:</b> libvirt-users@redhat.com<br>
<b>Onderwerp:</b> [libvirt-users] share nothing live migration causes read only filesystem<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<br>
<br>
I started live migration job for a guest with the following command:<o:p></o:p></p>
<pre>virsh migrate --live --domain my-guest --verbose --persistent --copy-storage-all --desturi qemu+ssh://root@my-otherhost/system<o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Guest system disk cache mode is none:<o:p></o:p></p>
<pre>    <disk type='file' device='disk'><o:p></o:p></pre>
<pre>      <driver name='qemu' type='qcow2' cache='none'/><o:p></o:p></pre>
<pre>      <source file='/opt/datastore/bulutkare-1118.img'/><o:p></o:p></pre>
<pre>      <backingStore/><o:p></o:p></pre>
<pre>      <target dev='vda' bus='virtio'/><o:p></o:p></pre>
<pre>      <alias name='virtio-disk0'/><o:p></o:p></pre>
<pre>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/><o:p></o:p></pre>
<pre>    </disk><o:p></o:p></pre>
<pre><span style="color:#1F497D"><o:p> </o:p></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I think virsh will do a bitewise copy of the content of the disk and creates a .qcow2 file without backing store on the target. (please check with qemu-img info on the destination file)<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Your guest thinks something is wrong because the hypervisor still has the backingstore description in its xml. That’s why the guest go’s in to failsafe mode and remount’s the root file system as read-only.<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I think you can fix this by creating an separate xml file without the backing store description and use the option --xml in the virsh migrate command…<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt">after live migration completed, filesystem blocked write operations.<o:p></o:p></p>
<pre>root@my-guest:~/tmp# touch hello<o:p></o:p></pre>
<pre>touch: cannot touch ‘hello’: Read-only file system<o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
What can be the reason? What is the best of migrating a VM to a target machine?<br>
<br>
Additional info:<br>
Guest operating system is Ubuntu 14.04 x64<br>
Source/Target Host operating system is Ubuntu 15.04 x64<br>
Guest file system is ext4 + swap<br>
Source/Target Host file system is XFS<br>
Source/Target Qemu version 1.2.2<br>
Source/Target libvirt 1.2.12<br>
<br>
This is from target libvirt log. It can be important:<br>
/build/qemu-Bjjgxn/qemu-2.2+dfsg/nbd.c:nbd_co_receive_request():L1146: reading from socket failed<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>
</div>
</div>
</body>
</html>