public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: "Ryan O'Hara" <rohara@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: RHEL5 - vm.sh: add parameter for xen migration mapping Date: Mon, 25 Aug 2008 15:41:00 -0000 [thread overview] Message-ID: <20080824182650.D0EF312030E@lists.fedorahosted.org> (raw) 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=$?
reply other threads:[~2008-08-24 18:28 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080824182650.D0EF312030E@lists.fedorahosted.org \ --to=rohara@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /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: linkBe 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 read-only IMAP folder(s) and NNTP newsgroup(s).