Look at the post about converting VMs from KVM to oVirt, I think it will help you.<br><br>Alex<br><br><div class="gmail_quote">2012/10/15 Neil <span dir="ltr"><<a href="mailto:nwilson123@gmail.com" target="_blank">nwilson123@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm able to access the LUNS directly and I can access the guest LV<br>
filesystems, so I'm currently dumping the guest LV's to raw disk<br>
images, does anyone know how to import these again into ovirt?<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Oct 15, 2012 at 11:49 AM, Neil <<a href="mailto:nwilson123@gmail.com">nwilson123@gmail.com</a>> wrote:<br>
> On Mon, Oct 15, 2012 at 11:43 AM, Eli Mesika <<a href="mailto:emesika@redhat.com">emesika@redhat.com</a>> wrote:<br>
>><br>
>><br>
>> ----- Original Message -----<br>
>>> From: "Neil" <<a href="mailto:nwilson123@gmail.com">nwilson123@gmail.com</a>><br>
>>> To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
>>> Sent: Monday, October 15, 2012 9:27:24 AM<br>
>>> Subject: [Users] Fwd: database issue after power failure<br>
>>><br>
>>> I've found out now that another technician accidentally deleted my<br>
>>> psql engine db because he tried to install bacula on the same server.<br>
>>> I have no backup of the DB because I was still in the process of<br>
>>> setting them up and wasn't aware he was going to be installing onto<br>
>>> this server.<br>
>>><br>
>>> I currently have 6 guests that are in a shutdown state because of a<br>
>>> power failure over the weekend. It's using FC storage, only the db<br>
>>> seems to be missing.<br>
>>><br>
>>> Is there anything I can do to recover from this disaster?<br>
>><br>
>> Hi<br>
>> Is this a new installation or one that was upgraded?<br>
>> If it is an upgrade IIRC we are backing up the database prior to the upgrade so maybe it is possible to search for this backup and getting an older version of your DB.<br>
>><br>
>> If the DB is deleted and you have no backups you will probably have to reinstall.<br>
>> I recommend to backup your DB on a daily basis using our backup.sh script , you can use a simple cron job for that.<br>
>><br>
>> Eli<br>
>><br>
>><br>
>>><br>
>>> Thanks.<br>
>>><br>
>>> Regards.<br>
>>><br>
>>> Neil.<br>
>>><br>
>>><br>
>>> ---------- Forwarded message ----------<br>
>>> From: Neil <<a href="mailto:nwilson123@gmail.com">nwilson123@gmail.com</a>><br>
>>> Date: Mon, Oct 15, 2012 at 9:10 AM<br>
>>> Subject: database issue after power failure<br>
>>> To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
>>><br>
>>><br>
>>> Hi guys,<br>
>>><br>
>>> I've got what looks like a huge issue after a power failure.<br>
>>><br>
>>> In my server.log I'm seeing "Caused by:<br>
>>> org.postgresql.util.PSQLException: FATAL: database "engine" does not<br>
>>> exist" in my server.log and in my engine.log I'm seeing the following<br>
>>> which also looks very bad.<br>
>>><br>
>>> "2012-10-15 09:08:41,357 ERROR [org.ovirt.engine.core.bll.Backend]<br>
>>> (MSC service thread 1-4) Error in getting DB connection. The database<br>
>>> is inaccessible. Original exception is:<br>
>>> DataAccessResourceFailureException: Error retreiving database<br>
>>> metadata; nested exception is<br>
>>> org.springframework.jdbc.support.MetaDataAccessException: Could not<br>
>>> get Connection for extracting meta data; nested exception is<br>
>>> org.springframework.jdbc.CannotGetJdbcConnectionException: Could not<br>
>>> get JDBC Connection; nested exception is java.sql.SQLException:<br>
>>> javax.resource.ResourceException: IJ000453: Unable to get managed<br>
>>> connection for java:/ENGINEDataSource"<br>
>>><br>
>>> Please could someone assist if possible, I'm currently logged in on<br>
>>> #ovirt as well.<br>
>>><br>
>>> Thanks.<br>
>>><br>
>>> Regards.<br>
>>><br>
>>> Neil Wilson.<br>
><br>
> Hi Eli,<br>
><br>
> Thanks for coming back to me.<br>
><br>
> Unfortunately it wasn't an upgrade or installation, just raw db files<br>
> were removed(rm -f /var/lib/pgsql/*) mid last week, and then there was<br>
> power failure over the weekend and everything shut down and then<br>
> refused to start.<br>
><br>
> I've tried running extundelete but it says the "space has been<br>
> re-allocated" for the files under /var/lib/pgsql<br>
><br>
> The images should in theory still be fine because they are stored on a<br>
> FC SAN, but I now need to somehow access the .ovf files, back them up,<br>
> re-install the ovirt-engine from scratch re-initialise the storage and<br>
> then import the .ovf files.<br>
><br>
> Anyone know how to access the .ovf files without having an engine? I<br>
> can access the LUNS directly, but can't mount them because of the<br>
> filesystem type being unknown.<br>
><br>
> Thanks.<br>
><br>
> Regards.<br>
><br>
> Neil.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>