[Pacemaker] Unable to execute crm(heartbeat/pacemaker) commands
Hi I am using Heartbeat(3.0.3) and pacemaker (1.0.9). We are facing the following issue. Please find the details. we had installed heartbeat and pacemaker,on the uinux BOX(CENT OS operation system). we had created a ssh user and provided it to one of the developers. please find the directory structure and the bash profile for that ssh user. bash-3.2# cat .bash_profile # .bash_profile # User specific environment and startup programs PATH=$PATH:/usr/sbin export PATH bash-3.2# but when one of the developer logs in to the box where heartbeat/pacemaker is installed through ssh . he is unable to execute crm configuration commands. say for example. while we are executing the following crm configuration commands . we are unable to execute crm configuration commands and the system is hanging while executing. Please find the crm configuration command we are using and the snapshot of the bash prompt while executing -bash-3.2$ crm configure primitive HttpdVIP ocf:heartbeat:IPaddr3 \ params ip="10.104.231.78" eth_num="eth0:2" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ > params ip="10.104.231.78" eth_num="eth0:2" vip_cleanup_file="/var/run/bigha.pid" \ op monitor interval="30s" > op start interval="0" timeout="120s" \ > op stop interval="0" timeout="120s" \ > op monitor interval="30s" can you please help me on this particular sceanrio. ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] [pacemaker] Error while executing crm_attribute command from command line
Andrew Beekhof writes: > > # CIB_file=./cib.xml crm_attribute -N mysql3 -n master-Mysql:0 -l > forever -v 3 -V > crm_attribute[23703]: 2011/05/10_08:42:59 info: Invoked: crm_attribute > -N mysql3 -n master-Mysql:0 -l forever -v 3 -V > crm_attribute[23703]: 2011/05/10_08:42:59 ERROR: Type ID doesn't allow > value 'nodes-87b8b88e-3ded-4e34-8708-46f7afe62935-master-Mysql:0' > > So no colons allowed I'm afraid. > Hi andrew Thank you very much for replying back the colons are created by the HA itself Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] Error while performing crm attribute operation. and cl_status commands
Hi All I had configured Mysql as multi-state resource in HA I had configured HA cluster consisting of two nodes and one Mysql multistate resource crm_attribute --type rsc_location --node mysql2 --get-value score non-option ARGV-elements: score scope=rsc_location value=(null) Error performing operation: cib object missing While executing the above command i am getting an error, how to get the score value and status of the node from cib.xml, 1) I had stopped HA process on node 1 and tried executing the command cl_status nodestatus mysql3 if i start HA process on node2 also still i am getting status as active for while, if i try executing the same command after a while stopping HA process i am getting an output status value as dead. Ho can we get the dead status of a node from cib.xml, once we stop the HA process on node-1 please find the cib.xml for the above HA configuration Regards Rakes ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] [pacemaker] Error while executing crm_attribute command from command line
Hi All while i am executing crm_attribute command from the command line, it is throwing the following error *bash-3.2# crm_attribute -N mysql3 -n master-Mysql:0 -l forever -v 3 Error setting master-Mysql:0=3 (section=nodes, set=nodes-87b8b88e-3ded-4e34-8708-46f7afe62935): Update does not conform to the configured schema/DTD Error performing operation: Update does not conform to the configured schema/DTD* Please find my cib.xml file - What is the exact meaning of transient_attributes and instance attributes, crm_attribute -N mysql3 -n master-Mysql:0 -l reboot -v 200 when i executed the above command from the command line it has been executed without any errors and updated the cib.xml file in the transient and instance attributes directives, but if use forever instead of reboot , i am facing the issue, can you please help me regarding this issue, and let me know exactly what is meant by transient_attributes and instance attributes, Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] [pacemaker] configuring Multi state resource in pacemaker/HA
Hi All I had configured Mysql process in Linux Ha framework. Please find the HA configuration for mysql process. primitive Mysql ocf:heartbeat:mysql \ params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf" datadir="/var/lib/mysql" user="mysql" pid="/var/lib/mysql/mysql.pid" socket="/var/lib/mysql/mysql.sock" test_passwd="slavepass" test_table="test.msf_list" test_user="repl" replication_user="repl" replication_passwd="slavepass" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ op monitor interval="10s" role="Master" timeout="8s" \ op monitor interval="12s" timeout="8s" primitive MysqlVIP ocf:heartbeat:IPaddr3 \ params ip="192.168.254.217" eth_num="eth0:3" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="60s" \ op monitor interval="30s" \ meta target-role="Started" ms MS_Mysql Mysql \ meta notify="true" target-role="Started" location L_Master MS_Mysql \ rule $id="L_Master-rule" $role="Master" 100: #uname eq mysql2 \ rule $id="L_Master-rule1" $role="Master" 100: #uname eq mysql3 Here are my scenarios 1) when i started the Ha process on both the nodes , Mysql process has been sarted 2) The Master is pointing to mysql2 node 3) now i stopped the HA process on node mysql2, then Master mysql has been migrated to mysql3 4)The data is stored in *mysql3* node 5) Now again i stopped HA process on mysql3 node . 6) And started HA process in Mysql2, Now here i found there is data inconsistent at this point of time on both the nodes, where if we update the mysql2 node and start the HA process on mysql3 node , found there is inconsistent of data on both the nodes. Is there is a way to dynamically change the score values of the mysql process such that when ever both the nodes started the last mysql master will act as a master mysql process. Looking forward for your help, thank you very much Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] [pacemaker] unable to execute commands like crm configure show.crm resource stop
Dejan Muhamedagic writes: > > Hi, > > On Wed, Mar 16, 2011 at 10:58:16AM +0530, rakesh k wrote: > > Hi All > > > > I had installed pacemaker,heartbeat on my unix machine, I had created an SSH > > user who can access my unix machine remotely. > > I had given permissions for that user by editing *sudoers *file so that he > > can perform all the opertaions related to *crm* > > > > The configuration i used is as follows in sudoers file. > > ALL=NOPASSWD:/usr/sbin > > > > since the commands like crm_mon.crm_verify, cibadmin resides in the > > /usr/sbin directory. > > > > but when my ssh user is executing the following opertation > > *-Bash-3.2#sudo /usr/sbin/crm configure show* > > *-Bash-3.2#sudo /usr/sbin/crm resource stop* > > > > This is the following error poping out > > *sudo /usr/sbin/crm configure show > > cibadmin not available, check your installation* > > > > Please provide me the solution to come over this type of situations. > > /usr/sbin is not in the PATH. > > Thanks, > > Dejan > > > > > Regards > > Rakesh > > > ___ > > Pacemaker mailing list: Pacemaker@... > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > > > Project Home: http://www.clusterlabs.org > > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > > Bugs: > > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > ___ > Pacemaker mailing list: Pacemaker@... > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > Hi Dejan Thanks for providing the info, as mentioned i tried creating a bash profile in which i exported the PATH variable Here is my bash profile. # .bash_profile # User specific environment and startup programs PATH=$PATH:/usr/sbin export PATH even though i am facing the same issue ..when i try to execute the commands from ssh user i am getting the same issue again and again. is there any other way to execute this commands from an ssh user. Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] [pacemaker]Notification alerts when fail-over take place from one node to other node in cluster.
Vadym Chepkov writes: > > > You have to create MailTo resource for each resource or group you would like to be notified, unfortunately. You can also run crm_mon -1f¦grep -qi fail from either cron or from snmp. It's not perfect, but better then nothing. I also found check_crm script on nagios exchange, it's not ideal, but again, since this functionality doesn't come with pacemaker yet, you would have to invent your own wheel ;) > > Cheers, > Vadym > On Apr 25, 2011 1:15 AM, "Rakesh K" wrote:> Vadym Chepkov ...> writes: > > > >> You can colocate your resource with a MailTo pseudo resource :>> >> # crm ra meta MailTo>> Notifies recipients by email in the event of resource takeover> (ocf:heartbeat:MailTo) > >> >> Vadym>> >> ___>> Pacemaker mailing list: Pacemaker ...>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker > >> >> Project Home: http://www.clusterlabs.org>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > >> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker>> >> > > Hi Vadym > > > thanks for providing the reply. You said ti co-locate the resource with the> MailTo resource which will notify the recipients by email provided in the> configuration. But I had configured 4 resources in two node cluster. for this > > case what would be the best approach ..> > Regards> Rakesh> > > > ___> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org > > http://oss.clusterlabs.org/mailman/listinfo/pacemaker> > Project Home: http://www.clusterlabs.org > > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > > > ___ > Pacemaker mailing list: Pacemaker@... > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > Hi Vadym Chepkov Thanks for giving the reply. As mentioned i am trying to configure MailTo RA with the Heartbeat from the command line i used the following configuration to configure it on the Heartbeat. primitive mail ocf:heartbeat:MailTo \ params email="" \ params subject="ClusterFailover" and tried to restart the HA process using /etc/init.d/heartbeat restart when i do crm_mon it is unable to start MailTo process and digged into the ha-debug file and found the related information can u give some heads up on this issue so that i can proceed further. bash-3.2# cat ha-debug | grep MailTo May 26 10:34:39 hatest-msf3 pengine: [18575]: notice: native_print: mail MailTo[18614]: 2011/05/26_10:34:39 ERROR: Setup problem: Couldn't find utility May 26 10:34:40 hatest-msf3 pengine: [18575]: notice: native_print: mail May 26 10:34:40 hatest-msf3 pengine: [18575]: notice: native_print: mail May 26 10:34:40 hatest-msf3 pengine: [18575]: notice: native_print: mail MailTo[18635]: 2011/05/26_10:34:40 ERROR: Setup problem: Couldn't find utility May 26 10:34:44 hatest-msf3 pengine: [18575]: notice: native_print: mail Regards rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] [pacemaker]Notification alerts when fail-over take place from one node to other node in cluster.
Vadym Chepkov writes: > You can colocate your resource with a MailTo pseudo resource : > > # crm ra meta MailTo > Notifies recipients by email in the event of resource takeover (ocf:heartbeat:MailTo) > > Vadym > > ___ > Pacemaker mailing list: Pacemaker@... > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > Hi Vadym thanks for providing the reply. You said ti co-locate the resource with the MailTo resource which will notify the recipients by email provided in the configuration. But I had configured 4 resources in two node cluster. for this case what would be the best approach .. Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] [pacemaker]Notification alerts when fail-over take place from one node to other node in cluster.
Hello Every body We had configured HA/pacemaker,even we can migrate the resources between the nodes in a cluster frame work, when there is a failure occurs for certain process, My concerns here at any given point of time in cluster frame work, when a resources/processes configured in HA fails it will be migrating to other available node in cluster,how can we configure HA such that alerts/notification to a particular email, saying that the resource has been migrated. Upon failure condition, is there any way in the heartbeat /pacemaker or can any one provide suggestion how can we start up/implement such scenario.. Regards rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] [pacemaker] need some help regarding network failure setup in pacemaker.
Jelle de Jong writes: Hi Jelle de Jong > > On 20-04-11 11:44, rakesh k wrote: > > How can we detect network failure in pacemaker configuration. > > http://www.clusterlabs.org/wiki/Pingd_with_resources_on_different_networks > http://www.woodwose.net/thatremindsme/2011/04/the-pacemaker-ping-resource-agent/ > http://wiki.lustre.org/index.php/Using_Pacemaker_with_Lustre > > crm configure help location > crm ra info ocf:ping > > That should give you a jup start. > > You may need to increase the corosync token. > > Kind regards, > > Jelle de Jong > > ___ > Pacemaker mailing list: Pacemaker@... > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > > Project Home: http://www.clusterlabs.org > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf > Bugs: > http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker > > Thanks for the help my question is I had gone through the scripts, where i found in ping_update method there is a variable called ACTIVE no.of nodes(host_list) active based on this value, for our scenario, can we stop the heartbeat/pacemaker process, when the host node cannot ping any other nodes in the cluster frame work. provide me your suggestion so that it will help us in our context. Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] [pacemaker] need some help regarding network failure setup in pacemaker.
Hello Everybody How can we detect network failure in pacemaker configuration. where my to nodes in cluster frame work are as follows two network routers connected via switch as mediator for communication. how can we detect network failure and stop the heartbeat processes, when i shutdown the interface. i am seeing a split brain issue.where heart beat is started on two nodes and each acting as two different heartbeat process. I had configured pingd resource which comes with pacemaker, as clone processes when there is a network failure, i see there is a split brain issue where the heart beat processes are starting separately on both nodes, my question is here is, is there any way to stop the heart beat process while pingd on a particular node gives that there is communication between the interface and node where HA is running. Regards rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Ordering set of resources, problem in ordering chain of resources
Andrew Beekhof writes: Hi Andrew thanks for giving replies sorry for troubling you frequently here is the out put of crm configure show xml http://localhost:8080/dbtest/testtomcat.html"/> http://localhost:8081/"/> http://localhost/img/test.html"/> ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Ordering set of resources, problem in ordering chain of resources
Andrew Beekhof writes: > > There is nothing in this config that requires tomcat2 to be stopped. > > Perhaps: >colocation Tomcat2-with-Tomcat inf: Tomcat1 Tomcat2VIP > was intended to be: >colocation Tomcat2-with-Tomcat inf: Tomcat2 Tomcat1 > > The only other service active is httpd, which also has no constraints > indicating it should stop when mysql is down. > Thanks Andrew for the valuable feed back. As mentioned i had changed the colocation constraint but still facing with the same issue. As per the order given in HA configuration, i am providing output of my crm configure show command node $id="6317f856-e57b-4a03-acf1-ca81af4f19ce" cisco-demomsf node $id="87b8b88e-3ded-4e34-8708-46f7afe62935" mysql3 primitive Httpd ocf:heartbeat:apache \ params configfile="/etc/httpd/conf/httpd.conf" httpd="/usr/sbin/httpd" c lient="curl" statusurl="http://localhost/img/test.html"; testregex="*" \ op start interval="0" timeout="60s" \ op monitor interval="50s" timeout="50s" \ meta target-role="Started" primitive HttpdVIP ocf:heartbeat:IPaddr3 \ params ip="172.21.52.149" eth_num="eth0:4" vip_cleanup_file="/var/run/bi gha.pid" \ op start interval="0" timeout="120s" \ op monitor interval="30s" \ meta target-role="Started" primitive Mysql ocf:heartbeat:mysql \ params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf" datadir="/var/ lib/mysql" user="mysql" pid="/var/lib/mysql/mysql.pid" socket="/var/lib/mysql/my sql.sock" test_passwd="slavepass" test_table="msfha.conn" test_user="repl" repli cation_user="repl" replication_passwd="slavepass" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ op monitor interval="10s" role="Master" timeout="8s" \ op monitor interval="12s" timeout="8s" primitive MysqlVIP ocf:heartbeat:IPaddr3 \ params ip="172.21.52.150" eth_num="eth0:3" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op monitor interval="30s" \ meta target-role="Started" primitive Tomcat1 ocf:msf:tomcat \ params tomcat_name="tomcat" statusurl="http://localhost:8080/dbtest/testtomcat.html"; java_home="/" catalina_home="/home/msf/runtime/tomcat/apache-tomcat-6.0.18" client="curl" testregex="*" \ op start interval="0" timeout="60s" \ op monitor interval="50s" timeout="50s" \ op stop interval="0" \ meta target-role="Started" primitive Tomcat1VIP ocf:heartbeat:IPaddr3 \ params ip="172.21.52.140" eth_num="eth0:2" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op monitor interval="30s" \ meta target-role="Started" primitive Tomcat2 ocf:msf:tomcat \ params tomcat_name="tomcat" statusurl="http://localhost:8081/"; java_home="/" catalina_home="/home/msf/runtime/tomcat2/apache-tomcat-6.0.18" client="curl" testregex="*" \ op start interval="0" timeout="60s" \ op monitor interval="50s" timeout="50s" \ op stop interval="0" \ meta target-role="Started" primitive Tomcat2VIP ocf:heartbeat:IPaddr3 \ params ip="172.21.52.139" eth_num="eth0:4" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op monitor interval="30s" \ meta target-role="Started" ms MS_Mysql Mysql \ meta notify="true" target-role="Stopped" location L_Master MS_Mysql \ rule $id="L_Master-rule" $role="Master" 100: #uname eq cisco-demomsf \ rule $id="L_Master-rule1" $role="Master" 100: #uname eq mysql3 colocation Httpd-with-ip inf: HttpdVIP Httpd colocation Mysql-with-ip inf: MysqlVIP MS_Mysql:Master colocation Tomcat1-with-ip inf: Tomcat1VIP Tomcat1 colocation Tomcat2-with-Tomcat inf: Tomcat2 Tomcat1 colocation tomcat2-with-ip inf: Tomcat2VIP Tomcat2 order Httpd-after-Tomcat2 inf: Tomcat2 Httpd order Httpd-after-op inf: HttpdVIP Httpd order Mysql-after-ip inf: MysqlVIP MS_Mysql order Tomcat1-after-MYSQL inf: MS_Mysql Tomcat1VIP order Tomcat1-after-ip inf: Tomcat1VIP Tomcat1 order Tomcat2-after-ip inf: Tomcat2VIP Tomcat2 property $id="cib-bootstrap-options" \ dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \ cluster-infrastructure="Heartbeat" \ stonith-enabled="false" \ no-quorum-policy="ignore" \ last-lrm-refresh="1300787402" rsc_defaults $id="rsc-options" \ resource-stickiness="100" ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/ma
Re: [Pacemaker] Unable to stop Multi state resource
Rakesh K writes: Hi Andrew FSR is a File system replication script which adheres to ocf cluster frame work, the script is similar to Mysql ocf script, which is a multi state resource, where in master ssh server would be running and in slave there are rsync scripts which uses to synchronize the data between the Master and slave. the rsync script will be having the Master FSR location, so that the rysnc tool will be frequently replication the data from the FSR master location. here is the crm configuration show output node $id="82a5281a-a069-49c1-9f57-d4a8f6eb3d72" prodmsf2 node $id="d8b6c2e7-d1c3-4a15-9411-ed4d710c8672" prodmsf primitive FSR ocf:msf:fsr \ params client_script="/home/msf/ha/scripts/ocf/rsyncClient" source_dir="/home/msf/services/persistence/" dest_dir="/home/msf/services/persistence/" user="root" pid="/var/run/fsr.pid" rsync_binary="/usr/bin/rsync" rsync_options="-az" rsync_interval="1" config_file="/home/msf/ha/config/ocf/fsr.config" status_dump="/home/msf/ha/status/rsync_client_dump" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ op monitor interval="10s" role="Master" timeout="8s" \ op monitor interval="12s" timeout="8s" primitive Httpd ocf:heartbeat:apache \ params configfile="/etc/httpd/conf/httpd.conf" httpd="/usr/sbin/httpd" client="curl" statusurl="http://localhost/img/test.html"; testregex="*" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ op monitor interval="50s" timeout="50s" primitive HttpdVIP ocf:heartbeat:IPaddr3 \ params ip="10.10.30.103" eth_num="eth0:1" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ op monitor interval="30s" \ meta target-role="Started" primitive Mysql ocf:heartbeat:mysql \ params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf" datadir="/var/lib/mysql" user="mysql" pid="/var/lib/mysql/mysql.pid" socket="/var/lib/mysql/mysql.sock" test_passwd="slavepass" test_table="test.conn" test_user="repl" replication_user="repl" replication_passwd="slavepass" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ op monitor interval="10s" role="Master" timeout="8s" \ op monitor interval="12s" timeout="8s" primitive MysqlVIP ocf:heartbeat:IPaddr3 \ params ip="10.10.30.105" eth_num="eth0:3" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="60s" \ op monitor interval="30s" \ meta target-role="Started" primitive Tomcat1 ocf:msf:tomcat1 \ params tomcat_name="tomcat" statusurl="http://localhost:8080/"; java_home="/" catalina_home="/home/msf/runtime/tomcat/apache-tomcat-6.0.18" client="curl" testregex="*" \ op start interval="0" timeout="120s" \ op monitor interval="50s" timeout="50s" \ op stop interval="0" timeout="120s" \ meta target-role="Started" primitive Tomcat1VIP ocf:heartbeat:IPaddr3 \ params ip="10.10.30.104" eth_num="eth0:2" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op stop interval="0" timeout="120s" \ op monitor interval="30s" \ meta target-role="Started" ms MS_FSR FSR \ meta notify="true" target-role="Started" ms MS_Mysql Mysql \ meta notify="true" target-role="Started" colocation FSR-with-Tomcat inf: Tomcat1 MS_FSR:Master colocation Httpd-with-ip inf: HttpdVIP Httpd colocation Mysql-with-ip inf: MysqlVIP MS_Mysql:Master colocation Tomcat1-with-ip inf: Tomcat1VIP Tomcat1 order FSR-after-tomcat inf: Tomcat1 MS_FSR order Httpd-after-ip inf: HttpdVIP Httpd order Httpd-after-tomcat inf: Tomcat1 HttpdVIP order Mysql-after-ip inf: MysqlVIP MS_Mysql order Tomcat1-after-MYSQL inf: MS_Mysql Tomcat1VIP order Tomcat1-after-ip inf: Tomcat1VIP Tomcat1 property $id="cib-bootstrap-options" \ dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \ cluster-infrastructure="Heartbeat" \ stonith-enabled="false" \ no-quorum-policy="ignore" Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Ordering set of resources, problem in ordering chain of resources
Andrew Beekhof writes: Hi Andrew thanks for giving reply. The version of pacemaker i am using is pacemaker-1.0.9.1 Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] Ordering set of resources, problem in ordering chain of resources
Hi All I had configured Heartbeeat, pacemkaer on my two VM's Cluster with two nodes, two nodes are running *cent-os* as operation systems. Cluster configured with 8 resources and defined order, taking reference pacemaker explained please find the order and co-location constraints, taken from cib.xml so when heartbeat start on both nodes, the order resources started are MysqlVIP-->MSMysql-->tomcat1VIP-->Tomcat-->Tomcat2VIP-->tomcat2-->HttpdVIP-->Httpd My question is when i try to stop Mysql process since there is an order constraint .all the resources should stop, but still, when i do *crm_mon *i see tomcat2,tomcat2vip,http,httpdVIP resources running on cluster frame work , can you please suggest me if there is any flaw in determining the order or co-location constraints. Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Unable to stop Multi state resource
Andrew Beekhof writes: Hi Andrew FSR is file system replication, like Mysql multi-state resource, it replicates the files from master to all the slaves in the cluster frame work. ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] Unable to stop Multi state resource
Hi All I had configure heartbeat with 2 node cluster and 7 resources The list of resources are Tomcat,apachehttpd,Mysql and FSR where mysql and FSR are multi-state resource. and i had given order and co-location constraints please find the crm configuration for order and co-location *colocation FSR-with-Tomcat inf: Tomcat1 MS_FSR:Master colocation Httpd-with-ip inf: HttpdVIP Httpd colocation Mysql-with-ip inf: MysqlVIP MS_Mysql:Master colocation Tomcat1-with-ip inf: Tomcat1VIP Tomcat1 order FSR-after-tomcat inf: Tomcat1 MS_FSR order Httpd-after-op inf: HttpdVIP Httpd order Mysql-after-ip inf: MysqlVIP MS_Mysql order Tomcat1-after-MYSQL inf: MS_Mysql Tomcat1VIP order Tomcat1-after-ip inf: Tomcat1VIP Tomcat1* now my question is on the two node cluster when i am stopping MS_Mysql multistate resource using *crm resource stop MS_Mysql*, as per the above order given all the process should stop on the cluster frame work, but still i am finding FSR process running. is there any error in the order or co-location constraints provided. please let me know, i am running out of time.. One more concern for Pacemaker is the mailer -link available when it would be up. http://news.gmane.org/gmane.linux.highavailability.pacemaker is there any new link created for this mailer-list. Regards Raki ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] [pacemaker] To start all the resources on one node when HA starts in 2 node configuration.
Hi All Here is my description regarding this While configuring HA i used this CLI command *crm configure location HTTPD Httpd rule id="HTTPD-rule" 100: \#uname eq hatest1rule id="HTTPD-rule1" 200: \#uname eq hatest2* where Httpd is resource and given score 100 for hatest1 and score 200 for node -2 hatest2 similarly there are other three resources where i have given score 100 for first node and score 200 for second node when HA starts it checks for the scores and starts the processes on hatest2 Is there any other better way such that heartbeat/pacemaker checks the node level configuration rather than HA checks resource location constraint . Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Is there any way to reduce the time for migration of the resource from one node to another node in a cluster on failover.
Andrew Beekhof writes: Hi Andrew Beekhof I measured the time, when heart beat recognize the process had failed on first node to the process and VIP has created on the second node . i calculated the time using the heartbeat log files which logs the messages with time. ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] How to send email-notification on failure of resource in cluster frame work
Hi ALL Is there any way to send Email notifications when a resource is failure in the cluster frame work. while i was going through the Pacemaker-explained document provided in the website www.clusterlabs.org There was no content in the chapter 7 --> which is sending email notification events. can anybody help me regarding this. for know i am approaching the crm_mon --daemonize --as-html to maintain the status of HA in html file. Is there any other approach for sending email notification. Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] Is there any way to reduce the time for migration of the resource from one node to another node in a cluster on failover.
Hi All I am providing you the configuration I used for testing the resource migration. - Node-1 resource failed . - Message sent to node-2 - the log message i found in ha-debug file (pengine: [15991]: notice: common_apply_stickiness: Tomcat1 can fail 99 more times on mysql3 before being forced off) - The process is getting started on same node where it fails after time out. - stopping virtual IP - send note to second node-2 - Starting VIP - second node starts the process. The total duration it is taking is about *one and half minute *is there any way to reduce the time for this sceanrio. Plese find the configuration i used node $id="6317f856-e57b-4a03-acf1-ca81af4f19ce" cisco-demomsf node $id="87b8b88e-3ded-4e34-8708-46f7afe62935" mysql3 primitive Tomcat1 ocf:heartbeat:tomcat \ params tomcat_name="tomcat" statusurl=" http://localhost:8080/dbtest/testtomcat.html"; java_home="/" catalina_home="/home/msf/runtime/tomcat/apache-tomcat-6.0.18" client="curl" testregex="*" \ op start interval="0" timeout="60s" \ op monitor interval="50s" timeout="50s" \ op stop interval="0" \ meta target-role="Started" primitive Tomcat1VIP ocf:heartbeat:IPaddr3 \ params ip="" eth_num="eth0:2" vip_cleanup_file="/var/run/bigha.pid" \ op start interval="0" timeout="120s" \ op monitor interval="30s" \ meta target-role="Started" colocation Tomcat1-with-ip inf: Tomcat1VIP Tomcat1 order Tomcat1-after-ip inf: Tomcat1VIP Tomcat1 property $id="cib-bootstrap-options" \ dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \ cluster-infrastructure="Heartbeat" \ stonith-enabled="false" \ no-quorum-policy="ignore" \ last-lrm-refresh="1300787402" rsc_defaults $id="rsc-options" \ resource-stickiness="500" Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] unable to migrate resource between nodes in cluster
Hi All I am unable to migrate apache resource between the nodes 1) To monitor apache resource i had used status url and reg-ex pattern is * "*"* which find the exact pattern in statusurl, for monitoring and fail-over conditions for apache script . 2) on node1 i manually edited the status url and saw the resource is getting migrated to other node2 in cluster. 3) And then i again update the status url text on node1 to original content .and emptied the file on node2, for this scenario i should see there should be a migration of resource to node1 which is not happening 4) when i go through the ha-debug file for exact reason i found this message in ha-debug file . *do_state_transition: Starting PEngine Recheck Timer* Please help me regarding this.. Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
[Pacemaker] [pacemaker] unable to execute commands like crm configure show.crm resource stop
Hi All I had installed pacemaker,heartbeat on my unix machine, I had created an SSH user who can access my unix machine remotely. I had given permissions for that user by editing *sudoers *file so that he can perform all the opertaions related to *crm* The configuration i used is as follows in sudoers file. ALL=NOPASSWD:/usr/sbin since the commands like crm_mon.crm_verify, cibadmin resides in the /usr/sbin directory. but when my ssh user is executing the following opertation *-Bash-3.2#sudo /usr/sbin/crm configure show* *-Bash-3.2#sudo /usr/sbin/crm resource stop* This is the following error poping out *sudo /usr/sbin/crm configure show cibadmin not available, check your installation* Please provide me the solution to come over this type of situations. Regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] build Issue while configurin g the cluster glue in CENT OS
Vladislav Bogdanov writes: Hi Vladislav Bogdanov When i listed down all the packages in CentOS i found this package is already isntalled i used rpm-qa for listing down the packages is there any alternative for building cluster glue in my CENT OS through code base since this an urgent requirement sorry for posting the questions frequently ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] build Issue while configurin g the cluster glue in CENT OS
Larry Brigman writes: Hi Larry Thanks for you suggestion the when i tried to install e2fsprogs-libs-1.39-23.el5_5.1 rpm file it says it is uptodate and again i tried to install cluster glue using make command . which thrown me the same error. [root@low-house lib]# rpm -qf /lib/libuuid.so.1 e2fsprogs-libs-1.39-23.el5_5.1 [root@low-house lib]# yum install e2fsprogs-libs-1.39-23.el5_5.1 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.nwresd.org * base: mirror.stanford.edu * extras: mirror.stanford.edu * updates: mirror.san.fastserv.com Setting up Install Process Package e2fsprogs-libs-1.39-23.el5_5.1.i386 already installed and latest version Nothing to do [root@low-house lib]# regards Rakesh ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] build Issue while configurin g the cluster glue in CENT OS
Hi Larry thanks for providing the information when i tried to follow ur steps i am getting this message as the output [root@low-house lib]# rpm -qf /lib/libuuid.so.1 e2fsprogs-libs-1.39-23.el5_5.1 [root@low-house lib]# yum install e2fsprogs-libs-1.39-23.el5_5.1 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.nwresd.org * base: mirror.stanford.edu * extras: mirror.stanford.edu * updates: mirror.san.fastserv.com Setting up Install Process Package e2fsprogs-libs-1.39-23.el5_5.1.i386 already installed and latest version Nothing to do since it displays that the rpm file is already installed and using latest version ...i had retried to configure and install cluster glue i am getting the similar issue again .. regards Rakesh On Tue, Mar 8, 2011 at 12:16 PM, Larry Brigman wrote: > On Mon, Mar 7, 2011 at 10:02 PM, rakesh k > wrote: > > Hi Dejan > > > > I am posting the steps i followed to install cluster glue from the source > > > > as mentioned in the http://clusterlabs.org/ > > > > i tried to download the cluster glue tar bal using wget the tar ball is > > cluster-glue.tar.bz2 > > > > and when i extracted this is the following directory i got > > Reusable-Cluster-Components-glue--be41a3ef5717 > > > > > > > > and tried to configure and got the output while i am procedding forwarded > > while doing make ..i am getting the following message ... > > > > o -lbz2 -lxml2 -lc -lrt -ldl -lglib-2.0 > > ./.libs/libplumb.so: undefined reference to `uuid_parse' > > ./.libs/libplumb.so: undefined reference to `uuid_generate' > > ./.libs/libplumb.so: undefined reference to `uuid_copy' > > ./.libs/libplumb.so: undefined reference to `uuid_is_null' > > ./.libs/libplumb.so: undefined reference to `uuid_unparse' > > ./.libs/libplumb.so: undefined reference to `uuid_clear' > > ./.libs/libplumb.so: undefined reference to `uuid_compare' > > collect2: ld returned 1 exit status > > gmake[2]: *** [ipctest] Error 1 > > gmake[2]: Leaving directory > > > `/home/rakesh/Desktop/Pacemaker/Reusable-Cluster-Components-glue--be41a3ef5717/lib/clplumbing' > > gmake[1]: *** [all-recursive] Error 1 > > gmake[1]: Leaving directory > > > `/home/rakesh/Desktop/Pacemaker/Reusable-Cluster-Components-glue--be41a3ef5717/lib' > > make: *** [all-recursive] Error 1 > > > > and the configuring output is as follows > > cluster-glue configuration: > > Version = 1.0.7 (Build: > > be41a3ef57175fcd35ffe0c4bc897f996cb447ba) > > Features = > > > > Prefix = /usr > > Executables = /usr/sbin > > Man pages= /usr/man > > Libraries= /usr/lib > > Header files = /usr/include > > Arch-independent files = /usr/share > > Documentation= /usr/share/doc > > State information= /usr/var > > System configuration = /usr/etc > > > > Use system LTDL = no > > > > HA group name= haclient > > HA user name = hacluster > > > > CFLAGS = -g -O2 -ggdb3 -O0 -fgnu89-inline > > -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast > > -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels > > -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline > > -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute > > -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith > > -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY > -Werror > > Libraries= -lbz2 -lxml2 -lc -lrt -ldl -L/lib > -lglib-2.0 > > Stack Libraries = > > > > and i tried to install libuuid-devel where it is displaying that no rpm > > found ..and i am able to see libuuid.so.1 file in /usr/lib > > > > please help me regarding this issue .. > > > > Use the tools that are on your system. > rpm -qf /usr/lib/libuuid.so.1 > Then when you find the package name > yum install > ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] build Issue while configuring the cluster glue in CENT OS
Hi Dejan I am posting the steps i followed to install cluster glue from the source as mentioned in the http://clusterlabs.org/ i tried to download the cluster glue tar bal using *wget the tar ball is * * cluster-glue.tar.bz2* and when i extracted this is the following directory i got*Reusable-Cluster-Components-glue--be41a3ef5717 * ** and tried to configure and got the output while i am procedding forwarded while doing make ..i am getting the following message ... o -lbz2 -lxml2 -lc -lrt -ldl -lglib-2.0 ./.libs/libplumb.so: undefined reference to `uuid_parse' ./.libs/libplumb.so: undefined reference to `uuid_generate' ./.libs/libplumb.so: undefined reference to `uuid_copy' ./.libs/libplumb.so: undefined reference to `uuid_is_null' ./.libs/libplumb.so: undefined reference to `uuid_unparse' ./.libs/libplumb.so: undefined reference to `uuid_clear' ./.libs/libplumb.so: undefined reference to `uuid_compare' collect2: ld returned 1 exit status gmake[2]: *** [ipctest] Error 1 gmake[2]: Leaving directory `/home/rakesh/Desktop/Pacemaker/Reusable-Cluster-Components-glue--be41a3ef5717/lib/clplumbing' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/rakesh/Desktop/Pacemaker/Reusable-Cluster-Components-glue--be41a3ef5717/lib' make: *** [all-recursive] Error 1 and the configuring output is as follows cluster-glue configuration: Version = 1.0.7 (Build: be41a3ef57175fcd35ffe0c4bc897f996cb447ba) Features = Prefix = /usr Executables = /usr/sbin Man pages= /usr/man Libraries= /usr/lib Header files = /usr/include Arch-independent files = /usr/share Documentation= /usr/share/doc State information= /usr/var System configuration = /usr/etc Use system LTDL = no HA group name= haclient HA user name = hacluster CFLAGS = -g -O2 -ggdb3 -O0 -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror Libraries= -lbz2 -lxml2 -lc -lrt -ldl -L/lib -lglib-2.0 Stack Libraries = and i tried to install libuuid-devel where it is displaying that no rpm found ..and i am able to see libuuid.so.1 file in /usr/lib please help me regarding this issue .. Regards Raki On Mon, Mar 7, 2011 at 6:24 PM, rakesh k wrote: > Hi All > > > I got the errors like this while compiling cluster glue: > > ../.libs/libplumb.so: undefined reference to `uuid_parse' > ../.libs/libplumb.so: undefined reference to `uuid_generate' > ../.libs/libplumb.so: undefined reference to `uuid_copy' > ../.libs/libplumb.so: undefined reference to `uuid_is_null' > ../.libs/libplumb.so: undefined reference to `uuid_unparse' > ../.libs/libplumb.so: undefined reference to `uuid_clear' > ../.libs/libplumb.so: undefined reference to `uuid_compare' > collect2: ld returned 1 exit status > gmake[2]: *** [ipctest] Error 1 > gmake[2]: Leaving directory > `/root/Reusable-Cluster-Components-glue-1.0.5/lib/clplumbing' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/root/Reusable-Cluster-Components-glue-1.0.5/lib' > make: *** [all-recursive] Error 1 > > > and here is the output when I run ./configure: > > cluster-glue configuration: > Version = 1.0.7 (Build: > be41a3ef57175fcd35ffe0c4bc897f996cb447ba) > Features = > > Prefix = /usr > Executables = /usr/sbin > Man pages= /usr/man > Libraries= /usr/lib > Header files = /usr/include > Arch-independent files = /usr/share > Documentation= /usr/share/doc > State information= /usr/var > System configuration = /usr/etc > > Use system LTDL = no > > HA group name= haclient > HA user name = hacluster > > CFLAGS = -g -O2 -ggdb3 -O0 -fgnu89-inline > -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast > -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels > -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline > -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute > -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith > -Wstrict-prototypes -Wwrite-
[Pacemaker] build Issue while configuring the cluster glue in CENT OS
Hi All I got the errors like this while compiling cluster glue: ../.libs/libplumb.so: undefined reference to `uuid_parse' ../.libs/libplumb.so: undefined reference to `uuid_generate' ../.libs/libplumb.so: undefined reference to `uuid_copy' ../.libs/libplumb.so: undefined reference to `uuid_is_null' ../.libs/libplumb.so: undefined reference to `uuid_unparse' ../.libs/libplumb.so: undefined reference to `uuid_clear' ../.libs/libplumb.so: undefined reference to `uuid_compare' collect2: ld returned 1 exit status gmake[2]: *** [ipctest] Error 1 gmake[2]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.5/lib/clplumbing' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.5/lib' make: *** [all-recursive] Error 1 and here is the output when I run ./configure: cluster-glue configuration: Version = 1.0.7 (Build: be41a3ef57175fcd35ffe0c4bc897f996cb447ba) Features = Prefix = /usr Executables = /usr/sbin Man pages= /usr/man Libraries= /usr/lib Header files = /usr/include Arch-independent files = /usr/share Documentation= /usr/share/doc State information= /usr/var System configuration = /usr/etc Use system LTDL = no HA group name= haclient HA user name = hacluster CFLAGS = -g -O2 -ggdb3 -O0 -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror Libraries= -lbz2 -lxml2 -lc -lrt -ldl -L/lib -lglib-2.0 Stack Libraries = and also i tried to update the libs directive in mke file pointing libraries to /lib/libuuid.so.1 still i am getting the same issue . please help me regarding this issue since i am runing out of time .. regards raki ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker