Dear HA-dev
I have implemented vcenter fencing, but the following patch was required
to get it working.
The problem was: variable HOSTLIST was not passed from crm configuration
correctly to vcenter stonith script.
In crm configuration HOSTLIST was something like
HOSTLIST="hostname1=vm1;hostname2=vm2"
But to vcenter script HOSTLIST was passed as
HOSTLIST="hostname1"
----------------------- 8< ---------------------------
diff -uN /usr/sbin/fence_legacy /usr/sbin/fence_legacy-patched
--- /usr/sbin/fence_legacy 2011-08-25 18:09:42.000000000 +0200
+++ /usr/sbin/fence_legacy-patched 2012-08-22 11:55:59.000000000
+0200
@@ -83,7 +83,7 @@
$opt=$_;
next unless $opt;
- ($name,$val)=split /\s*=\s*/, $opt;
+ ($name,$val)=split /\s*=\s*/, $opt, 2;
if ( $name eq "" )
{
----------------------- 8< ---------------------------
Regards,
Piotr
--
This e-mail and the documents attached are confidential and intended solely for
the addressee; it may also be privileged. If you receive this e-mail in error,
please notify the sender immediately and destroy it. As its integrity cannot be
secured on the Internet, the Atos group liability cannot be triggered for the
message content. Although the sender endeavours to maintain a computer
virus-free network, the sender does not warrant that this transmission is
virus-free and will not be liable for any damages resulting from any virus
transmitted.
Niniejsza wiadomosc oraz zalaczone dokumenty sa przeznaczone wylacznie dla
adresatow i moga zawierac informacje poufne nalezace do grupy Atos. Jesli nie
jestescie Panstwo adresatem tej wiadomosci badz otrzymaliscie ja przez pomylke,
prosimy o powiadomienie o tym fakcie nadawcy oraz trwale usuniecie niniejszej
wiadomosci wraz z zalacznikami.
Atos IT Services Sp. z o.o., ul. Woloska 5, 02-675 Warszawa, KRS 0000128068,
Sad Rejonowy dla m. st. Warszawy w Warszawie, XIII Wydzial Gospodarczy .
Krajowego Rejestru Sadowego, NIP 521-32-07-288.
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/