From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 6 Mar 2007 09:15:02 -0000 Subject: [Cluster-devel] conga/ricci/modules/cluster ClusterStatus.cpp Message-ID: <20070306091502.2119.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: kupcevic at sourceware.org 2007-03-06 09:15:02 Modified files: ricci/modules/cluster: ClusterStatus.cpp Log message: Fixed bz225747 (Create/delete cluster - then access disk on node = Generic error on host: cluster tools: cman_tool errored) Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterStatus.cpp.diff?cvsroot=cluster&r1=1.18&r2=1.19 --- conga/ricci/modules/cluster/ClusterStatus.cpp 2007/02/05 22:38:06 1.18 +++ conga/ricci/modules/cluster/ClusterStatus.cpp 2007/03/06 09:15:01 1.19 @@ -42,6 +42,7 @@ #define LSMOD_PATH "/sbin/lsmod" #define MODPROBE_PATH "/sbin/modprobe" #define CHKCONFIG_PATH "/sbin/chkconfig" +#define LVMCONF_PATH "/usr/sbin/lvmconf" #define CMAN_LEAVE_TIMEOUT "120" // seconds (string) #define CLUMON_SYNC_TIME 8 // seconds @@ -346,6 +347,15 @@ if (purge_conf) { ClusterConf::purge_conf(); + + // disable LVM cluster locking + try { + String out, err; + int status; + vector args; + args.push_back("--disable-cluster"); + utils::execute(LVMCONF_PATH, args, out, err, status, false); + } catch ( ... ) {} } }