[Pacemaker] crm_mon -n option
Andrew Beekhof
beekhof at gmail.com
Fri May 16 11:24:49 UTC 2008
On Fri, May 16, 2008 at 12:38 PM, Junko IKEDA <ikedaj at intellilink.co.jp> wrote:
> Hi,
>
> quick question;
>
> Result of "crm_mon -1 -n", each resource in group doesn't get lined up in
> order.
> Without -n, it's in order.
> I hope with/without -n show the same.
> Can node_shared_s contain order information?
Thats the wrong place to add something like this - its not relevant to
the node what order they appear in a group.
You also don't see the resources sorted based on their ordering
constraints either...
I would however accept a patch that sorted node->details->running_rsc
by (parent->id, name) in crm_mon.c
Ie. in this code:
if(group_by_node) {
slist_iter(rsc, resource_t,
node->details->running_rsc, lpc2,
rsc->fns->print(
rsc, "\t", print_opts|pe_print_rsconly, stdout);
);
}
>
>
> # crm_mon -1 -n
> ============
> Last updated: Fri May 16 18:32:14 2008
> Current DC: node-b (db8f2da4-a7fb-40bf-bf14-befe4af11db7)
> 2 Nodes configured.
> 2 Resources configured.
> ============
>
> Node: node-b (db8f2da4-a7fb-40bf-bf14-befe4af11db7): online
> dummy-23 (ocf::heartbeat:Dummy)
> dummy-26 (ocf::heartbeat:Dummy)
> dummy-24 (ocf::heartbeat:Dummy)
> dummy-25 (ocf::heartbeat:Dummy)
> dummy-27 (ocf::heartbeat:Dummy)
> dummy-28 (ocf::heartbeat:Dummy)
> dummy-29 (ocf::heartbeat:Dummy)
> dummy-22 (ocf::heartbeat:Dummy)
> dummy-21 (ocf::heartbeat:Dummy)
> Node: node-a (8029f8c4-1f03-4695-a78a-29c02fdd399c): online
> dummy-11 (ocf::heartbeat:Dummy)
> dummy-12 (ocf::heartbeat:Dummy)
> dummy-16 (ocf::heartbeat:Dummy)
> dummy-18 (ocf::heartbeat:Dummy)
> dummy-19 (ocf::heartbeat:Dummy)
> dummy-14 (ocf::heartbeat:Dummy)
> dummy-13 (ocf::heartbeat:Dummy)
> dummy-15 (ocf::heartbeat:Dummy)
> dummy-17 (ocf::heartbeat:Dummy)
>
>
> Best Regards,
> Junko Ikeda
>
> NTT DATA INTELLILINK CORPORATION
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker
>
>
More information about the Pacemaker
mailing list