<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I tried delete vdis and create new with the same name, but after
that "qemu-img convert" stuck. We're using 0.8.0 still and I think
that there are bug with name recycling. I saw this message some time
ago, maybe this is the same issue:<br>
<br>
"<br>
<pre wrap="">Hi sheepdog users,
The recent reported problem
(<a class="moz-txt-link-freetext" href="https://bugs.launchpad.net/sheepdog-project/+bug/1317755">https://bugs.launchpad.net/sheepdog-project/+bug/1317755</a>) revealed a
serious bug in a way of managing VDI ID of sheep process. It can
causes data loss of cloned VDIs.
The problem can happen when you recycle VDI name. e.g. you can
reproduce the problem with a sequence like below:
mitake@salers05:~% dog vdi create test 16M
mitake@salers05:~% dog vdi snapshot test
mitake@salers05:~% dog vdi clone test -s 1 test-cloned
mitake@salers05:~% dog vdi list
Name Id Size Used Shared Creation time VDI id
Copies Tag
s test 1 16 MB 0.0 MB 0.0 MB 2014-06-03 18:11 7c2b25
3
test 0 16 MB 0.0 MB 0.0 MB 2014-06-03 18:11 7c2b26
3
c test-cloned 0 16 MB 0.0 MB 0.0 MB 2014-06-03 18:11 ec1be3
3
mitake@salers05:~% dog vdi delete test
mitake@salers05:~% dog vdi delete test -s 1
mitake@salers05:~% dog vdi create test 16M
mitake@salers05:~% dog vdi list
Name Id Size Used Shared Creation time VDI id
Copies Tag
test 0 16 MB 0.0 MB 0.0 MB 2014-06-03 18:11 7c2b25
3
c test-cloned 0 16 MB 0.0 MB 0.0 MB 2014-06-03 18:11 ec1be3
3
As you can see in the output of second "dog vdi list", the VDI ID
0x7c2b25 is recycled. If a VM writes data to the new "test" VDI, the
data which is pointed by test-cloned can be overwritten and lost.
The easiest way of avoiding this problem is stopping to recycle VDI
names which is already used.
The problem can be avoided by a patch submitted in a thread entitled
"[PATCH] sheep: don't recycle VDI ID", which is under review. I'll
release stable versions ASAP. Sorry for inconvenience.
Thanks,
Hitoshi"
</pre>
<div class="moz-cite-prefix">27.06.2014 17:48, Valerio Pachera
пишет:<br>
</div>
<blockquote
cite="mid:CAHS0cb-Vx5b1jBp5g6-BNHM9_4HecYd+Mcc-8Zs5xGjxh2nyVg@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-06-27 14:44 GMT+02:00 Maxim
Terletskiy <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:terletskiy@emu.ru" target="_blank">terletskiy@emu.ru</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 text="#000000" bgcolor="#FFFFFF"> Sorry, I forgot to
write that I need to restore data to vdi with exactly
same name. </div>
</blockquote>
<div><br>
Why don't you delete the existing vdi then?<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <br>
Maybe qemu-img have some options to rewrite data in vdi?<br>
</div>
</blockquote>
<div><br>
</div>
<div>I don't think so.<br>
</div>
<div><br>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
С уважением,
Терлецкий Максим
ООО "ТБ"
+7(499)917-0115
<a class="moz-txt-link-freetext" href="http://www.emu.ru">http://www.emu.ru</a>
</pre>
</body>
</html>