* [Ocfs2-devel] o2cb_ctl -D option
@ 2013-01-05 22:18 Gihan Munasinghe
2013-01-06 2:46 ` Sunil Mushran
0 siblings, 1 reply; 2+ messages in thread
From: Gihan Munasinghe @ 2013-01-05 22:18 UTC (permalink / raw)
To: ocfs2-devel
Hi
I am trying to manage the ocfs2 cluster set up using the o2cb_ctl tool
to create cluster add nodes etc.
But I see that "o2cb_ctl -D" to delete a node it says the option is not
yet supported.
Looking at the code (according to my very limited knowledge of it) I can
see that two helper functions need to delete a node is actually implemented
1) in o2cb_config.h "gint o2cb_cluster_delete_node(O2CBCluster *cluster,
const gchar *name);". Which I think will do the deletion from the
config structure
2) in o2cb.h "errcode_t o2cb_del_node(const char *cluster_name, const
char *node_name);". Which seems to be removing the node from /sys/
So my question is there anything else that need to be done except for
calling the above 2 functions and checking for error etc. Or do I need
to worry about hart beat, locking etc.
If someone can put me in the correct direction I am more than happy to
add that code in.
Thanks
Gihan
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Ocfs2-devel] o2cb_ctl -D option
2013-01-05 22:18 [Ocfs2-devel] o2cb_ctl -D option Gihan Munasinghe
@ 2013-01-06 2:46 ` Sunil Mushran
0 siblings, 0 replies; 2+ messages in thread
From: Sunil Mushran @ 2013-01-06 2:46 UTC (permalink / raw)
To: ocfs2-devel
Use latest tools. 1.8.x. It includes a new tool 'o2cb' that allows removal of nodes, global heartbeat, etc.
On Jan 6, 2013, at 3:48 AM, Gihan Munasinghe <gihan@flexiant.com> wrote:
> Hi
>
> I am trying to manage the ocfs2 cluster set up using the o2cb_ctl tool
> to create cluster add nodes etc.
> But I see that "o2cb_ctl -D" to delete a node it says the option is not
> yet supported.
>
> Looking at the code (according to my very limited knowledge of it) I can
> see that two helper functions need to delete a node is actually implemented
>
> 1) in o2cb_config.h "gint o2cb_cluster_delete_node(O2CBCluster *cluster,
> const gchar *name);". Which I think will do the deletion from the
> config structure
>
> 2) in o2cb.h "errcode_t o2cb_del_node(const char *cluster_name, const
> char *node_name);". Which seems to be removing the node from /sys/
>
> So my question is there anything else that need to be done except for
> calling the above 2 functions and checking for error etc. Or do I need
> to worry about hart beat, locking etc.
>
> If someone can put me in the correct direction I am more than happy to
> add that code in.
>
> Thanks
> Gihan
>
>
>
>
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-06 2:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-05 22:18 [Ocfs2-devel] o2cb_ctl -D option Gihan Munasinghe
2013-01-06 2:46 ` Sunil Mushran
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.