[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ha-dev
Subject:    RE: [Evms-devel] RE: [Linux-ha-dev] Heartbeat2 Plugin for EVMS
From:       "Changju Gao" <CGAO () novell ! com>
Date:       2006-02-07 16:11:41
Message-ID: 43E8644C.EA4E.0046.0 () novell ! com
[Download RAW message or body]

Well, I think you should be able to see the plugin is loaded from the "Plugin-ins" \
view in EVMSN, if you press the tab key to rotate the views. 

Also from the daemon logs you sent to me, I clearly see the membership changes
being received:

Feb 06 15:11:26 xserve-test2 _8_ b7dfaa00 Daemon: add_member: Add node xserve-test1.
Feb 06 15:11:26 xserve-test2 _8_ b7dfaa00 Daemon: add_member: Membership has 1 nodes.
Feb 06 15:11:26 xserve-test2 _8_ b7dfaa00 Daemon: add_member: Add node xserve-test2.
Feb 06 15:11:26 xserve-test2 _8_ b7dfaa00 Daemon: add_member: Membership has 2 nodes.

And (remote) engine opening and closing without any problems (using our plugin of \
course):

    Loading the plugin - 
Feb 06 15:11:26 xserve-test2 _5_ Daemon: load_module_plugins: Loaded from \
                /lib/evms/2.5.4/evms-hb2-1.0.0.so.
Feb 06 15:11:26 xserve-test2 _5_ Daemon: load_module_plugins:   short name:  \
                Novell-HA
Feb 06 15:11:26 xserve-test2 _5_ Daemon: load_module_plugins:   long name:   Novell \
                HA Cluster Manager
Feb 06 15:11:26 xserve-test2 _5_ Daemon: load_module_plugins:   version:     1.0.0
Feb 06 15:11:26 xserve-test2 _7_ Daemon: load_module_plugins: Exit.  Return value is \
0.

    Verifying versions -
Feb 06 15:11:38 xserve-test2 _8_ b74c5bb0 Daemon: daemon_router: Message from node \
                xserve-test1: command 0x1 (MSG_GET_VERSION request)  size: 0
Feb 06 15:11:38 xserve-test2 _8_ b74c5bb0 Daemon: msg_get_daemon_api_version: Send \
                message with command 0x80000001 of size 12 to node xserve-test1
Feb 06 15:11:38 xserve-test2 _8_ b74c5bb0 Daemon: daemon_router: Message from node \
                xserve-test1: command 0x2 (EVMS_GET_API_VERSION request)  size: 0
Feb 06 15:11:38 xserve-test2 _8_ b74c5bb0 Daemon: msg_get_engine_api_version: Send \
message with command 0x80000002 of size 16 to node xserve-test1  Opening engine -
Feb 06 15:11:38 xserve-test2 _8_ b74c5bb0 Daemon: daemon_router: Message from node \
                xserve-test1: command 0x3 (EVMS_OPEN_ENGINE request)  size: 43
Feb 06 15:11:38 xserve-test2 _8_ b6cc5bb0 Daemon: process_api: Send message with \
command 0x80000003 of size 4 to node xserve-test1  Closing engine -
Feb 06 15:11:39 xserve-test2 _8_ b74c5bb0 Daemon: daemon_router: Message from node \
                xserve-test1: command 0xc (EVMS_CLOSE_ENGINE request)  size: 0
Feb 06 15:11:39 xserve-test2 _8_ b6cc5bb0 Daemon: receive_response_for_command: Send \
                message with command 0x53 of size 43 to node xserve-test1
Feb 06 15:11:39 xserve-test2 _8_ b74c5bb0 Daemon: daemon_router: Message from node \
                xserve-test1: command 0x80000053 (STATUS response)  size: 0
Feb 06 15:11:39 xserve-test2 _8_ b6cc5bb0 Daemon: process_api: Send message with \
command 0x8000000c of size 4 to node xserve-test1

.....


Hope this will help.

Regards,

Changju


> > > "Thomas Guyot-Sionnest" <Thomas@zango.com> 2/7/2006 8:47 am >>>
I'm pretty sure what's going wrong here... Since CSM manages shared storage,
and shared storage cannot safely be managed without ha, it refuses to do
anything is ha isn't loaded. It probably doesn't detect your plug-in and
since ha isn't loaded, it refuses to start.

I'm not very good a C programming but I'll take a quick look in the CSM
plug-in code to see what I could do.

Thanks for the help...

Thomas

> -----Original Message-----
> From: Changju Gao [mailto:CGAO@novell.com] 
> Sent: February 6, 2006 16:00
> To: Thomas Guyot-Sionnest
> Subject: RE: [Evms-devel] RE: [Linux-ha-dev] Heartbeat2 Plugin for EVMS
> 
> Hi,
> 
> My pleasure to offer my assistance here. The plugin was working fine for
> you
> according to the logs.
> 
> There isn't much you can do to manage a HB2 cluster from EVMS interfaces.
> However, you can choose a (remote) node to "administer" by selecting the
> "Node Administered" item on the "Settings" menu. Of course, you can  see
> all the members of your cluster here.
> 
> Like the original HA plugin, our plugin has nothing to do with CSM
> directly. To
> test whether a HB2 plugin works, try to bring up multiple instances of
> EVMS
> on different nodes. If the first one succeeds while all the subsequent
> ones
> fail (to manage your shared disks with warning messages), HB2 plugin is
> working for you.
> 
> Please let me know what kind of management you intend to do with CSM. I
> might be able to help you to clear things up here.
> 
> Best regards,
> 
> 
> -Changju
> 
> P.S. I have added the following statements to the README.
> 
> "To test the plugin, you need to start HB2, EVMS daemon (/sbin/evmsd) on
> all
> nodes. After that, try to bring up multiple instances of EVMS on different
> nodes.
> If the first one succeeds while all subsequent attempts fail, the plugin
> is working
> fine.
> 
> If you have any problem starting the daemon, please start it with debug
> flag and inspect the log file (/var/log/evms-daemon.log) for detailed
> information."
> 
> 
> 
> > > > "Thomas Guyot-Sionnest" <Thomas@zango.com> 2/6/2006 1:28 pm >>>
> Here they are. FYI I removed /lib/evms/2.5.4/ha-1.1.0.so and did a 'make
> install'
> 
> Evmsd is started by heartbeat just like I do with ha (I set debug in
> evms.conf). And in evmsn, I can see the CSM plug-in, but I can't manage
> clusters.
> 
> Thanks for your time checking this :)
> 
> Thomas Guyot-Sionnest,
> Administrateur de systèmes
> Tél: (514) 787-4714
> Fax: (514) 787-4707
> Courriel: thomas@zango.com 
> > -----Original Message-----
> > From: Changju Gao [mailto:CGAO@novell.com] 
> > Sent: February 6, 2006 12:08
> > To: Thomas Guyot-Sionnest
> > Subject: RE: [Evms-devel] RE: [Linux-ha-dev] Heartbeat2 Plugin for EVMS
> > 
> > Did you start EVMS daemon? i.e. running "/sbin/evmsd &" on all nodes?
> > If you did, please run the daemon with debug flag, i.e. "/sbin/evmsd -d
> > debug &"
> > and send me the daemon log, normally /var/log/evms-daemon.log.
> > 
> > This plugin doesn't replace any cluster containers. It only replaces
> > the
> > HA cluster plugin. In other words, it only acts as the connection
> > between HB2
> > and EVMS, no changing of meta-data on disk of any kind.
> > 
> > Best regards,
> > 
> > - Changju Gao
> > 
> > > > > "Thomas Guyot-Sionnest" <Thomas@zango.com> 2/6/2006 9:54 am >>>
> > It didn't work. Is this plug-in supposed to replace ha including
> > existing
> > cluster containers?
> > 
> > I followed exactly the README plus removed -lglib. The module was
> > loaded,
> > but my existing clusters were showing just like if there was no ha
> > plug-ins
> > loaded. (I had no options, couldn't import, and evms_failover wasn't
> > working
> > either.
> > 
> > Thanks,
> > 
> > Thomas
> > 
> > > -----Original Message-----
> > > From: Changju Gao [mailto:CGAO@novell.com] 
> > > Sent: February 6, 2006 10:44
> > > To: Thomas Guyot-Sionnest
> > > Cc: High-Availability Linux Development List; evms-
> > > devel@lists.sourceforge.net 
> > > Subject: [Evms-devel] RE: [Linux-ha-dev] Heartbeat2 Plugin for EVMS
> > > 
> > > No, neither Glib nor Glib2 is needed for linking. I mistakenly
> > attached
> > > a older Makefile, though it should work.
> > > 
> > > 
> > > > > > "Thomas Guyot-Sionnest" <Thomas@zango.com> 2/3/2006 5:39 pm >>>
> > > Is -lglib really needed for linking? Doesn't work if glib-1.2 isn't
> > > present,
> > > and it's the case for one of my servers.
> > > 
> > > Or should I use -lglib-2.0 ?
> > > 
> > > It linked without errors without it... I'm leaving so I'll only try
> > it
> > > 
> > > tomorrow...
> > > 
> > > Thanks,
> > > 
> > > Thomas Guyot
> > > thomas@zango.com 
> > > 
> > > > -----Original Message-----
> > > > From: linux-ha-dev-bounces@lists.linux-ha.org 
> > [mailto:linux-ha-dev-
> > > > bounces@lists.linux-ha.org] On Behalf Of Changju Gao
> > > > Sent: February 3, 2006 15:58
> > > > To: linux-ha-dev@lists.linux-ha.org 
> > > > Subject: [Linux-ha-dev] Heartbeat2 Plugin for EVMS
> > > > 
> > > > Hi All,
> > > > 
> > > > I wrote a simple EVMS plugin for Heartbeat2 a while ago. It is
> > much
> > > > more stable comparing to what's in 2.5.4. In addition, my plugin
> > > also
> > > > 
> > > > 1. supports EVMS GUI,
> > > > 2. supports dynamic configuration, ie. adding new node to
> > > Heartbeart2
> > > > without restarting EVMS, and
> > > > 3. works with early EVMS versions.
> > > > 
> > > > I posted the plugin on [evms-devel] in December and since revised
> > > the
> > > > code according to comments made by Steve Dobbelstein and others.
> > > > The attached tarball includes a C source file,  a makefile and a
> > > > README. It's very straightforward to build and install the plugin.
> > > > Please see the READE for details.
> > > > 
> > > > Your feedback will be highly appreciated.
> > > > 
> > > > Best regards,
> > > > 
> > > > 
> > > > - Changju Gao

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic