LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-03-2011, 10:56 AM   #1
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
pacemaker starts VMs which have been shut off manually


Ahoi,

Via the pacemaker config virtual machines are automatically started either when the machine's booted up or when one machine fails and the other takes over, then upon failover the other machine starts all VMs.

However I've noticed that when I now manually switch off a machine, it'll be started automatically again.

is there a way to prevent that?

Current pacemaker config for the machine:

Code:
node node1
node node2
primitive ClusterIP ocf:heartbeat:IPaddr2 \
        params ip="10.110.110.200" \
        op monitor interval="30s"
primitive vm1 ocf:heartbeat:VirtualDomain \
        params config="/var/lib/vm_images/libvirt/qemu/vm1.xml" \
        op monitor interval="10s" timeout="100s" depth="0" \
        op start interval="0" timeout="120s" \
        op stop interval="0" timeout="120s" \
        meta is-managed="true" allow-migrate="false"
primitive kvm_fs ocf:heartbeat:Filesystem \
        params device="/dev/drbd1" directory="/var/lib/vm_images" fstype="ext3"
group kvm kvm_fs ClusterIP vm1 vm2 vm3\
        meta target-role="Started"
ms ms_drbd_kvm drbd_kvm \
        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation vm1_on_drbd inf: kvm ms_drbd_kvm:Master
order vm1_after_drbd inf: ms_drbd_kvm:promote kvm:start
property $id="cib-bootstrap-options" \
        dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="2" \
        no-quorum-policy="ignore" \
        stonith-enabled="false" \
        default-resource-stickiness="1000"
(have removed vm2 and vm3 from the config display)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pacemaker - upstart jobs (VirtualDomain) toshko3 Linux - Server 0 10-06-2010 10:07 AM
[Tcptraceroute/Traceroute/Ping] Windows VMs & Linux VMs BiFo Linux - Networking 0 08-24-2010 02:07 PM
LXer: Using Xen With LVM-Based VMs Instead Of Image-Based VMs (Debian Etch) LXer Syndicated Linux News 0 01-14-2009 08:20 PM
Mandrake 9.2 starts KDE when I want to shut down the computer in icewm n00b_juser Mandriva 14 08-26-2005 08:28 AM
rh9 adsl only starts manually stoffell Linux - Distributions 1 07-25-2003 09:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration