Re: [Pacemaker] Fencing of KVM virtual machines

2012-10-02 Thread Michael Schwartzkopff
 Hi all,
 
 I've running several pacemaker clusters in KVM virtual machines (everything
 based on Debian 6) and now it's up to configure fencing...
 
 I've found that I have to use fence-virt for that task
 (http://www.clusterlabs.org/wiki/Guest_Fencing) but it seems that it only
 will work in case my VMs are on a single host system.
 
 Is anybody of you using fence-virt when the VMs are on different hosts?
 And can anybody explain how to compile and install fence-virt on a Debian 6
 system?
 
 Thanks a lot!
 Christian

Hi,

ever tried external/libvirt

See: http://www.hastexo.com/resources/hints-and-kinks/fencing-libvirtkvm-
virtualized-cluster-nodes

-- 
Dr. Michael Schwartzkopff
Guardinistr. 63
81375 München

Tel: (0163) 172 50 98


signature.asc
Description: This is a digitally signed message part.
___
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [Pacemaker] Fencing of KVM virtual machines

2012-10-02 Thread Andrew Beekhof
On Tue, Oct 2, 2012 at 3:56 PM, Masopust, Christian
christian.masop...@siemens.com wrote:
 Hi all,

 I've running several pacemaker clusters in KVM virtual machines (everything
 based on
 Debian 6) and now it's up to configure fencing...

 I've found that I have to use fence-virt for that task
 (http://www.clusterlabs.org/wiki/Guest_Fencing)
 but it seems that it only will work in case my VMs are on a single host
 system.

Not so.  I've never set it up to do what you say, but I know it can.
Lon: are there docs on this anywhere?


 Is anybody of you using fence-virt when the VMs are on different hosts?
 And can anybody explain how to compile and install fence-virt on a Debian 6
 system?

 Thanks a lot!
 Christian


 ___
 Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
 http://oss.clusterlabs.org/mailman/listinfo/pacemaker

 Project Home: http://www.clusterlabs.org
 Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
 Bugs: http://bugs.clusterlabs.org


___
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [Pacemaker] Fencing of KVM virtual machines

2012-10-02 Thread Masopust, Christian

Hi Michael,

thank's a lot for that link! Will give it a try!!

br,
christian 

 -Ursprüngliche Nachricht-
 Von: Michael Schwartzkopff [mailto:mi...@clusterbau.com] 
 Gesendet: Dienstag, 02. Oktober 2012 08:22
 An: The Pacemaker cluster resource manager
 Betreff: Re: [Pacemaker] Fencing of KVM virtual machines
 
  Hi all,
  
  I've running several pacemaker clusters in KVM virtual 
 machines (everything
  based on Debian 6) and now it's up to configure fencing...
  
  I've found that I have to use fence-virt for that task
  (http://www.clusterlabs.org/wiki/Guest_Fencing) but it 
 seems that it only
  will work in case my VMs are on a single host system.
  
  Is anybody of you using fence-virt when the VMs are on 
 different hosts?
  And can anybody explain how to compile and install 
 fence-virt on a Debian 6
  system?
  
  Thanks a lot!
  Christian
 
 Hi,
 
 ever tried external/libvirt
 
 See: 
 http://www.hastexo.com/resources/hints-and-kinks/fencing-libvirtkvm-
 virtualized-cluster-nodes
 
 -- 
 Dr. Michael Schwartzkopff
 Guardinistr. 63
 81375 München
 
 Tel: (0163) 172 50 98
 
___
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [Pacemaker] Fencing of KVM virtual machines

2012-10-02 Thread Raoul Bhatia [IPAX]

On 2012-10-02 07:56, Masopust, Christian wrote:

Hi all,
I've running several pacemaker clusters in KVM virtual machines
(everything based on
Debian 6) and now it's up to configure fencing...
I've found that I have to use fence-virt for that task
(http://www.clusterlabs.org/wiki/Guest_Fencing)
but it seems that it only will work in case my VMs are on a single host
system.
Is anybody of you using fence-virt when the VMs are on different hosts?
And can anybody explain how to compile and install fence-virt on a
Debian 6 system?
Thanks a lot!


We use:

 primitive stonith-virtNodeY stonith:external/libvirt \
   meta failure-timeout=1min \
   op monitor interval=60 \
   params hostlist=virtNodeY 
hypervisor_uri=qemu://xxx.ipax.in/system


You might need some ssh keys installed to allow passwordless
login, but i don't know for certain anymore.
Maybe, it directly talks to the hypervisor via a dedicated port.

Cheers,
Raoul
--

DI (FH) Raoul Bhatia M.Sc.  email.  r.bha...@ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG  web.  http://www.ipax.at
Barawitzkagasse 10/2/2/11   email.off...@ipax.at
1190 Wien   tel.   +43 1 3670030
FN 277995t HG Wien  fax.+43 1 3670030 15


___
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org