Hi, On Fri, Dec 17, 2010 at 12:37:37PM -0700, Greg Woods wrote: > This seems odd to me: > > [r...@vmserve sbin]# crm resource show VM-paranfsvm > resource VM-paranfsvm is NOT running > [r...@vmserve sbin]# echo $? > 0 > [r...@vmserve sbin]# crm resource start VM-paranfsvm > [r...@vmserve sbin]# echo $? > 1 > [r...@vmserve sbin]# crm configure show | fgrep VM-paranfsvm > [r...@vmserve sbin]# > > This resource doesn't appear to be defined, and yet there is status for > it? Compare that to: > > > [r...@vmserve sbin]# crm configure show nosuchresource > [r...@vmserve sbin]# echo $? > 1 > [r...@vmserve sbin]# > > The latter is what I would expect; if the resource doesn't exist, there > is no output from an attempt to show it, and it exits with nonzero > status.
configure and resource levels are looking at two different parts of the CIB. The resource level, which actually deploys other low level programs such as crm_resource, works with the status section, i.e. where outcome of resource actions are recorded. > This "resource" represents a virtual machine. It may have been a > pacemaker resource at one time, but now, while the virtual machine still > exists, it isn't configured in Pacemaker any more (as evidenced by the > "configure show" command above). But it looks like somehow the removal > of the resource was incomplete. It's not in the configuration any more, > but it is still in the status? Removing a resource from the configuration doesn't entail dropping its status. > I have tried running a "crm resource > cleanup VM-paranfsvm" but the results are unchanged. Is this a known > issue? That's strange. resource cleanup should definitely remove the LRM (status) part. Can you please try again and then do: # cibadmin -Q | grep VM-paranfsvm If the resource still exists in the CIB then something's broken. Thanks, Dejan > cluster-glue.x86_64 1.0.6-1.6.el5 > cluster-glue-libs.x86_64 1.0.6-1.6.el5 > heartbeat.x86_64 3.0.3-2.3.el5 > pacemaker.x86_64 1.0.9.1-1.15.el5 > > --Greg > > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
