From ab8535eaa5073737391a6d160e6f34377061d20e Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 10 Jul 2008 10:37:22 +1000 Subject: make LVS a capability so that we can see which nodes are configured with LVS and which are not using LVS. "ctdb getcapabilities" (This used to be ctdb commit 172d01fb34f032e098b1c77a7b0f17bf11301640) --- ctdb/server/ctdbd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ctdb/server/ctdbd.c') diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c index aa5253ac1d..b7979049c1 100644 --- a/ctdb/server/ctdbd.c +++ b/ctdb/server/ctdbd.c @@ -45,6 +45,7 @@ static struct { int start_as_disabled; int no_lmaster; int no_recmaster; + int lvs; } options = { .nlist = ETCDIR "/ctdb/nodes", .transport = "tcp", @@ -124,6 +125,7 @@ int main(int argc, const char *argv[]) { "start-as-disabled", 0, POPT_ARG_NONE, &options.start_as_disabled, 0, "Node starts in disabled state", NULL }, { "no-lmaster", 0, POPT_ARG_NONE, &options.no_lmaster, 0, "disable lmaster role on this node", NULL }, { "no-recmaster", 0, POPT_ARG_NONE, &options.no_recmaster, 0, "disable recmaster role on this node", NULL }, + { "lvs", 0, POPT_ARG_NONE, &options.lvs, 0, "lvs is enabled on this node", NULL }, POPT_TABLEEND }; int opt, ret; @@ -213,6 +215,9 @@ int main(int argc, const char *argv[]) if (options.no_recmaster == 0) { ctdb->capabilities |= CTDB_CAP_RECMASTER; } + if (options.lvs != 0) { + ctdb->capabilities |= CTDB_CAP_LVS; + } /* tell ctdb what nodes are available */ ctdb_load_nodes_file(ctdb); -- cgit