From: lhh@sourceware.org <lhh@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager/src/resources vm.sh
Date: 14 Nov 2007 18:58:26 -0000 [thread overview]
Message-ID: <20071114185826.8710.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh at sourceware.org 2007-11-14 18:58:26
Modified files:
rgmanager/src/resources: vm.sh
Log message:
Fix #345871 - make default migration policy live instead of paused
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/vm.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.7&r2=1.1.2.8
--- cluster/rgmanager/src/resources/vm.sh 2007/08/02 14:46:52 1.1.2.7
+++ cluster/rgmanager/src/resources/vm.sh 2007/11/14 18:58:26 1.1.2.8
@@ -123,7 +123,6 @@
<content type="string"/>
</parameter>
-
<parameter name="rootdisk_physical" unique="1">
<longdesc lang="en">
Root disk for the virtual machine. (physical, on the host)
@@ -175,6 +174,15 @@
<content type="string"/>
</parameter>
+ <parameter name="migrate">
+ <longdesc lang="en">
+ Migration type live or pause, default = live.
+ </longdesc>
+ <shortdesc lang="en">
+ Migration type live or pause, default = live.
+ </shortdesc>
+ <content type="string" default="live"/>
+ </parameter>
</parameters>
@@ -258,6 +266,8 @@
path)
cmdline="$cmdline --path=\"$val\""
;;
+ migrate)
+ ;;
*)
cmdline="$cmdline $varp=\"$val\""
;;
@@ -377,9 +387,13 @@
migrate()
{
declare target=$1
- declare errstr rv
+ declare errstr rv migrate_opt
+
+ if [ "$OCF_RESKEY_migrate" = "live" ]; then
+ migrate_opt="-l"
+ fi
- err=$(xm migrate $OCF_RESKEY_name $target 2>&1 | head -1)
+ err=$(xm migrate $migrate_opt $OCF_RESKEY_name $target 2>&1 | head -1)
rv=$?
if [ $rv -ne 0 ]; then
next reply other threads:[~2007-11-14 18:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 18:58 lhh [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-06-22 16:59 [Cluster-devel] cluster/rgmanager/src/resources vm.sh lhh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071114185826.8710.qmail@sourceware.org \
--to=lhh@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).