I have a resource group:
(GROUP_nagios)
I had the resource: resource_nagios_daemon in it and working fine.
I needed to add a mountpoint to happen before the resource_nagios_daemon
started.
I added it successfully, but have a question about ordering. I had some
trouble getting them in the correct order at first, but finally got the
GUI to do it.
If I look at the group with "crm_resource -x -r GROUP_nagios" the
resources in the group are shown out of order.
If I look at the group with "cibadmin -Q -o resources" the resources are
shown in the correct order.
Why do they show differently?
Thanks in advance!
-JPH
[EMAIL PROTECTED] humesj]# crm_resource -x -r GROUP_nagios
crm_resource[10520]: 2008/01/27_23:06:34 info: Invoked: crm_resource -x
-r GROUP_nagios
Resource Group: GROUP_nagios
resource_nagios_daemon (humesj::ocf:nagios): Started asknmapr02
resource_glusterfs_mount_nagios (humesj::ocf:glusterclient):
Started asknmapr02
raw xml:
<group ordered="true" collocated="true" id="GROUP_nagios">
<instance_attributes id="GROUP_nagios_instance_attrs">
<attributes>
<nvpair name="target_role" id="GROUP_nagios_target_role"
value="stopped"/>
</attributes>
</instance_attributes>
<primitive class="ocf" type="nagios" provider="humesj"
id="resource_nagios_daemon">
<instance_attributes id="resource_nagios_daemon_instance_attrs">
<attributes>
<nvpair id="ad227963-f55a-45a9-8d7c-95a368de8a2e"
name="installdir" value="/usr/local/nagios"/>
<nvpair id="b7b32a6f-35d9-4247-9fa6-4001dfb03218" name="vardir"
value="/usr/local/nagios/var"/>
<nvpair id="2944c3ae-1a6d-4d17-a864-00e4533a719c" name="cgidir"
value="/usr/local/nagios/sbin"/>
<nvpair id="20442fea-7e30-4148-bc53-21c17e9d814b" name="binary"
value="/usr/local/nagios/bin/nagios"/>
<nvpair id="cfe001be-970e-4f9c-b6c3-2fa8872a3151" name="config"
value="/usr/local/nagios/etc/nagios.cfg"/>
<nvpair id="d89210fb-1e4f-46a9-94db-e3ba31555cdf" name="user"
value="nagios"/>
<nvpair id="546062f1-cb4a-4dd9-9e31-c4188b68a6f4" name="group"
value="nagios"/>
<nvpair id="33d0291e-e11b-4231-84dd-1c86e19c0dbe"
name="tempfile" value="/usr/local/nagios/var/nagios.tmp"/>
<nvpair id="4b35f662-8006-4707-b462-447cbfff0eb9"
name="commandfile" value="/usr/local/nagios/var/rw/nagios.cmd"/>
<nvpair id="4751f4d0-1728-4c0c-87ce-69904c8c774a"
name="plugindir" value="/usr/lib/nagios/plugins"/>
<nvpair id="a529755c-2560-4b22-a918-a0880b6becfe" name="pid"
value="/usr/local/nagios/var/nagios.lock"/>
<nvpair id="resource_nagios_daemon_target_role"
name="target_role" value="started"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="ocf" type="glusterclient" provider="humesj"
id="resource_glusterfs_mount_nagios">
<instance_attributes
id="resource_glusterfs_mount_nagios_instance_attrs">
<attributes>
<nvpair name="target_role"
id="resource_glusterfs_mount_nagios_target_role" value="started"/>
<nvpair id="84285cc6-0af2-4cbc-b63e-6324c5401bcd"
name="glusterconfig"
value="/etc/glusterfs/glusterfs-client_knworksnagios.vol"/>
<nvpair id="87e1a93a-df88-4520-984e-6af275ccecae"
name="monitorfiledir" value="/var/run"/>
<nvpair id="2dcbbf30-3d83-4a3a-937a-784c9cd74b41"
name="mountpoint" value="/usr/local/nagios"/>
<nvpair id="3380e433-0ccc-46a6-8dc9-2f6236716122"
name="logname" value="/var/log/glusterfs_nagios.log"/>
<nvpair id="48a9a813-3514-4299-9e70-1af0479733d1"
name="loglevel" value="ERROR"/>
<nvpair id="6bf327c6-6fc6-4f7d-8767-249f95e23985" name="binary"
value="/usr/local/sbin/glusterfs"/>
</attributes>
</instance_attributes>
</primitive>
</group>
<group ordered="true" collocated="true" id="GROUP_nagios">
<instance_attributes id="GROUP_nagios_instance_attrs">
<attributes>
<nvpair name="target_role" id="GROUP_nagios_target_role"
value="stopped"/>
</attributes>
</instance_attributes>
<primitive id="resource_glusterfs_mount_nagios" class="ocf"
type="glusterclient" provider="humesj">
<instance_attributes
id="resource_glusterfs_mount_nagios_instance_attrs">
<attributes>
<nvpair id="resource_glusterfs_mount_nagios_target_role"
name="target_role" value="started"/>
<nvpair id="84285cc6-0af2-4cbc-b63e-6324c5401bcd"
name="glusterconfig"
value="/etc/glusterfs/glusterfs-client_knworksnagios.vol"/>
<nvpair id="87e1a93a-df88-4520-984e-6af275ccecae"
name="monitorfiledir" value="/var/run"/>
<nvpair id="2dcbbf30-3d83-4a3a-937a-784c9cd74b41"
name="mountpoint" value="/usr/local/nagios"/>
<nvpair id="3380e433-0ccc-46a6-8dc9-2f6236716122"
name="logname" value="/var/log/glusterfs_nagios.log"/>
<nvpair id="48a9a813-3514-4299-9e70-1af0479733d1"
name="loglevel" value="ERROR"/>
<nvpair id="6bf327c6-6fc6-4f7d-8767-249f95e23985"
name="binary" value="/usr/local/sbin/glusterfs"/>
</attributes>
</instance_attributes>
</primitive>
<primitive class="ocf" type="nagios" provider="humesj"
id="resource_nagios_daemon">
<instance_attributes id="resource_nagios_daemon_instance_attrs">
<attributes>
<nvpair id="ad227963-f55a-45a9-8d7c-95a368de8a2e"
name="installdir" value="/usr/local/nagios"/>
<nvpair id="b7b32a6f-35d9-4247-9fa6-4001dfb03218"
name="vardir" value="/usr/local/nagios/var"/>
<nvpair id="2944c3ae-1a6d-4d17-a864-00e4533a719c"
name="cgidir" value="/usr/local/nagios/sbin"/>
<nvpair id="20442fea-7e30-4148-bc53-21c17e9d814b"
name="binary" value="/usr/local/nagios/bin/nagios"/>
<nvpair id="cfe001be-970e-4f9c-b6c3-2fa8872a3151"
name="config" value="/usr/local/nagios/etc/nagios.cfg"/>
<nvpair id="d89210fb-1e4f-46a9-94db-e3ba31555cdf" name="user"
value="nagios"/>
<nvpair id="546062f1-cb4a-4dd9-9e31-c4188b68a6f4"
name="group" value="nagios"/>
<nvpair id="33d0291e-e11b-4231-84dd-1c86e19c0dbe"
name="tempfile" value="/usr/local/nagios/var/nagios.tmp"/>
<nvpair id="4b35f662-8006-4707-b462-447cbfff0eb9"
name="commandfile" value="/usr/local/nagios/var/rw/nagios.cmd"/>
<nvpair id="4751f4d0-1728-4c0c-87ce-69904c8c774a"
name="plugindir" value="/usr/lib/nagios/plugins"/>
<nvpair id="a529755c-2560-4b22-a918-a0880b6becfe" name="pid"
value="/usr/local/nagios/var/nagios.lock"/>
<nvpair id="resource_nagios_daemon_target_role"
name="target_role" value="started"/>
</attributes>
</instance_attributes>
</primitive>
</group>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems