<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-13 9:18 GMT+02:00 飞 <span dir="ltr"><<a href="mailto:duron800@qq.com" target="_blank">duron800@qq.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>hello, I have a question for clone a sheepdong image.<br>my clone steps are:<br>1. I create a image named myimg</div><div>2. I write some files to myimg<br>3. I create a snapshot named 'newest', dog vdi snapshot -s <span style="line-height:1.5">newest myimg</span></div>
<div>4. I ran 'dog vdi clone -s <span style="line-height:1.5">newest</span><span style="line-height:1.5"> myimg myimg2</span><span style="line-height:1.5">'</span></div><div><span style="line-height:1.5">5. I ran 'dog vdi delete </span><span style="line-height:1.5">myimg</span><span style="line-height:1.5">'</span></div>
<div><span style="line-height:1.5">6. I attach the myimg2 to QEMU, but I can't found the files I wrote at step 2.</span></div></blockquote><div><br></div><div>I confirm such behaviour.<br></div><div>(I'm running latest master branch 'Sheepdog daemon version 0.8.0_152_g65dde97').<br>
<br></div><div>More precisely it happens if the snapshot is taken with the running guest.<br></div><div>I created 250 files of 1M each inside the guest and run 'dog vdi snapshot' as soon as dd was done.<br></div><div>
I turned off the guest; cloned the snapshot and run the guest from the cloned vdi.<br></div><div>The guest was showing all 250 file but many of them were empty!<br></div><div>Also bash history was not saved.<br><br></div>
<div>If I do the same thing but shutting down the guest before taking the snapshot, then all data is present on the cloned vdi (bash history included).<br><br></div><div>Is it possible to force sheepdog to send a 'sync' request when taking the snapshot?<br>
<br></div><div>Does 'dog vdi cache flush' has effect only on object cache?<br></div></div><br></div></div>