Re: [Users] Recovering VMs when the engine is lost

2012-11-26 Thread Jiri Belka
On Fri, 23 Nov 2012 09:03:24 +
Joern Ott joern@ciao.leguide.com wrote:

 Hello everybody,
 
 I managed to re-install the server the oVirt engine was running on in
 my testlab. All the cpu and storages are still there and the VMs are
 still running without problems. Is there a way, I can attach the
 still existing nodes to the new oVirt engine and recover/import the
 VMs?

Do you have old DB dump in /var/lib/ovirt-engine/backup? If so, maybe
restoring DB would be sufficient, won't be?

jbelka
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Invoking guest os script, without guest having network connectivity?

2012-11-26 Thread Jiri Belka
On Fri, 23 Nov 2012 13:48:42 +0200
Shlomi Tsadok tsa...@gmail.com wrote:

 I'm looking for a way to configure the guest networking(including IP)
 dynamically, using a custom script, right after VM creation.

For example SmartOS guys use serial console to pass info to guest
for its configuration:

https://github.com/joyent/smartos-vmtools/tree/master/src/linux

jbelka
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] engine backup and recovery

2012-11-26 Thread Jonathan Horne
Is there an accepted method to keep the engine backed up for use in disaster 
recovery scenario?  I'm new to postgres, so I'm not sure how to keep it happy 
with dumps and restores.  I've not yet seen a disaster check sheet for 
recovery, but that doesn't mean I didn't google good enough.

Is there a workable process for how this would be recovered after total 
(engine) system failure?

Thanks,
jonathan




This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind SKOPOS to 
any order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] engine backup and recovery

2012-11-26 Thread Sven Knohsalla
Hi Jonathan,

This is the script we use in our company for ovirt-engine backups:

#!/bin/bash

DB_EXPORT_PATH=/usr/share/ovirt-engine/db-backups
DB_BKUP_FILENAME=dump_engine_`date +%Y%m%d_%H%M`.sql
DB_NAME=engine

ENGINE_BKUP_FILENAME=bkup_engine_conf_`date +%Y%m%d_%H%M`.tgz

ENGINE_CONF='/etc/jboss-as/jboss-as.conf
/etc/ovirt-engine
/etc/pki/ovirt-engine
/usr/share/ovirt-engine/dbscripts
/usr/share/ovirt-engine/conf
/usr/share/ovirt-engine/resources/jboss
/root/.pgpass
/root/.rnd'

# Perform DB-Backup
pg_dump -C -E UTF8 --column-inserts \
   --disable-dollar-quoting \
   --disable-triggers \
   -U postgres \
   --format=p \
   -f $DB_EXPORT_PATH/$DB_BKUP_FILENAME \
   $DB_NAME

# Perform backup of Engine Configuration
tar zcf $DB_EXPORT_PATH/$ENGINE_BKUP_FILENAME $ENGINE_CONF

# Copy Backups to SMB Backup storage
cp $DB_EXPORT_PATH/$DB_BKUP_FILENAME $DB_EXPORT_PATH/$ENGINE_BKUP_FILENAME 
/mnt/backup

# Remove older backups
find $DB_EXPORT_PATH -mtime +5 -exec rm {}\;
find /mnt/backup -mtime +5 -exec rm {}\;

We have this VM running in a separate KVM Fail-over Cluster, based on LVM.
Generate one or more LVM snapshots (can also be done via monthly cronjobfor 
example) of your engine + data/db backups of your engine should be enough.

Please notice this bash script is currently working for oVirt engine 3.0, so 
you will maybe need some customizations for 3.1?


Best,
Sven.

Von: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] Im Auftrag von 
Jonathan Horne
Gesendet: Montag, 26. November 2012 15:26
An: users@ovirt.org
Betreff: [Users] engine backup and recovery

Is there an accepted method to keep the engine backed up for use in disaster 
recovery scenario?  I'm new to postgres, so I'm not sure how to keep it happy 
with dumps and restores.  I've not yet seen a disaster check sheet for 
recovery, but that doesn't mean I didn't google good enough.

Is there a workable process for how this would be recovered after total 
(engine) system failure?

Thanks,
jonathan




This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind SKOPOS to 
any order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] the jboss server in use with ovirt manager

2012-11-26 Thread Jonathan Horne
This is my first exposure to using jboss server, so I have a dumb question.  I 
know this would probably be more appropriate for a jboss list…but this ovirt 
list is currently the only mailing list I am a member of.

Id really like to use my management server as the place where I store my 
anaconda scripts for unattended install.  They are commonly grabbed via httpd.  
Id be happy with just a directory I can access from the httpd that’s running.  
All I see httpd config file wise is the ovirt-engine.conf file with the single 
line proxy setting.  I can't tell where a reasonable place to stick a web 
directory could be.

Can someone help me out where I could place this webdir so its accessible to 
the virtual machines?

Thanks,
jonathan


This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind SKOPOS to 
any order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] the jboss server in use with ovirt manager

2012-11-26 Thread Laszlo Hornyak
Hi,

- Original Message -
 From: Jonathan Horne jho...@skopos.us
 To: users@ovirt.org
 Sent: Monday, November 26, 2012 6:25:51 PM
 Subject: [Users] the jboss server in use with ovirt manager
 
 
 
 
 
 This is my first exposure to using jboss server, so I have a dumb
 question. I know this would probably be more appropriate for a jboss
 list…but this ovirt list is currently the only mailing list I am a
 member of.
 
 
 Id really like to use my management server as the place where I store
 my anaconda scripts for unattended install. They are commonly
 grabbed via httpd. Id be happy with just a directory I can access
 from the httpd that’s running. All I see httpd config file wise is
 the ovirt-engine.conf file with the single line proxy setting. I
 can't tell where a reasonable place to stick a web directory could
 be.
 
 
 Can someone help me out where I could place this webdir so its
 accessible to the virtual machines?

As long as the management server's IP is available for the clients, just add a 
location to the httpd config (I would recommend to use a different file than 
ovirt-engine.conf) and /var/www/anaconda e.g. sounds ok...


 
 
 Thanks,
 jonathan
 
 This is a PRIVATE message. If you are not the intended recipient,
 please delete without copying and kindly advise us by e-mail of the
 mistake in delivery. NOTE: Regardless of content, this e-mail shall
 not operate to bind SKOPOS to any order or other contract unless
 pursuant to explicit written agreement or government initiative
 expressly permitting the use of e-mail for such purpose.
 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Lvm vgs failed on allinone setup

2012-11-26 Thread Adrian Gibanel
Hi, 

  I'm trying to setup an oVirt 3.1 allinone system as described at: 
http://blog.jebpages.com/archives/up-and-running-with-ovirt-3-1-edition/
.

  The main differences between my article and my setup are:

  * I've downgraded ovirt-engine-sdk to 3.1 as suggested.
  * I've selected ISCSI instead of NFS when running engine-setup and answering 
to the: The default storage question. (I can change that to NFS if needed, I 
think I used ISCSI because I had seen it in another howto).
  * Hacked all_in_one_100.py to increase waitForHostUp timeout ( 
http://blog.jebpages.com/archives/up-and-running-with-ovirt-3-1-edition/#comment-705803414
 )

  So when I first install it I go to attach local storage to local datacenter 
as described in 5th setp in 
http://blog.jebpages.com/archives/up-and-running-with-ovirt-3-1-edition/ and 
everything seems to work fine.

  My problem happens when I reboot. (I just rebooted to make sure everything 
was setup fine.).
Then the local storage (named iso) isn't attached to the local datacenter any 
more.
I've checked /var/log/messages and I've found what I think it's the problem:
---

Nov 25 23:54:03 server vdsm Storage.LVM WARNING
lvm vgs failed: 5 [] [' 
Volume group e2e3cb9c-a664-4fda-be0c-428b239e7e66 not found']

Nov 25 23:54:03 server vdsm TaskManager.Task ERROR
Task=`e75609f0-7322-4845-9cfc-1fb18e0ad3fc`::Unexpected error

Nov 25 23:54:03 server vdsm Storage.Dispatcher.Protect ERROR
{'status': {'message': Storage domain does not exist:
('e2e3cb9c-a664-4fda-be0c-428b239e7e66',), 'code': 358}}
---

The place where I initially placed iso and storage was /home/iso and 
/home/storage where /home was a normal ext4 partition.
In order to try to fix this problem and maybe increase oVirt capabilites now 
/home is an ext4 partition but not a normal one but mounted over an LV one.
As you can see the problem has not been fixed.

So I either need some help on how to fix this. I don't know. Some ideas.
* What's oVirt expecting when it searches a Volume group.
* What command is it trying to run?
* I've tried to search the script which might do the search but I've been 
unable to find it.
* Does oVirt expect any special partitioning layout regarding lvm?

Thank you for any idea you could have.

-- 
-- 
Adrián Gibanel 
I.T. Manager 

+34 675 683 301 
www.btactic.com 



Ens podeu seguir a/Nos podeis seguir en: 

i 


Abans d´imprimir aquest missatge, pensa en el medi ambient. El medi ambient és 
cosa de tothom. / Antes de imprimir el mensaje piensa en el medio ambiente. El 
medio ambiente es cosa de todos. 

AVIS: 
El contingut d'aquest missatge i els seus annexos és confidencial. Si no en sou 
el destinatari, us fem saber que està prohibit utilitzar-lo, divulgar-lo i/o 
copiar-lo sense tenir l'autorització corresponent. Si heu rebut aquest missatge 
per error, us agrairem que ho feu saber immediatament al remitent i que 
procediu a destruir el missatge . 

AVISO: 
El contenido de este mensaje y de sus anexos es confidencial. Si no es el 
destinatario, les hacemos saber que está prohibido utilizarlo, divulgarlo y/o 
copiarlo sin tener la autorización correspondiente. Si han recibido este 
mensaje por error, les agradeceríamos que lo hagan saber inmediatamente al 
remitente y que procedan a destruir el mensaje . 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users