<div dir="ltr">Hi,<div><br></div><div>On Thu, Mar 13, 2014 at 2:34 PM, Ionut Popovici <span dir="ltr"><<a href="mailto:ionut@hackaserver.com" target="_blank">ionut@hackaserver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello i had some hardware failure .. but i had some backup made .. so after installed full system back .. i had to recopy database from old backup .. and files .. added manualy in database the images .. to match the old configs and info .. but now if try to clone any image .. i get duplicate key .. i have try to change autoincrement for image_pool index but is not working any ideea ?<br>
SQL command was: INSERT INTO image_pool (oid, name, body, uid, gid, owner_u, group_u, other_u) VALUES (0,'testasd','<IMAGE><ID>0</<u></u>ID><UID>0</UID><GID>0</GID><<u></u>UNAME>oneadmin</UNAME><GNAME><u></u>oneadmin</GNAME><NAME>testasd<<u></u>/NAME><PERMISSIONS><OWNER_U>1<<u></u>/OWNER_U><OWNER_M>1</OWNER_M><<u></u>OWNER_A>0</OWNER_A><GROUP_U>0<<u></u>/GROUP_U><GROUP_M>0</GROUP_M><<u></u>GROUP_A>0</GROUP_A><OTHER_U>0<<u></u>/OTHER_U><OTHER_M>0</OTHER_M><<u></u>OTHER_A>0</OTHER_A></<u></u>PERMISSIONS><TYPE>0</TYPE><<u></u>DISK_TYPE>0</DISK_TYPE><<u></u>PERSISTENT>1</PERSISTENT><<u></u>REGTIME>1394716874</REGTIME><<u></u>SOURCE></SOURCE><PATH>/var/<u></u>lib/one/datastores/1/<u></u>1870e708127c10e3a81f4bc62c5afd<u></u>d6</PATH><FSTYPE></FSTYPE><<u></u>SIZE>8192</SIZE><STATE>4</<u></u>STATE><RUNNING_VMS>0</RUNNING_<u></u>VMS><CLONING_OPS>0</CLONING_<u></u>OPS><CLONING_ID>119</CLONING_<u></u>ID><DATASTORE_ID>1</DATASTORE_<u></u>ID><DATASTORE>default</<u></u>DATASTORE><VMS></VMS><CLONES><<u></u>/CLONES><TEMPLATE><DEV_PREFIX><u></u><![CDATA[hd]]></DEV_PREFIX><<u></u>FSTYPE><![CDATA[]]></FSTYPE></<u></u>TEMPLATE></IMAGE>',0,0,1,0,0), error 1062 : Duplicate entry '0' for key 'PRIMARY'<br>
Thu Mar 13 14:21:14 2014 [ReM][E]: Req:9424 UID:0 ImageClone result FAILURE [ImageClone] Error allocating a new image.</blockquote></div><div><br><div class="gmail_extra">OpenNebula includes the onedb fsck tool to check and fix DB consistency problems:</div>
<div class="gmail_extra"><div><a href="http://docs.opennebula.org/stable/administration/references/onedb.html">http://docs.opennebula.org/stable/administration/references/onedb.html</a></div><div><br></div><div>Regards</div>
<div><div dir="ltr">--<br><div>Carlos Martín, MSc<br>Project Engineer</div><div>OpenNebula - Flexible Enterprise Cloud Made Simple<br><div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div></div></div>
<br></div></div></div>