Re: [one-users] Manually migrate a VM

2014-01-21 Thread Stuart Kenny

Hi, thanks for the reply. Could you tell me where the cached data is stored?

Thanks,
Stuart.

On 21/01/2014 09:48, Carlos Martín Sánchez wrote:

Hi,

On Mon, Jan 20, 2014 at 4:46 PM, Stuart Kenny 
mailto:stuart.ke...@scss.tcd.ie>> wrote:


Hi, is it possible to tell OpenNebula that a VM that is in the
unknown state on a failed host is now running on a new host? It
doesn't seem to be possible to edit the database to do this as the
changes get overwritten.

Thanks,
Stuart.


No, it's not possible to set a new vm status or host.

If you edit the DB (this is of course not recommended as you may break 
things), oned will replace your changes with the cached data. First 
you need to stop opennebula, make a backup, edit, and run onedb fsck 
[1] to fix possible inconsistencies.


Regards

[1] http://docs.opennebula.org/stable/administration/references/onedb.html
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org <http://www.opennebula.org/> | 
cmar...@opennebula.org <mailto:cmar...@opennebula.org> | @OpenNebula 
<http://twitter.com/opennebula>




___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Manually migrate a VM

2014-01-20 Thread Stuart Kenny
Hi, is it possible to tell OpenNebula that a VM that is in the unknown 
state on a failed host is now running on a new host? It doesn't seem to 
be possible to edit the database to do this as the changes get overwritten.


Thanks,
Stuart.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Persistent image problem

2012-08-31 Thread Stuart Kenny
Hi, I have an image in a qcow datastore that I want to make persistent. 
The datastore configuration is below:


DATASTORE 102 INFORMATION 


ID : 102
NAME   : ops-gw-qcow
USER   : oneadmin
GROUP  : ops
CLUSTER: -
DS_MAD : fs
TM_MAD : qcow2
BASE PATH  : /var/lib/one/datastores/102

The image configuration is:

IMAGE 10 INFORMATION 


ID : 10
NAME   : SL 5.8
USER   : oneadmin
GROUP  : ops
DATASTORE  : ops-gw-qcow
TYPE   : OS
REGISTER TIME  : 08/02 15:25:50
PERSISTENT : Yes
SOURCE : 
/var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d

FSTYPE : save_as
SIZE   : 3775
STATE  : rdy
RUNNING_VMS: 0

When I shutdown the VM I get the following log messages, which say that 
the image is being copied from the system datastore. The image in the 
system datastore is just a link however.


Fri Aug 31 15:33:30 2012 [LCM][I]: New VM state is EPILOG
Fri Aug 31 15:33:54 2012 [TM][I]: mvds: Moving 
/var/lib/one/datastores/0/25/disk.0 to datastore as 
/var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d

Fri Aug 31 15:33:54 2012 [TM][I]: ExitCode: 0
Fri Aug 31 15:33:54 2012 [TM][I]: delete: Deleting 
/var/lib/one/datastores/0/25

Fri Aug 31 15:33:54 2012 [TM][I]: ExitCode: 0
Fri Aug 31 15:33:54 2012 [DiM][I]: New VM state is DONE

The original image is now overwritten with some small file, and I have 
lost my image:


ls -alh /var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d
-rw-r- 1 oneadmin oneadmin 256K Aug 31 15:33 
/var/lib/one/datastores/102/35b27eaab7c131bef8a2a3bd635cfc5d


Is it possible to have a persistent qcow image?

Thanks,
Stuart.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org