Hi, On Tue, Oct 23, 2012 at 10:18:36AM +0530, vishal kumar wrote: > Hello Florian, > > Thanks for the help. > > I tried with crm ra meta sshd lsb but it gave me the same meta-data error. > > The problem is while trying to add a lsb resource from crm shell, like > httpd as i am using rhel it gives the following error > ERROR: lsb:httpd: could not parse meta-data: > ERROR: lsb:httpd: no such resource agent > > the httpd package is installed and i have a httpd file /etc/init.d > directory. I am unable to add any resource which in /etc/init.d directory.
Do you have cluster-glue installed? And is pacemaker running? lrmadmin (part of cluster-glue) gets the meta-data from lrmd. You can try it by hand like this: lrmadmin -M lsb httpd NULL Thanks, Dejan > Many thanks > Vishal > > > Message: 1 > > Date: Mon, 22 Oct 2012 17:53:23 +0530 > > From: vishal kumar <vishal.kanoj...@gmail.com> > > To: pacemaker@oss.clusterlabs.org > > Subject: [Pacemaker] lsb: could not parse meta-data > > Message-ID: > > <CANz= > > rdksq4t-sbbf+kbnwob2fgr7xu7g6mrugbpfzasbvnp...@mail.gmail.com> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Hi > > > > I am trying to configure pacemaker with corosync on RHEL 6. > > > > While trying to add lsb resources i get "could not parse meta-data". > > > > The pacemaker version is 1.1.7 . Below is the error what i get when i check > > for metadata in crm shell. > > > > *crm(live)ra# list lsb* > > *abrt-ccpp abrt-oops abrtd > > acpid atd* > > *auditd autofs certmonger > > cgconfig cgred* > > *corosync corosync-notifyd cpuspeed > > crond cups* > > *haldaemon halt heartbeat > > httpd ip6tables* > > *iptables irqbalance kdump > > killall ktune* > > *lvm2-lvmetad lvm2-monitor matahari-broker > > matahari-host matahari-network* > > *matahari-rpc matahari-service matahari-sysconfig > > matahari-sysconfig-console mcelogd* > > *mdmonitor messagebus netconsole > > netfs network* > > *nfs nfslock ntpd > > ntpdate oddjobd* > > *pacemaker portreserve postfix > > psacct qpidd* > > *quota_nld rdisc restorecond > > rhnsd rhsmcertd* > > *rngd rpcbind rpcgssd > > rpcidmapd rpcsvcgssd* > > *rsyslog sandbox saslauthd > > single smartd* > > *sshd sssd sysstat > > tuned udev-post* > > *ypbind * > > *crm(live)ra# meta lsb heartbeat* > > *ERROR: heartbeat:lsb: could not parse meta-data: * > > *crm(live)ra# meta lsb sshd* > > *ERROR: sshd:lsb: could not parse meta-data: * > > *crm(live)ra# meta lsb ntpd* > > *ERROR: ntpd:lsb: could not parse meta-data: * > > *crm(live)ra# meta lsb httpd* > > *ERROR: httpd:lsb: could not parse meta-data* > > > > Please do suggest me where am i going wrong. > > Thanks for the help. > > > > Thanks > > Vishal > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: < > > http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20121022/0ade914c/attachment-0001.html > > > > > > > ------------------------------ > > > > Message: 2 > > Date: Mon, 22 Oct 2012 14:48:31 +0200 > > From: Florian Crouzat <gen...@floriancrouzat.net> > > To: pacemaker@oss.clusterlabs.org > > Subject: Re: [Pacemaker] lsb: could not parse meta-data > > Message-ID: <5085409f....@floriancrouzat.net> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > Le 22/10/2012 14:23, vishal kumar a ?crit : > > > Hi > > > > > Please do suggest me where am i going wrong. > > > Thanks for the help. > > > > > > > See: crm ra help meta > > Then try something like: crm ra meta sshd lsb # parameters order matter > > > > Anyway, you won't learn anything out of meta-datas from a LSB > > initscript, because it's just a script (not cluster oriented, not a real > > resource agent), it's not multistate, nothing like that, only > > start/stop/monitor and default mandatory settings. > > > > > > -- > > Cheers, > > Florian Crouzat > > > > > _______________________________________________ > 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://bugs.clusterlabs.org _______________________________________________ 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://bugs.clusterlabs.org