public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* RHEL5 - vm.sh: add parameter for xen migration mapping
@ 2008-08-25 15:41 Ryan O'Hara
0 siblings, 0 replies; only message in thread
From: Ryan O'Hara @ 2008-08-25 15:41 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=481eda3eba49e4066c3314c04fdf98b32ccb131e
Commit: 481eda3eba49e4066c3314c04fdf98b32ccb131e
Parent: 40e34ea406411c10a53aa1a147a0c94a62c3d12b
Author: rohara <rohara@spartan.(none)>
AuthorDate: Sun Aug 24 13:26:26 2008 -0500
Committer: rohara <rohara@spartan.(none)>
CommitterDate: Sun Aug 24 13:26:26 2008 -0500
vm.sh: add parameter for xen migration mapping
Provide method for mapping cluster node name to xen migration
target hostname. (BZ #453429)
---
rgmanager/src/resources/vm.sh | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/resources/vm.sh b/rgmanager/src/resources/vm.sh
index 3069f47..9c09d3f 100755
--- a/rgmanager/src/resources/vm.sh
+++ b/rgmanager/src/resources/vm.sh
@@ -134,6 +134,16 @@ meta_data()
<content type="integer"/>
</parameter>
+ <parameter name="migration_mapping">
+ <longdesc lang="en">
+ Mapping of the hostname of a target member to a different hostname
+ </longdesc>
+ <shortdesc lang="en">
+ memberhost:targethost,memberhost:targethost ..
+ </shortdesc>
+ <content type="string"/>
+ </parameter>
+
<parameter name="bootloader">
<longdesc lang="en">
Boot loader that can start the VM from physical image
@@ -474,7 +484,13 @@ migrate()
if [ "$OCF_RESKEY_migrate" = "live" ]; then
migrate_opt="-l"
fi
-
+
+ # Patch from Marcelo Azevedo to migrate over private
+ # LANs instead of public LANs
+ if [ -n $OCF_RESKEY_migration_mapping ]; then
+ target=${OCF_RESKEY_migration_mapping#*$target:} target=${target%%,*}
+ fi
+
err=$(xm migrate $migrate_opt $OCF_RESKEY_name $target 2>&1 | head -1)
rv=$?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-24 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-25 15:41 RHEL5 - vm.sh: add parameter for xen migration mapping Ryan O'Hara
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 read-only IMAP folder(s) and NNTP newsgroup(s).